Skip to content

Commit

Permalink
urlencode: force argument to string (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
agoosev authored Aug 25, 2022
1 parent 5c51f5b commit bceffee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/Request/RequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private function getRequestUri(ServiceRequestInterface $serviceRequest)
throw new InvalidArgumentException($message, $errorCode);
}
$value = $serviceRequest->$getterMethod();
$value = array_key_exists($key, $queryParams) ? urlencode($value) : $value;
$value = array_key_exists($key, $queryParams) ? urlencode((string)$value) : $value;
$path = str_replace($placeholder, $value, $path);
}

Expand Down

0 comments on commit bceffee

Please sign in to comment.