We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6232878 commit 4108f14Copy full SHA for 4108f14
src/Builder/ClassBuilder.php
@@ -364,13 +364,16 @@ static function (Node\Name $name) {
364
);
365
break;
366
case $node instanceof Node\Stmt\TraitUse:
367
- $this->traits = \array_map(
368
- static function (Node\Name $name) {
369
- return $name instanceof Node\Name\FullyQualified
370
- ? '\\' . $name->toString()
371
- : $name->toString();
372
- },
373
- $node->traits
+ \array_push(
+ $this->traits,
+ ...\array_map(
+ static function (Node\Name $name) {
+ return $name instanceof Node\Name\FullyQualified
+ ? '\\' . $name->toString()
+ : $name->toString();
374
+ },
375
+ $node->traits
376
+ )
377
378
379
case $node instanceof Node\Stmt\ClassConst:
0 commit comments