From 7782b1039ce7b6eb8fbd093404cdf04cdf39801d Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 19 Sep 2024 12:21:28 +0400 Subject: [PATCH] modifs.mineures sans commentaires --- src/cl.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cl.php b/src/cl.php index 9e406a4..a0fc0dd 100644 --- a/src/cl.php +++ b/src/cl.php @@ -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; } }