After upgrading the PHP SDK from 21.9 to 22.6 (which also updated guzzlehttp to 7.4.5), we are now getting an error on requests: "Call to undefined function GuzzleHttp\Psr7\build_query()".
From my research, it seems as though guzzle has deprecated and removed the build_query() function in preference to Query::build().
PHP 7.4.22
IIS10