From 6f14d83d2d843c1ac98fcb0e5dbefb4683bd97c1 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 1 Mar 2025 11:06:11 +0100 Subject: [PATCH] [CLEANUP] Simplify some array handling Fixes #1009 --- src/CSSList/CSSBlockList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSSList/CSSBlockList.php b/src/CSSList/CSSBlockList.php index 10a7778c..5ab91327 100644 --- a/src/CSSList/CSSBlockList.php +++ b/src/CSSList/CSSBlockList.php @@ -33,7 +33,7 @@ public function getAllDeclarationBlocks(): array if ($item instanceof DeclarationBlock) { $result[] = $item; } elseif ($item instanceof CSSBlockList) { - $result = \array_merge($result, $item->getAllDeclarationBlocks()); + \array_push($result, ...$item->getAllDeclarationBlocks()); } }