From b1449fab63ff073b771721a6da5d8c09351015f7 Mon Sep 17 00:00:00 2001 From: Giedrius Dubinskas Date: Mon, 17 Oct 2016 12:38:15 +0000 Subject: [PATCH] Fixed undefined variable error in call from ConduitIntListParameterType Summary: `$strict` parameter was missing in `$this->parseIntValue(...)` call. Test Plan: ``` $ curl http://$PHABRICATOR_HOST/api/maniphest.search -d api.token=$CONDUIT_TOKEN -d constraints[priorities][0]=90 -d limit=1 # OK ``` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16712 --- .../conduit/parametertype/ConduitIntListParameterType.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/applications/conduit/parametertype/ConduitIntListParameterType.php b/src/applications/conduit/parametertype/ConduitIntListParameterType.php index 7733977d0e..27e0ff9843 100644 --- a/src/applications/conduit/parametertype/ConduitIntListParameterType.php +++ b/src/applications/conduit/parametertype/ConduitIntListParameterType.php @@ -7,7 +7,11 @@ final class ConduitIntListParameterType $list = parent::getParameterValue($request, $key, $strict); foreach ($list as $idx => $item) { - $list[$idx] = $this->parseIntValue($request, $key.'['.$idx.']', $item); + $list[$idx] = $this->parseIntValue( + $request, + $key.'['.$idx.']', + $item, + $strict); } return $list;