mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
fix error on continue
This commit is contained in:
parent
2e7e343ef8
commit
dd5c2904d8
@ -978,7 +978,7 @@ class Union implements TypeNode
|
||||
if ($atomic_type instanceof Type\Atomic\TLiteralString &&
|
||||
($atomic_type->value === '' || $atomic_type->value === '0')
|
||||
) {
|
||||
continue;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($atomic_type instanceof Type\Atomic\TNull) {
|
||||
@ -1068,7 +1068,7 @@ class Union implements TypeNode
|
||||
if ($atomic_type instanceof Type\Atomic\TKeyedArray) {
|
||||
foreach ($atomic_type->properties as $property) {
|
||||
if ($property->possibly_undefined === false) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user