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:
parent
6707672528
commit
80bfc168df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user