Skip to content

Commit

Permalink
Fix crash for case-insentive match without docblock
Browse files Browse the repository at this point in the history
Error message:
> Call to a member function hasMethod() on bool at src/JsonMapper.php:564

Resolves: #222
Resolves: #223
  • Loading branch information
jorrit authored and cweiske committed Jan 31, 2024
1 parent f424895 commit 132c75c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JsonMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ protected function inspectProperty(ReflectionClass $rc, $name)
foreach ($rc->getProperties() as $p) {
if ((strcasecmp($p->name, $name) === 0)) {
$rprop = $p;
$class = $rc;
break;
}
}
Expand Down

0 comments on commit 132c75c

Please sign in to comment.