Skip to content

Commit

Permalink
http_build_query(): Passing null to parameter #2 ($numeric_prefix) of…
Browse files Browse the repository at this point in the history
… type string is deprecated (#34)

Pass an empty string (the default value) instead.

Fixes #33
  • Loading branch information
macbre authored Oct 14, 2022
1 parent 4840547 commit 57db403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ public static function __getSignatureV4($amzHeaders, $headers, $method, $uri, $p
// Convert null query string parameters to strings and sort
$parameters = array_map('strval', $parameters);
uksort($parameters, array('self', '__sortMetaHeadersCmp'));
$queryString = http_build_query($parameters, null, '&', PHP_QUERY_RFC3986);
$queryString = http_build_query($parameters, '' /* $numeric_prefix */, '&', PHP_QUERY_RFC3986);

// Payload
$amzPayload = array($method);
Expand Down

0 comments on commit 57db403

Please sign in to comment.