From fef656cd137ee0a953021f5afc7e309ff7e742b7 Mon Sep 17 00:00:00 2001 From: Eneko Illarramendi Date: Sun, 18 Aug 2013 22:33:04 +0200 Subject: [PATCH] Not all "strict" params should be "Requirements" in the documentation View https://github.com/nelmio/NelmioApiDocBundle/issues/229 --- Extractor/Handler/FosRestHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' => '',