Skip to content

Commit

Permalink
Merge 2bb4b62 into 25b681e
Browse files Browse the repository at this point in the history
  • Loading branch information
espritf committed Oct 7, 2020
2 parents 25b681e + 2bb4b62 commit ddad0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mappers/RequestParameterMiddleware.php
Expand Up @@ -18,7 +18,7 @@ class RequestParameterMiddleware implements ParameterMiddlewareInterface

public function mapParameter(ReflectionParameter $parameter, DocBlock $docBlock, ?Type $paramTagType, ParameterAnnotations $parameterAnnotations, ParameterHandlerInterface $next): ParameterInterface
{
if ($parameter->getType()->getName() === Request::class) {
if ($parameter->getType() and $parameter->getType()->getName() === Request::class) {
return new RequestParameter();
}
return $next->mapParameter($parameter, $docBlock, $paramTagType, $parameterAnnotations);
Expand Down

0 comments on commit ddad0e5

Please sign in to comment.