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

Catch InvalidArgumentException (#5061)

This commit is contained in:
Vincent Langlet 2021-01-20 23:42:45 +01:00 committed by GitHub
parent d296c4bb9a
commit c912b6c2b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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