diff --git a/src/Psalm/Internal/Codebase/Populator.php b/src/Psalm/Internal/Codebase/Populator.php index e165d276a..971c109c1 100644 --- a/src/Psalm/Internal/Codebase/Populator.php +++ b/src/Psalm/Internal/Codebase/Populator.php @@ -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; }