You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's caused by PHP > 8.0. I did not take time to handle this yet. Until PHP <= 8.0, the _stream_context was accessible and allowed to set the stream context used by the SoapClient when sending the request.
If you have any clue or idea to handle this, feel free to share your thoughts.
Hello Everyone
i just came across an error when trying to set custom http headers.
$get->setHttpHeader("x-api-key", "123456");
Which throws an error:
Cannot access private property SoapClient::$_stream_context
Caused by the line 343 in AbstractSoapClientBase:
$state = ($this->getSoapClient()->_stream_context = stream_context_create($options)) ? true : false;
I'm using PHP 8.1
The text was updated successfully, but these errors were encountered: