Skip to content

Commit

Permalink
Drop unused $fq_classlike_names property
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Nov 26, 2021
1 parent 2fbad1b commit 2afced3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements FileSour
*/
private $aliases;

/**
* @var string[]
*/
private $fq_classlike_names = [];

/**
* @var FileScanner
*/
Expand Down Expand Up @@ -288,7 +283,7 @@ public function enterNode(PhpParser\Node $node): ?int
$this->file_storage->declaring_constants[$fq_const_name] = $this->file_path;
}
} elseif ($node instanceof PhpParser\Node\Stmt\If_ && !$this->skip_if_descendants) {
if (!$this->fq_classlike_names && !$this->functionlike_node_scanners) {
if (!$this->functionlike_node_scanners) {
$this->exists_cond_expr = $node->cond;

if (Reflector\ExpressionResolver::enterConditional(
Expand Down

0 comments on commit 2afced3

Please sign in to comment.