From dcd379b7b314215a79f9a4f638f7550dd771414c Mon Sep 17 00:00:00 2001 From: Elie Date: Thu, 5 Feb 2015 15:48:15 +0100 Subject: [PATCH] Fix unused nullable param FriendsOfSymfony/FOSRestBundle#960 --- Request/ParamFetcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Request/ParamFetcher.php b/Request/ParamFetcher.php index 5824ad38d..dda285ad1 100644 --- a/Request/ParamFetcher.php +++ b/Request/ParamFetcher.php @@ -137,7 +137,7 @@ public function get($name, $strict = null) if ($config->array) { if (!is_array($param)) { - if ($strict) { + if (!$nullable) { throw new BadRequestHttpException( sprintf("%s parameter value of '%s' is not an array", $paramType, $name) );