Closed djdaca closed 3 years ago
\vendor\wsdltophp\packagegenerator\src\Model\StructAttribute.php
line 170 ++
public function isNillable(): bool
{
return 'true' === $this->getMetaValue('nillable');
}
\vendor\wsdltophp\packagegenerator\src\File\Struct.php
line 66:
$isNullable = $attribute->isNillable();
if (false === $isNullable) {
$isNullable = (false === $attribute->isRequired() && false === $attribute->isArray());
}
line 162: same as previous
Hi, Can you paste a generated class having nillable properties not generated as you expect? thx
Indeed, this will be improved.
Thanx !
Any chance you test the Docker image or the phar file from feature/issue-250?
Probably on the weekend - I'm migrating to a new computer
I found some time - it works, thank you very much !
Describe the bug if generate type of class properties - you not respect nillable (nullable) property in wdsl
Expected behavior when you found nillable property in wdsl add ? to type of property
Sorry for my english