Skip to content

Commit f59db8f

Browse files
authored
Fix: Update return type annotation for array() method to always return an array (#57164)
1 parent b1a34d9 commit f59db8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Collections/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function add($array, $key, $value)
6464
/**
6565
* Get an array item from an array using "dot" notation.
6666
*
67-
* @return array|null
67+
* @return array
6868
*/
6969
public static function array(ArrayAccess|array $array, string|int|null $key, ?array $default = null)
7070
{

0 commit comments

Comments
 (0)