Skip to content

Commit

Permalink
Don't use uri_template if no variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fvarrin committed Sep 28, 2023
1 parent 90dc7bd commit 9e0c478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sitra/ApiClient/ApidaeSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private function createCommandWithUri(Operation $operation, CommandInterface $co
}

// Expand the URI template.
$uri = \GuzzleHttp\uri_template($operation->getUri(), $variables);
$uri = (count($variables) !== 0) ? \GuzzleHttp\uri_template($operation->getUri(), $variables) : $operation->getUri();

return new Request(
$operation->getHttpMethod(),
Expand Down

0 comments on commit 9e0c478

Please sign in to comment.