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
When null-safe operator ?-> call is used in condition and same variable is later used inside that condition, PHPStan reports Cannot call method bar() on Foo|null. But variable cannot be null at that point.
Bug report
When null-safe operator
?->
call is used in condition and same variable is later used inside that condition, PHPStan reportsCannot call method bar() on Foo|null
. But variable cannot be null at that point.Code snippet that reproduces the problem
https://phpstan.org/r/23989351-570f-4155-99eb-e911b9c8523e
Expected output
No error reported
The text was updated successfully, but these errors were encountered: