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

Fix issue where self::$property_name doesn’t use Context self

This commit is contained in:
Matthew Brown 2017-02-10 20:41:18 -05:00
parent 32d85e20da
commit 9b3b536254

View File

@ -573,9 +573,7 @@ class FetchChecker
return; return;
} }
} else { } else {
$fq_class_name = ($statements_checker->getNamespace() $fq_class_name = (string)$context->self;
? $statements_checker->getNamespace() . '\\'
: '') . $statements_checker->getClassName();
} }
if ($context->isPhantomClass($fq_class_name)) { if ($context->isPhantomClass($fq_class_name)) {