diff --git a/Extractor/Handler/FosRestHandler.php b/Extractor/Handler/FosRestHandler.php index 16c0e6c..f88316d 100644 --- a/Extractor/Handler/FosRestHandler.php +++ b/Extractor/Handler/FosRestHandler.php @@ -30,7 +30,7 @@ class FosRestHandler implements HandlerInterface 'readonly' => false )); } elseif ($annot instanceof QueryParam) { - if ($annot->strict && $annot->default === null) { + if ($annot->strict && $annot->nullable === false && $annot->default === null) { $annotation->addRequirement($annot->name, array( 'requirement' => $annot->requirements, 'dataType' => '',