diff --git a/Extractor/Handler/FosRestHandler.php b/Extractor/Handler/FosRestHandler.php index 8bddabe33..4f958e5f0 100644 --- a/Extractor/Handler/FosRestHandler.php +++ b/Extractor/Handler/FosRestHandler.php @@ -56,11 +56,15 @@ public function handle(ApiDoc $annotation, array $annotations, Route $route, \Re 'description' => $annot->description, 'default' => $annot->default, )); - } else { + } elseif ($annot->requirements !== null) { $annotation->addFilter($annot->name, array( 'requirement' => $this->handleRequirements($annot->requirements).((property_exists($annot, 'map') ? $annot->map : $annot->array) ? '[]' : ''), 'description' => $annot->description, )); + } else { + $annotation->addFilter($annot->name, array( + 'description' => $annot->description, + )); } } }