mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Fix possibly null issue
This commit is contained in:
parent
2930eb3f99
commit
81534bbe18
@ -336,7 +336,7 @@ class ClassLikes
|
||||
$calling_method_id,
|
||||
$fq_class_name_lc
|
||||
);
|
||||
} elseif (strtolower($calling_fq_class_name) !== $fq_class_name_lc) {
|
||||
} elseif (!$calling_fq_class_name || strtolower($calling_fq_class_name) !== $fq_class_name_lc) {
|
||||
$this->file_reference_provider->addNonMethodReferenceToClass(
|
||||
$code_location->file_path,
|
||||
$fq_class_name_lc
|
||||
|
Loading…
x
Reference in New Issue
Block a user