1
0
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:
Brown 2020-04-04 18:57:33 -04:00
parent 2930eb3f99
commit 81534bbe18

View File

@ -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