use Psr\Http\Client\ClientInterface instead of Http\Client\HttpClient
use Http\Discovery\Psr18ClientDiscovery instead of Http\Discovery\HttpClientDiscovery
remove the only utf8_encode used (because it's deprecated in PHP 8.2) and I don't think these lines are still used (the associated test was already removed)
Psr\Http\Client\ClientInterface
instead ofHttp\Client\HttpClient
Http\Discovery\Psr18ClientDiscovery
instead ofHttp\Discovery\HttpClientDiscovery
utf8_encode
used (because it's deprecated in PHP 8.2) and I don't think these lines are still used (the associated test was already removed)