Skip to content

Commit

Permalink
Use array_merge_recursive instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 12, 2024
1 parent f05c7de commit b64e57f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Registry/ElementRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Symfony\Component\Finder\Finder;

use function array_key_exists;
use function array_merge;
use function array_merge_recursive;
use function dirname;
use function implode;

Expand All @@ -32,7 +32,7 @@ final private function __construct()
if ($finder->hasResults()) {
foreach ($finder as $file) {
$elements = include($file);
$this->registry = array_merge($this->registry, $elements);
$this->registry = array_merge_recursive($this->registry, $elements);
}
}
}
Expand Down

0 comments on commit b64e57f

Please sign in to comment.