mirror of
https://github.com/danog/psalm.git
synced 2025-01-06 04:59:14 +01:00
Fixes
This commit is contained in:
parent
78d64e3604
commit
3ce782f0f1
@ -564,15 +564,18 @@ class SimpleNegatedAssertionReconciler extends Reconciler
|
|||||||
$properties []= $array_atomic_type->properties[$x]
|
$properties []= $array_atomic_type->properties[$x]
|
||||||
?? $array_atomic_type->fallback_params[1]->setPossiblyUndefined(true);
|
?? $array_atomic_type->fallback_params[1]->setPossiblyUndefined(true);
|
||||||
}
|
}
|
||||||
assert($properties !== []);
|
|
||||||
$existing_var_type->removeType('array');
|
$existing_var_type->removeType('array');
|
||||||
$existing_var_type->addType(new TKeyedArray(
|
if (!$properties) {
|
||||||
$properties,
|
$existing_var_type->addType(Type::getEmptyArrayAtomic());
|
||||||
null,
|
} else {
|
||||||
null,
|
$existing_var_type->addType(new TKeyedArray(
|
||||||
true,
|
$properties,
|
||||||
$array_atomic_type->from_docblock
|
null,
|
||||||
));
|
null,
|
||||||
|
true,
|
||||||
|
$array_atomic_type->from_docblock
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$redundant = false;
|
$redundant = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user