Problem/Motivation
Guzzle 6 passes NULL as the $numeric_prefix
parameter to http_build_query()
. PHP 8.1 has tightened up parameter types and only allows strings here.
The Guzzle team will not fix this as Guzzle 6 is considered end of life, and the issue does not exist in Guzzle 7: https://github.com/guzzle/guzzle/pull/2918
Steps to reproduce
Proposed resolution
Guzzle does not use use function
or prefix any function calls with \
so we can inject a shim into the GuzzleHttp
namespace that intercepts the call and passes on the correct argument.