Skip to content

Commit

Permalink
issue #298 - use root namespace for predefined constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelcom committed Sep 4, 2023
1 parent 521af5b commit 207018a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Generator/GeneratorSoapClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public function __construct(Generator $generator)
public function initSoapClient(): self
{
try {
$soapClient = new SoapClient($this->getSoapClientOptions(SOAP_1_1));
$soapClient = new SoapClient($this->getSoapClientOptions(\SOAP_1_1));
} catch (\SoapFault $fault) {
try {
$soapClient = new SoapClient($this->getSoapClientOptions(SOAP_1_2));
$soapClient = new SoapClient($this->getSoapClientOptions(\SOAP_1_2));
} catch (\SoapFault $fault) {
throw new \InvalidArgumentException(sprintf('Unable to load WSDL at "%s"!', $this->getGenerator()->getOptionOrigin()), __LINE__, $fault);
}
Expand Down

0 comments on commit 207018a

Please sign in to comment.