Upgrade to 4.2.0

This commit is contained in:
Bastian Allgeier
2024-04-10 11:09:52 +02:00
parent 77d9337371
commit 7f4eb7509d
88 changed files with 1187 additions and 490 deletions

View File

@@ -255,7 +255,7 @@ class A
* // result: ['cat' => 'miao', 'dog' => 'wuff'];
* </code>
*
* @param array $array The source array
* @param mixed $array The source array
* @param string|int|array|null $key The key to look for
* @param mixed $default Optional default value, which
* should be returned if no element
@@ -588,7 +588,7 @@ class A
*/
public static function prepend(array $array, array $prepend): array
{
return $prepend + $array;
return static::merge($prepend, $array, A::MERGE_APPEND);
}
/**