mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Prevent storing references to classes from within those classes
This commit is contained in:
parent
40345dd29c
commit
2930eb3f99
@ -336,7 +336,7 @@ class ClassLikes
|
||||
$calling_method_id,
|
||||
$fq_class_name_lc
|
||||
);
|
||||
} else {
|
||||
} elseif (strtolower($calling_fq_class_name) !== $fq_class_name_lc) {
|
||||
$this->file_reference_provider->addNonMethodReferenceToClass(
|
||||
$code_location->file_path,
|
||||
$fq_class_name_lc
|
||||
|
@ -155,7 +155,7 @@ class TypeChecker extends NodeVisitor
|
||||
$this->source,
|
||||
$atomic->value,
|
||||
$this->code_location,
|
||||
null,
|
||||
$this->source->getFQCLN(),
|
||||
null,
|
||||
$this->suppressed_issues,
|
||||
$this->inferred,
|
||||
|
Loading…
x
Reference in New Issue
Block a user