diff --git a/src/Analyser/NodeScopeResolver.php b/src/Analyser/NodeScopeResolver.php index 65a4781b5f6..a49bc87bb2e 100644 --- a/src/Analyser/NodeScopeResolver.php +++ b/src/Analyser/NodeScopeResolver.php @@ -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);