mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +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) {
|
foreach ($all_referencing_methods as $member_id => $referencing_method_ids) {
|
||||||
$member_class_name = preg_replace('/::.*$/', '', $member_id);
|
$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) {
|
if (!$member_class_storage->is_trait) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user