mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-18 04:48:39 +00:00
Merge branch 'develop' of https://github.com/Orange-Management/phpOMS into develop
This commit is contained in:
commit
10494cc160
|
|
@ -57,7 +57,7 @@ final class ArrayUtils
|
|||
throw new \Exception();
|
||||
}
|
||||
|
||||
foreach ($nodes as &$node) {
|
||||
foreach ($nodes as $node) {
|
||||
$prevEl = &$el;
|
||||
|
||||
if (!isset($el[$node])) {
|
||||
|
|
@ -102,10 +102,10 @@ final class ArrayUtils
|
|||
|
||||
if ($overwrite) {
|
||||
$current = $value;
|
||||
} elseif (\is_array($current) && !is_array($value)) {
|
||||
} elseif (\is_array($current) && !\is_array($value)) {
|
||||
$current[] = $value;
|
||||
} elseif (\is_array($current) && is_array($value)) {
|
||||
$current = array_merge($current, $value);
|
||||
} elseif (\is_array($current) && \is_array($value)) {
|
||||
$current = \array_merge($current, $value);
|
||||
} elseif (\is_scalar($current) && $current !== null) {
|
||||
$current = [$current, $value];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user