Closed velorb closed 5 months ago
Describe the bug Getter with nullable property has invalid return type. It happens when minOccurs="1" maxOccurs="1"
To Reproduce
<s:complexType name="Test"> <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="test" nillable="true" type="s:dateTime" /> </s:sequence> </s:complexType>
* Get test value * @return string */ public function getTest(): string { return $this->test; }
Expected behavior
* Get test value * @return string|null */ public function getTest(): ?string { return $this->test; }
Please try generator branch https://github.com/WsdlToPhp/PackageGenerator/tree/feature/issue-312 to validate the bug fix
it looks good now
Describe the bug Getter with nullable property has invalid return type. It happens when minOccurs="1" maxOccurs="1"
To Reproduce
Expected behavior