Skip to content

Conversation

@makraz
Copy link
Contributor

@makraz makraz commented Dec 15, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #62733
License MIT
  • Fixes PropertyAccess choosing a same‑named method over a public property when the method requires parameters.
  • Ensures jQuery‑style accessors (methods named exactly like the property) are only considered if they have zero required parameters.
  • Prevents ArgumentCountError during serialization and aligns behavior with standard getter rules (getX()/isX()/hasX()/canX()), which already require zero required parameters.

@makraz
Copy link
Contributor Author

makraz commented Dec 16, 2025

@nicolas-grekas thanks for the suggestion all resolved

@nicolas-grekas nicolas-grekas changed the base branch from 7.3 to 6.4 December 16, 2025 19:55
@nicolas-grekas nicolas-grekas force-pushed the issue-propertyinfo-62733 branch from 7ff180b to 02e3153 Compare December 16, 2025 19:55
@nicolas-grekas nicolas-grekas merged commit a923e6c into symfony:6.4 Dec 16, 2025
10 of 12 checks passed
@nicolas-grekas
Copy link
Member

Thank you @makraz !

@makraz makraz deleted the issue-propertyinfo-62733 branch December 16, 2025 20:41
xabbuh added a commit that referenced this pull request Dec 18, 2025
…h version (xabbuh)

This PR was merged into the 6.4 branch.

Discussion
----------

[PropertyInfo] bump required PropertyInfo component patch version

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

fixes low deps tests following the changes made in #62772

Commits
-------

dd37b83 bump required PropertyInfo component patch version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants