On PHP 8.5, simply autoloading Soap\ParallelSoapClient triggers a fatal error because the overridden __doRequest() no longer matches SoapClient::__doRequest().
PHP 8.5 added a new trailing optional parameter ?string $uriParserClass = null to SoapClient::__doRequest().
The override in src/ParallelSoapClient.php still uses the pre-8.5 signature, so the method is now signature-incompatible with its parent and the class fails to load.
Suggested fix :
Add the new optional parameter to the override (body unchanged, it is ignored):
public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false, ?string $uriParserClass = null): ?string
On PHP 8.5, simply autoloading
Soap\ParallelSoapClienttriggers a fatal error because the overridden__doRequest()no longer matchesSoapClient::__doRequest().PHP 8.5 added a new trailing optional parameter
?string $uriParserClass = nulltoSoapClient::__doRequest().The override in
src/ParallelSoapClient.phpstill uses the pre-8.5 signature, so the method is now signature-incompatible with its parent and the class fails to load.Suggested fix :
Add the new optional parameter to the override (body unchanged, it is ignored):
public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false, ?string $uriParserClass = null): ?string