-
Notifications
You must be signed in to change notification settings - Fork 509
Fix forgetting static property access after impure call #3950
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
This pull request has been marked as ready for review. |
$parametersAcceptor instanceof ClosureType && count($parametersAcceptor->getImpurePoints()) > 0 | ||
&& $scope->isInClass() |
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.
last open question: do we want to invalidate 'this' in this case for regular function calls with side-effects?
we only handle Closure at this point right now
see #3950 (comment)
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.
Scratch that. A function is pretty unlikely to affect $this
or self
Thank you! |
closes phpstan/phpstan#11019
closes phpstan/phpstan#3747
closes phpstan/phpstan#8523
closes phpstan/phpstan#4864
fixes one repro of phpstan/phpstan#8926
closes phpstan/phpstan#4443