From e213493c9114a6c58fd1e50248d641f461d8e4a8 Mon Sep 17 00:00:00 2001 From: jdpedrie Date: Wed, 23 Nov 2016 11:50:11 -0500 Subject: [PATCH] Remove URI options from available options Fixes #249 --- src/RequestBuilder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RequestBuilder.php b/src/RequestBuilder.php index e2006706d2ca..f0b8064f1e0b 100644 --- a/src/RequestBuilder.php +++ b/src/RequestBuilder.php @@ -90,6 +90,7 @@ public function build($resource, $method, array $options = []) foreach ($action['parameters'] as $parameter => $parameterOptions) { if ($parameterOptions['location'] === 'path' && array_key_exists($parameter, $options)) { $path[$parameter] = $options[$parameter]; + unset($options[$parameter]); } if ($parameterOptions['location'] === 'query' && array_key_exists($parameter, $options)) {