Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix magic call #642

Merged
merged 2 commits into from
Dec 10, 2023
Merged

Conversation

oprypkhantc
Copy link
Contributor

Closes #638

While fixing this I thought it'd probably be better to explicitly mark field getter and setters with an annotation instead of automatically detecting them with get, set and is prefixes, but maybe just waiting till PHP 8.4 is a better call: by PHP 8.4 we'll hopefully have property accessors so we can drop support for getters/setters/issers and magic __call altogether.

For now, this is just a fix of precedence - now "real" properties always take precedence over __call calls.

@oojacoboo oojacoboo merged commit a4dac97 into thecodingmachine:master Dec 10, 2023
6 checks passed
@oprypkhantc oprypkhantc deleted the fix-magic-call branch December 10, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird behaviour around __call
2 participants