diff --git a/Extractor/Handler/FosRestHandler.php b/Extractor/Handler/FosRestHandler.php index 8bddabe..4f958e5 100644 --- a/Extractor/Handler/FosRestHandler.php +++ b/Extractor/Handler/FosRestHandler.php @@ -56,11 +56,15 @@ class FosRestHandler implements HandlerInterface '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, + )); } } }