From 1b762c5b859f26777e2b1a612e2e29643af708ad Mon Sep 17 00:00:00 2001 From: Paul Rijke Date: Wed, 24 Sep 2025 17:09:14 +0200 Subject: [PATCH] Fix: Update return type annotation for array() method to always return an array --- src/Illuminate/Collections/Arr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Collections/Arr.php b/src/Illuminate/Collections/Arr.php index 4f941f939bb0..ccba63b4d90f 100644 --- a/src/Illuminate/Collections/Arr.php +++ b/src/Illuminate/Collections/Arr.php @@ -64,7 +64,7 @@ public static function add($array, $key, $value) /** * Get an array item from an array using "dot" notation. * - * @return array|null + * @return array */ public static function array(ArrayAccess|array $array, string|int|null $key, ?array $default = null) {