Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Nov 9, 2023
1 parent 8dcbb5d commit e3d9d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private function createUrl($path, $options = [])
{
if (!is_string($path)) {
$url = implode('/', array_map(function ($a) {
return urlencode(is_array($a) ? implode(',', $a) : $a);
return urlencode(is_array($a) ? implode(',', $a) : (string) $a);
}, $path));
if (!empty($options)) {
$url .= '?' . http_build_query($options);
Expand Down

0 comments on commit e3d9d83

Please sign in to comment.