We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b681e commit 2bb4b62Copy full SHA for 2bb4b62
Mappers/RequestParameterMiddleware.php
@@ -18,7 +18,7 @@ class RequestParameterMiddleware implements ParameterMiddlewareInterface
18
19
public function mapParameter(ReflectionParameter $parameter, DocBlock $docBlock, ?Type $paramTagType, ParameterAnnotations $parameterAnnotations, ParameterHandlerInterface $next): ParameterInterface
20
{
21
- if ($parameter->getType()->getName() === Request::class) {
+ if ($parameter->getType() and $parameter->getType()->getName() === Request::class) {
22
return new RequestParameter();
23
}
24
return $next->mapParameter($parameter, $docBlock, $paramTagType, $parameterAnnotations);
0 commit comments