Skip to content

setHttpHeaders tries to access SoapClient::$_stream_context property which is private #42

@gigerIT

Description

@gigerIT

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions