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:
parent
4ef63b5a3f
commit
24084eb2ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user