Merge pull request #230 from eillarra/patch-1

Not all "strict" params should be "Requirements" in the documentation, closes #229
This commit is contained in:
William Durand 2013-08-18 13:44:37 -07:00
commit a2dc56d6e5

View File

@ -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' => '',