Skip to content

Commit a24ccc6

Browse files
authored
Update AccessHelper.php
1 parent 15ce1ad commit a24ccc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AccessHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function keyExists($collection, $key, bool $magicIsAllowed = false
6969
}
7070

7171
if (is_object($collection)) {
72-
return property_exists($collection, $key);
72+
return property_exists($collection, (string)$key);
7373
}
7474

7575
return false;

0 commit comments

Comments
 (0)