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 checking if a value is not of a specific class ie instanceof and using not equals with an enum, the enum is not added as a possible value. This leads to a TypeDoesNotContainType in valid code.
Psalm output (using commit 3af9ccd):
ERROR: TypeDoesNotContainType - 15:12 - enum(Enu::Bar) cannot be identical to Clas
ERROR: TypeDoesNotContainType - 15:12 - Type Clas for $fiz is never =enum(Enu::Bar)
When checking if a value is not of a specific class ie instanceof and using not equals with an enum, the enum is not added as a possible value. This leads to a
TypeDoesNotContainType
in valid code.https://psalm.dev/r/1e34436864
The text was updated successfully, but these errors were encountered: