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 b677e66 commit 2b91065Copy full SHA for 2b91065
src/Tools/Generator.php
@@ -88,7 +88,7 @@ protected function getBodyParameters(ReflectionMethod $method, array $tags)
88
? $paramType->__toString()
89
: $paramType->getName();
90
$parameterClass = new ReflectionClass($parameterClassName);
91
- if ($parameterClass->isSubclassOf(\Illuminate\Foundation\Http\FormRequest::class)) {
+ if (class_exists('\Illuminate\Foundation\Http\FormRequest') && $parameterClass->isSubclassOf(\Illuminate\Foundation\Http\FormRequest::class)) {
92
$formRequestDocBlock = new DocBlock($parameterClass->getDocComment());
93
$bodyParametersFromDocBlock = $this->getBodyParametersFromDocBlock($formRequestDocBlock->getTags());
94
0 commit comments