Skip to content

Commit

Permalink
Merge pull request #7004 from weirdan/drop-unused-property
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Nov 26, 2021
2 parents c46e67a + 2afced3 commit 3441197
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php
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 3441197

Please sign in to comment.