Skip to content

Commit 7c197af

Browse files
author
Kieron
authored
Update Dot.php
1 parent d99e254 commit 7c197af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function get(?string $key, $default = null)
3333

3434
foreach (explode('.', $key) as $index) {
3535
if (!is_array($item) || !array_key_exists($index, $item)) {
36-
return null;
36+
return $default;
3737
}
3838
$item =& $item[$index];
3939
}

0 commit comments

Comments
 (0)