-
Notifications
You must be signed in to change notification settings - Fork 509
Fixed false-positive with by-ref parameters and array-functions #4036
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the right scope needs to be used also below in more VariableAssignNode instances? Try writing a failing test first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also:
- new PropertyAssignNode on line 5630
- dtto on line 5676
- dtto on line 5719
- dtto on line 5750
You can look at other new VariableAssignNode and PropertyAssignNode. Maybe there's more. |
not sure how to test the phpstan-src/src/Analyser/NodeScopeResolver.php Lines 5863 to 5875 in d04535d
|
I don't think the expr is processed and scope changed for this one. |
Looks like quite a few more bugs were fixed! https://github.com/phpstan/phpstan-src/actions/runs/15362052666 |
This pull request has been marked as ready for review. |
Thank you! |
closes phpstan/phpstan#13093
closes phpstan/phpstan#8825
closes phpstan/phpstan#7844
closes phpstan/phpstan#12675