Skip to content

Commit 0aec38d

Browse files
committed
Fixing namespace
1 parent 67738c5 commit 0aec38d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hydrators/Hydrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ private function parseAnnotation(ReflectionProperty $rp, string $name): string|n
705705
}
706706
}
707707

708-
if ($name === 'var' && $rp->getType() !== null) {
708+
if ($name === 'var' && $rp->getType() instanceof ReflectionNamedType) {
709709
return $rp->getType()->getName();
710710
}
711711

0 commit comments

Comments
 (0)