1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +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;
}
} else {
$fq_class_name = ($statements_checker->getNamespace()
? $statements_checker->getNamespace() . '\\'
: '') . $statements_checker->getClassName();
$fq_class_name = (string)$context->self;
}
if ($context->isPhantomClass($fq_class_name)) {