1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 09:47:29 +01:00

remove cache after unsetting a key from a TKeyedArray

This commit is contained in:
orklah 2021-08-19 20:40:25 +02:00
parent 2e7763c314
commit 6ba8876153

View File

@ -51,6 +51,7 @@ class UnsetAnalyzer
) {
if (isset($atomic_root_type->properties[$var->dim->value])) {
unset($atomic_root_type->properties[$var->dim->value]);
$root_type->bustCache(); //remove id cache
}
if (!$atomic_root_type->properties) {