Skip to content

Commit c93ea4a

Browse files
committed
Fixing has() to recognize keys with null value.
1 parent 9c253bb commit c93ea4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dflydev/DotAccessData/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function has($key)
171171
$currentKey = $keyPath[$i];
172172
if (
173173
!is_array($currentValue) ||
174-
!isset($currentValue[$currentKey])
174+
!array_key_exists($currentKey, $currentValue)
175175
) {
176176
return false;
177177
}

0 commit comments

Comments
 (0)