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
@@ @@-12: Unreachable statement - code above always terminates.+ 6: Function f() should return bool but return statement is missing.+19: Function g() should return bool but return statement is missing.
Full report
Line
Error
6
Function f() should return bool but return statement is missing.
19
Function g() should return bool but return statement is missing.
Bug report
The following code is detected in the latest PHPStan as “Unreachable statement - code above always terminates.”
Maybe
MutatingScope::resolveType()
needs to recursively inspect the parent element.Code snippet that reproduces the problem
https://phpstan.org/r/c877f393-c5d5-4b81-9655-709ba6b6a85b
Expected output
The last statement is reachable at run time, so no message should be printed.
https://3v4l.org/fjfml
The text was updated successfully, but these errors were encountered: