Skip to content

Commit dcd379b

Browse files
eliecharralsmith77
authored andcommitted
Fix unused nullable param
#960
1 parent 4f9526d commit dcd379b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request/ParamFetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function get($name, $strict = null)
137137

138138
if ($config->array) {
139139
if (!is_array($param)) {
140-
if ($strict) {
140+
if (!$nullable) {
141141
throw new BadRequestHttpException(
142142
sprintf("%s parameter value of '%s' is not an array", $paramType, $name)
143143
);

0 commit comments

Comments
 (0)