Fixed Guzzlehttp needs to be updated to version 7.8.2+ to fully support PHP 8.4

bzcomputers

Well-known member
Affected version
2.3.4
The current included Guzzlehttp is version 7.8.1, which does not support PHP 8.4. For PHP 8.4 support Guzzlehttp must be upgraded to version 7.8.2+.

After upgrading to PHP 8.4 numerous deprecation warnings are logged with Guzzlehttp 7.8.1.

Code:
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Psr7\Uri::isSameDocumentReference(): Implicitly marking parameter $base as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/psr7/src/Uri.php on line 282
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Client::getConfig(): Implicitly marking parameter $option as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/Client.php on line 205
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\ClientInterface::getConfig(): Implicitly marking parameter $option as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/ClientInterface.php on line 83
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\HandlerStack::create(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/HandlerStack.php on line 47
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\HandlerStack::__construct(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/HandlerStack.php on line 61
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\HandlerStack::unshift(): Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/HandlerStack.php on line 134
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Handler\StreamHandler::invokeStats(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php on line 82
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Handler\StreamHandler::invokeStats(): Implicitly marking parameter $error as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php on line 82
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Middleware::httpErrors(): Implicitly marking parameter $bodySummarizer as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/Middleware.php on line 58
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Middleware::tap(): Implicitly marking parameter $before as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/Middleware.php on line 135
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Middleware::tap(): Implicitly marking parameter $after as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/Middleware.php on line 135
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Middleware::retry(): Implicitly marking parameter $delay as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/guzzle/src/Middleware.php on line 179
[16-Jan-2025 08:13:43 UTC] PHP Deprecated:  GuzzleHttp\Psr7\Utils::readLine(): Implicitly marking parameter $maxLength as nullable is deprecated, the explicit nullable type must be used instead in /home/x/public_html/community/src/vendor/guzzlehttp/psr7/src/Utils.php on line 234
 
Note that deprecation warnings are just that, warnings, and can be safely ignored. Many of these may simply become an issue in PHP 8.5 or PHP 9.0, depending on when the deprecation is eventually enacted.

However, XF 2.3.5 has already had its dependencies updated with this included so these warnings will no longer be logged.
 
Back
Top Bottom