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)
147
147
$ reflection = $ this ->reflectionClass ->getProperty ($ node ->props [0 ]->name ->__toString ());
148
148
}
149
149
150
+ $ filterAttributes = [];
150
151
foreach ($ this ->readApiFilters ($ reflection ) as $ annotation ) {
151
152
[$ filterAnnotation , $ isAnnotation ] = $ annotation ;
152
153
if ($ isAnnotation ) {
@@ -172,12 +173,14 @@ public function enterNode(Node $node)
172
173
$ arguments [$ key ] = $ this ->valueToNode ($ value );
173
174
}
174
175
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 ]);
181
184
}
182
185
}
183
186
}
You can’t perform that action at this time.
0 commit comments