File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tests/PhpGenerator/expected Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ private function addCommentAndAttributes($element, Node $node): void
359
359
foreach ($ group ->attrs as $ attribute ) {
360
360
$ args = [];
361
361
foreach ($ attribute ->args as $ arg ) {
362
- $ value = new Literal ($ this ->getReformattedContents ([$ arg ], 0 ));
362
+ $ value = new Literal ($ this ->getReformattedContents ([$ arg-> value ], 0 ));
363
363
if ($ arg ->name ) {
364
364
$ args [$ arg ->name ->toString ()] = $ value ;
365
365
} else {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Class8
15
15
* Description of class.
16
16
*/
17
17
#[\ExampleAttribute]
18
- #[NamedArguments(foo: foo: 'bar', bar: bar: [1, 2, 3])]
18
+ #[NamedArguments(foo: 'bar', bar: [1, 2, 3])]
19
19
class Class9
20
20
{
21
21
/** Commented */
You can’t perform that action at this time.
0 commit comments