modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-09-19 12:21:28 +04:00
parent b7ea1985b3
commit 7782b1039c
1 changed files with 4 additions and 1 deletions

View File

@ -336,7 +336,10 @@ class cl {
static final function merge2(...$arrays): ?array {
$merged = null;
foreach ($arrays as $array) {
foreach (self::with($array) as $key => $value) {
$array = self::withn($array);
if ($array === null) continue;
$merged ??= [];
foreach ($array as $key => $value) {
$merged[$key] = $value;
}
}