Skip to content

Commit

Permalink
Merge pull request #56 from hussein4alaa/3.1.7
Browse files Browse the repository at this point in the history
fix isBuiltin function issue
  • Loading branch information
hussein4alaa authored Jul 3, 2024
2 parents 348fe41 + dc94794 commit ccc2083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getRequestClassName(string $controllerMethod): array
$parameters = $reflection->getParameters() ?? [];
foreach ($parameters as $parameter) {
$typeHint = $parameter ? $parameter->getType() : null;
if ($typeHint && !$typeHint->isBuiltin()) {
if ($typeHint instanceof ReflectionNamedType && !$typeHint->isBuiltin()) {
try {
$request = $typeHint->getName();
$request = new $request();
Expand Down

0 comments on commit ccc2083

Please sign in to comment.