mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +01:00
fix isAlwaysTruthy: TNonEmptyString can be falsy (with '0')
This commit is contained in:
parent
213644d48e
commit
20bb5f196b
@ -1045,11 +1045,11 @@ class Union implements TypeNode
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($atomic_type instanceof Type\Atomic\TNonEmptyString) {
|
||||
if ($atomic_type instanceof Type\Atomic\TNonFalsyString) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($atomic_type instanceof Type\Atomic\TNonEmptyNonspecificLiteralString) {
|
||||
if ($atomic_type instanceof Type\Atomic\TCallableString) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user