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

Support constructor promotion #266

Merged
merged 6 commits into from
Aug 10, 2022
Merged

Conversation

sirbrillig
Copy link
Owner

Function parameters defined using PHP 8 constructor promotion should count as both a variable definition AND a variable use because there's an implied assignment of such variables to class properties of the same name. This PR adds support for them.

Fixes #227

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.

Handle constructor promotion
1 participant