Skip to content

Commit 67738c5

Browse files
committed
Added support for parsing php8 types
1 parent ffea4ac commit 67738c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Hydrators/Hydrator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,10 @@ private function parseAnnotation(ReflectionProperty $rp, string $name): string|n
705705
}
706706
}
707707

708+
if ($name === 'var' && $rp->getType() !== null) {
709+
return $rp->getType()->getName();
710+
}
711+
708712
return null;
709713
}
710714

0 commit comments

Comments
 (0)