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 a20d0df commit 0222f79Copy full SHA for 0222f79
src/Builder/Class_.php
@@ -147,6 +147,11 @@ private function buildMethodParams( $docParams, $httpMethod ){
147
$swaggerParams = [];
148
149
foreach( $docParams as $paramDocBlock ){
150
+ if( $paramDocBlock instanceof \phpDocumentor\Reflection\DocBlock\Tags\InvalidTag ){
151
+ error_log( var_export($paramDocBlock, true) );
152
+ continue;
153
+ }
154
+
155
$variableName = $paramDocBlock->getVariableName();
156
157
// *号结尾的参数名标识必填字段
@@ -233,7 +238,9 @@ private function buildMethodResponses( $docReturns, & $produces ){
233
238
];
234
239
}
235
240
236
- $produces = array_unique( $produces );
241
+ if( $produces ) {
242
+ $produces = array_unique( $produces );
243
237
244
245
return $swaggerResponses;
246
0 commit comments