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
Psalm output (using commit fc233da):
ERROR: RedundantCondition - 15:12 - Operand of type true is always truthy
ERROR: TypeDoesNotContainType - 15:27 - Type true for $foo is never falsy
INFO: UnusedVariable - 10:9 - $foo is never referenced or the value is not used
nocive
changed the title
NoValue and other false positives with multiple catch blocks
False positives with multiple catch blocks
May 4, 2023
It seems when one has multiple catch blocks psalm raises some false positives, because it thinks one of the catch branches is never used.
I found this problem in our codebase and managed to isolate the problem in the following snippet: https://psalm.dev/r/e03049439d
This bug can lead to
NoValue
,UnusedVariable
and other false positives which I assume derive from the same problem.The text was updated successfully, but these errors were encountered: