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
@@ @@
19: Else branch is unreachable because ternary operator condition is always true.
-21: Method Foo::test() should return array<'return'|int, string> but returns array<string, ''>.+21: Method Foo::test() should return array<'return'|int, string> but returns array<int|string, ''>.
Full report
Line
Error
19
Else branch is unreachable because ternary operator condition is always true.
Bug report
PHPStan shows the error, that „Else branch“ is unreachable in ternary operator, but it is not true.
Code snippet that reproduces the problem
https://phpstan.org/r/5004a3b9-ccaa-4a72-8d05-32263f9bc57f
Expected output
Expected output is correct state:
https://3v4l.org/4PNGk
Did PHPStan help you today? Did it make you happy in any way?
Sometimes PHPStan find for me a very ugly bug like wrong position of closing brackets.
The text was updated successfully, but these errors were encountered: