1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

Catch InvalidArgumentException (#5061)

This commit is contained in:
Vincent Langlet 2021-01-20 23:42:45 +01:00 committed by Daniil Gentili
parent 394f7347de
commit df5b3418b0
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -118,7 +118,11 @@ class Populator
}
foreach ($class_storage->dependent_classlikes as $dependent_classlike_lc => $_) {
$dependee_storage = $this->classlike_storage_provider->get($dependent_classlike_lc);
try {
$dependee_storage = $this->classlike_storage_provider->get($dependent_classlike_lc);
} catch (\InvalidArgumentException $exception) {
continue;
}
$class_storage->dependent_classlikes += $dependee_storage->dependent_classlikes;
}