1
0
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:
orklah 2021-09-22 13:09:08 +02:00
parent 2e7e343ef8
commit dd5c2904d8

View File

@ -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;
}
}
}