Skip to content

Commit c905dc6

Browse files
committed
[CLEANUP] Simplify some array handling
Fixes #1009
1 parent 50045f7 commit c905dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CSSList/CSSBlockList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getAllDeclarationBlocks(): array
3333
if ($item instanceof DeclarationBlock) {
3434
$result[] = $item;
3535
} elseif ($item instanceof CSSBlockList) {
36-
$result = \array_merge($result, $item->getAllDeclarationBlocks());
36+
\array_push($result, ...$item->getAllDeclarationBlocks());
3737
}
3838
}
3939

0 commit comments

Comments
 (0)