Skip to content

Commit

Permalink
Merge branch 'release/4.1.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelcom committed Sep 11, 2023
2 parents 430361c + 4dcf780 commit d418c3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 4.1.10 - 2023-09-11
- issue #298, pr #303 - Undefined constant "WsdlToPhp\PackageGenerator\Generator\SOAP_1_1"

## 4.1.9 - 2023-08-25
- issue #299, pr #301 - Deprecated Warnings for Dynamic Properties
- issue #300, pr #302 - Incorrect default value for integer attribute
Expand Down
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 d418c3c

Please sign in to comment.