Skip to content

Commit 66ef722

Browse files
authored
Merge pull request #303 from WsdlToPhp/feature/issue-298
issue #298 - use root namespace for predefined constants
2 parents 521af5b + 207018a commit 66ef722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator/GeneratorSoapClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public function __construct(Generator $generator)
1919
public function initSoapClient(): self
2020
{
2121
try {
22-
$soapClient = new SoapClient($this->getSoapClientOptions(SOAP_1_1));
22+
$soapClient = new SoapClient($this->getSoapClientOptions(\SOAP_1_1));
2323
} catch (\SoapFault $fault) {
2424
try {
25-
$soapClient = new SoapClient($this->getSoapClientOptions(SOAP_1_2));
25+
$soapClient = new SoapClient($this->getSoapClientOptions(\SOAP_1_2));
2626
} catch (\SoapFault $fault) {
2727
throw new \InvalidArgumentException(sprintf('Unable to load WSDL at "%s"!', $this->getGenerator()->getOptionOrigin()), __LINE__, $fault);
2828
}

0 commit comments

Comments
 (0)