Skip to content

Commit

Permalink
Fix performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ossinkine committed Aug 17, 2022
1 parent 27b891b commit e40d112
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function __construct(
private readonly ParentAttributeSourceLocator $parentAttributeSourceLocator,
private readonly NodeNameResolver $nodeNameResolver
) {
$this->decoratePHPStanNodeScopeResolverWithRenamedClassSourceLocator($this->nodeScopeResolver);
}

/**
Expand Down Expand Up @@ -216,8 +217,6 @@ public function processNodes(
}
};

$this->decoratePHPStanNodeScopeResolverWithRenamedClassSourceLocator($this->nodeScopeResolver);

return $this->processNodesWithDependentFiles($smartFileInfo, $stmts, $scope, $nodeCallback);
}

Expand Down

0 comments on commit e40d112

Please sign in to comment.