We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d99e254 commit 7c197afCopy full SHA for 7c197af
src/Dot.php
@@ -33,7 +33,7 @@ public function get(?string $key, $default = null)
33
34
foreach (explode('.', $key) as $index) {
35
if (!is_array($item) || !array_key_exists($index, $item)) {
36
- return null;
+ return $default;
37
}
38
$item =& $item[$index];
39
0 commit comments