You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen in the example, when a function is called with a class property as its parameter phpstan does not recognize when the property is changed between two calls and assumes the result stays the same.
If the function is called with a local variable instead, phpstan recognizes the change.
Bug report
As seen in the example, when a function is called with a class property as its parameter phpstan does not recognize when the property is changed between two calls and assumes the result stays the same.
If the function is called with a local variable instead, phpstan recognizes the change.
Code snippet that reproduces the problem
https://phpstan.org/r/204e22f1-fe33-4571-b2e5-571684fc6683
Expected output
No Errors
The text was updated successfully, but these errors were encountered: