Fix type hint in fix-guzzle.php

[PREMIUM-199]
This commit is contained in:
alex-mailpoet
2022-08-08 17:09:03 +03:00
committed by alex-mailpoet
parent e7534132d3
commit a1ef5f9568

View File

@ -24,8 +24,8 @@ if (!file_exists($clientFilePath) || version_compare(phpversion(), '8.0.0') == -
}
$replacement = '
// Updated by MailPoet
function http_build_query($data, string $numeric_prefix = "", ?string $arg_separator = "&", int $encoding_type = PHP_QUERY_RFC1738) {
$prefix = empty($numeric_prefix) ? "" : $numeric_prefix;
function http_build_query($data, ?string $numeric_prefix = "", ?string $arg_separator = "&", int $encoding_type = PHP_QUERY_RFC1738) {
$prefix = empty($numeric_prefix) ? "" : $numeric_prefix;
return \http_build_query($data, $numeric_prefix, $arg_separator, $encoding_type);
}