Skip to content

Commit

Permalink
replaced urlencode with strval
Browse files Browse the repository at this point in the history
  • Loading branch information
eschricker committed Sep 12, 2024
1 parent 1df3eec commit 4df245b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Writing/PostmanCollectionWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ protected function generateUrlObject(OutputEndpointData $endpointData): array
// See https://www.php.net/manual/en/function.parse-str.php
$query[] = [
'key' => "{$name}[$index]",
'value' => is_string($value) ? $value : urlencode($value),
'value' => is_string($value) ? $value : strval($value),
'description' => strip_tags($parameterData->description),
// Default query params to disabled if they aren't required and have empty values
'disabled' => !$parameterData->required && empty($parameterData->example),
Expand Down

0 comments on commit 4df245b

Please sign in to comment.