1
0
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:
Brown 2020-04-04 18:42:14 -04:00
parent 40345dd29c
commit 2930eb3f99
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,