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

Merge pull request #6346 from orklah/id-cache

remove cache after unsetting a key from a TKeyedArray
This commit is contained in:
Bruce Weirdan 2021-08-19 22:01:44 +03:00 committed by GitHub
commit 65f34d0d9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {