1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Skip if storage cannot be found

This commit is contained in:
Brown 2018-10-03 18:26:36 -04:00
parent 6707672528
commit 80bfc168df

View File

@ -310,7 +310,11 @@ class Analyzer
foreach ($all_referencing_methods as $member_id => $referencing_method_ids) {
$member_class_name = preg_replace('/::.*$/', '', $member_id);
$member_class_storage = $this->classlike_storage_provider->get($member_class_name);
try {
$member_class_storage = $this->classlike_storage_provider->get($member_class_name);
} catch (\Exception $e) {
continue;
}
if (!$member_class_storage->is_trait) {
continue;