File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ public function enterNode(Node $node)
147147 $ reflection = $ this ->reflectionClass ->getProperty ($ node ->props [0 ]->name ->__toString ());
148148 }
149149
150+ $ filterAttributes = [];
150151 foreach ($ this ->readApiFilters ($ reflection ) as $ annotation ) {
151152 [$ filterAnnotation , $ isAnnotation ] = $ annotation ;
152153 if ($ isAnnotation ) {
@@ -172,12 +173,14 @@ public function enterNode(Node $node)
172173 $ arguments [$ key ] = $ this ->valueToNode ($ value );
173174 }
174175
175- $ node ->attrGroups [] = new Node \AttributeGroup ([
176- new Node \Attribute (
177- new Node \Name ('ApiFilter ' ),
178- $ this ->arrayToArguments ($ arguments ),
179- ),
180- ]);
176+ $ filterAttributes [] = new Node \Attribute (
177+ new Node \Name ('ApiFilter ' ),
178+ $ this ->arrayToArguments ($ arguments ),
179+ );
180+ }
181+
182+ foreach ($ filterAttributes as $ filterAttribute ) {
183+ $ node ->attrGroups [] = new Node \AttributeGroup ([$ filterAttribute ]);
181184 }
182185 }
183186 }
You can’t perform that action at this time.
0 commit comments