From a1ef5f9568a5e94a14b4f315e91ef214ce25dd6c Mon Sep 17 00:00:00 2001 From: alex-mailpoet Date: Mon, 8 Aug 2022 17:09:03 +0300 Subject: [PATCH] Fix type hint in fix-guzzle.php [PREMIUM-199] --- mailpoet/tasks/fix-guzzle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailpoet/tasks/fix-guzzle.php b/mailpoet/tasks/fix-guzzle.php index cf3305053a..3df4d5f7db 100644 --- a/mailpoet/tasks/fix-guzzle.php +++ b/mailpoet/tasks/fix-guzzle.php @@ -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); }