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)) {