From c9526a5ced6b284fcd06f0f80426c79d8d02d25b Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Fri, 27 May 2022 14:37:52 +0200 Subject: [PATCH] proper scope use --- src/Analyser/NodeScopeResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);