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 08afc45):
INFO: Trace - 13:5 - $b: non-empty-string
INFO: UnusedVariable - 13:5 - $b is never referenced or the value is not used
INFO: Trace - 26:5 - $b: non-empty-literal-string
INFO: UnusedVariable - 26:5 - $b is never referenced or the value is not used
When doing an early return on
'' === $string
the literal-string type is lost.Notice that the early return on
!$string
doesn't produce the same issue.https://psalm.dev/r/6e2018c6b3
The text was updated successfully, but these errors were encountered: