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
28 | Unreachable statement - code above always terminates.
-- | --
37 | Offset 'a' does not exist on array<int>\|null.
37 | Offset 'u' does not exist on array<int>\|null.
Bug report
As requested from #4694
Complicated logic not being recognised, leading to erroneous errors.
Code snippet that reproduces the problem
https://phpstan.org/r/3d974ed6-7d4b-4f91-8dcf-7187222d3004
Actual output
Expected output
Line 18 added to check that no-return being honoured.
However
$a
(theint|null
) will never benull
if it gets that far through the function.The text was updated successfully, but these errors were encountered: