Skip to content

Commit 43990b6

Browse files
test has path
1 parent e3a3b55 commit 43990b6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/DotNotation.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ function unset_path(array &$haystack, string $path, string $separator = '.')
7373
function has_path(array $haystack, string $path, string $separator = '.'): bool
7474
{
7575
$keys = explode($separator, $path);
76-
if (count($keys) === 0) {
77-
return false;
78-
}
79-
8076
$target = $haystack;
8177
foreach ($keys as $innerKey) {
8278
if (! is_array($target) || ! array_key_exists($innerKey, $target)) {

0 commit comments

Comments
 (0)