We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d0d3cd commit 18cbc1cCopy full SHA for 18cbc1c
1 file changed
src/AccessHelper.php
@@ -37,7 +37,7 @@ public static function keyExists(mixed $collection, $key, bool $magicIsAllowed =
37
}
38
39
if (\is_array($collection)) {
40
- return \array_key_exists($key, $collection);
+ return \array_key_exists($key ?? '', $collection);
41
42
43
if ($collection instanceof ArrayAccess) {
0 commit comments