Skip to content

Commit 1e528f3

Browse files
taylorotwelltegos
authored andcommitted
fix type hint
1 parent 4f8f936 commit 1e528f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Collections/Arr.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ public static function add($array, $key, $value)
6363

6464
/**
6565
* Get an array item from an array using "dot" notation.
66+
*
67+
* @return array|null
6668
*/
67-
public static function array(ArrayAccess|array $array, string|int|null $key, ?array $default = null): array
69+
public static function array(ArrayAccess|array $array, string|int|null $key, ?array $default = null)
6870
{
6971
$value = Arr::get($array, $key, $default);
7072

0 commit comments

Comments
 (0)