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
When using the wizard with this WSDL file, I get this exception:
PHP Fatal error: Uncaught Error: Call to a member function setNamespaceName() on bool in C:\Users\d.dubernet\workspace\soap-client\src\Phpro\SoapClient\CodeGenerator\TypeGenerator.php:43
Stack trace:
#0 C:\Users\d.dubernet\workspace\soap-client\src\Phpro\SoapClient\Console\Command\GenerateTypesCommand.php(199): Phpro\SoapClient\CodeGenerator\TypeGenerator->generate(Object(Zend\Code\Generator\FileGenerator), Object(Phpro\SoapClient\CodeGenerator\Model\Type))
#1 C:\Users\d.dubernet\workspace\soap-client\src\Phpro\SoapClient\Console\Command\GenerateTypesCommand.php(130): Phpro\SoapClient\Console\Command\GenerateTypesCommand->generateType(Object(Zend\Code\Generator\FileGenerator), Object(Phpro\SoapClient\CodeGenerator\TypeGenerator), Object(Phpro\SoapClient\CodeGenerator\Model\Type), Object(SplFileInfo))
#2 C:\Users\d.dubernet\workspace\soap-client\src\Phpro\SoapClient\Console\Command\GenerateTypesCommand.php(88): Phpro\SoapClient\Console\Command\GenerateTypesCommand->handleType(Object(Phpro\SoapClient\CodeGenerator\TypeGenerator in C:\Users\d.dubernet\workspace\soap-client\src\Phpro\SoapClient\CodeGenerator\TypeGenerator.php on line 43
In ClientGenerator and TypeGenerator, if I replace this line:
$class = $file->getClass() ?? new ClassGenerator();
with this line:
$class = new ClassGenerator();
The generation seems to work fine. Did I miss something?
The text was updated successfully, but these errors were encountered:
Bug Report
OS: Windows 10
PHP version: 7.3.9
Zend code version: 3.4.0
soap-client version: 1.0.4
Summary
When using the wizard with this WSDL file, I get this exception:
In ClientGenerator and TypeGenerator, if I replace this line:
with this line:
The generation seems to work fine. Did I miss something?
The text was updated successfully, but these errors were encountered: