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

Use more specific class name

This commit is contained in:
Brown 2019-04-15 15:45:24 -04:00
parent 4ef63b5a3f
commit 24084eb2ec

View File

@ -1004,7 +1004,9 @@ class ClassAnalyzer extends ClassLikeAnalyzer
$error_location = $property_storage->location;
if ($storage->declaring_property_ids[$property_name] !== $fq_class_name) {
$error_location = $storage->location;
$error_location = $this->class->name
? new CodeLocation($this, $this->class->name)
: $storage->location;
}
if ($fq_class_name !== $constructor_appearing_fqcln