Skip to content

Commit

Permalink
proper scope use
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed May 27, 2022
1 parent bce14f9 commit c9526a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Analyser/NodeScopeResolver.php
Expand Up @@ -621,7 +621,7 @@ private function processStmtNode(
throw new ShouldNotHappenException();
}

$this->processAttributeGroups($stmt->attrGroups, $scope, $nodeCallback);
$this->processAttributeGroups($stmt->attrGroups, $classScope, $nodeCallback);

$classStatementsGatherer = new ClassStatementsGatherer($classReflection, $nodeCallback);
$this->processStmtNodes($stmt, $stmt->stmts, $classScope, $classStatementsGatherer);
Expand Down

0 comments on commit c9526a5

Please sign in to comment.