Skip to content

Commit

Permalink
Fixed reflection method for PHP 8 and greater,
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Parker committed Jul 22, 2022
1 parent 722eb59 commit 393e7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StandardReflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getParamTypeHint(ReflectionFunctionAbstract $function, Reflectio
if (PHP_VERSION_ID >= 80000) {
$reflectionClass = $param->getType() ? (string) $param->getType() : null;
} else {
$reflectionClass = $param->getClass();
$reflectionClass = $param->getType();
if ($reflectionClass) {
$reflectionClass = $reflectionClass->getName();
}
Expand Down

0 comments on commit 393e7a8

Please sign in to comment.