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 a215cc1 commit 2e2c450Copy full SHA for 2e2c450
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