While making a library, that uses PHP's SoapClient, compatible with PHP 8.1 I came across this issue:
All properties of SoapClient are now private when they where public before.
So things like getting the last soap fault ($soapClient->__soap_fault
) is no longer possible. But most methods of SoapClient return null if there was a problem and the only way of knowing what went wrong is to get __soap_fault
which is no longer accessible.
How should I be working with method __doRequest
without having access to the properties of SoapClient?