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
duplicate of #6402, this seems to be trickier unfortunately
fluffycondor
changed the title
False-positive Readonly property is already assigned in if-else condition
Readonly property can be not set in if-else condition, and PHPStan yields no error
Jul 18, 2022
Bug report
Readonly property can be not set in if-else condition, and PHPStan yields no error.
Code snippet that reproduces the problem
https://phpstan.org/r/9d088cab-7c46-4d83-a75b-739900979c5b
Expected output
This snippet should yield a "Readonly property not set in the constructor" issue.
The text was updated successfully, but these errors were encountered: