Skip to content
This repository was archived by the owner on Aug 13, 2023. It is now read-only.

Commit 5756fda

Browse files
authored
Update KeyTrait.php
1 parent 2b40cdf commit 5756fda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Helper/Helpers/Arr/KeyTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ public function evenKey(array $storage)
7070
});
7171
}
7272

73-
/**
73+
/**
7474
* @param array $storage
7575
* @param string $key
7676
*
7777
* @return bool
7878
*/
7979
public function keyExists(array $storage, $key)
8080
{
81-
return isset($storage[$key]) || $this->get($storage, $key) !== null;
81+
return isset($storage[$key]) || array_key_exists($key, $storage);
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)