Releases: WsdlToPhp/PackageGenerator
Releases · WsdlToPhp/PackageGenerator
2.0.1
1.5.1
2.0.0
1.5.0
Issues fixed:
- issue #50 - Support for Cyrillic alphabet
- From now, any unicode character should be handled and generated as it is as a PHP variable/parameter/method/class
- Read more at regular expression for unicode
- issue #48 - minOccurs=0 not works
- From now, any not required property that can be removed from request (minOccurs=0 and nillable=true) is unset on object instantiation
- issue #49 - Use schema attribute's attributes to apply validation rule on generated properties
- From now, validation rules are automatically added to every setter so you're informed of an invalid value before sending the request which throws an \InvalidArgumentException
- If you do not want the validation rules to be added to the setters, set the option
validation
tofalse
before generating the package
- issue #52 - No autocomplete because of return type on a new line after @return in annotation
- Fixed thanks to PhpGenerator issue 5
- issue #53 - Incorrect variable type
- This issue only affects struct properties that match "virtual" structs which are array
- BC: the array type attribute detection is now better (hopefully perfect) and can change attributes from simple type hiny to array type hint. This means that you now have to pass an array as parameter otherwise it will break
- issue #54 - Naming. Class _Add and method _add_1/2/3... names. Need to minify reserved_keywords.yml
- BC: generated classes/methods may change after a new generation
- Classes are now not renamed if they don't use PHP reserved keywords (before, methods were used too to rename the class)
- Struct methods are now renamed only if they use Struct methods (one of AbstractStructBase methods)
- StructArray methods are now renamed only if they use Struct and StructArray methods (one of AbstractStructArrayBase methods)
- Service methods are now renamed only if they use Service methods (one of AbstractSoapClientBase methods)
- BC: generated classes/methods may change after a new generation
1.4.3.1
1.4.3
1.4.2
Fix issues:
- issue #47 - XSD types are not well inherited by elements
- Improve, once again, XSD to PHP type by ensuring usage of strict PHP types
- Improve struct attribute type determination based on recursive inheritance
- issue #41 - Support for arrays
- Ensure non conflicting variable name in setter when paramter is an array and named
item
(as previous item iteration variable was named item)
- Ensure non conflicting variable name in setter when paramter is an array and named
1.4.1
1.4.0
Updates:
- issue #44 - Constant naming separate with underscore
- BC:
- enumeration constants are renamed such myConstantValue is now MY_CONSTANT_VALUE instead of previously being MYCONSTANTVALUE. Be sure to update your code that use enumeration's constants
- issue #47 - XSD types are not well inherited by elements
- Improvements on recursive schema loading
- Improvements on meta gathering in generated classes
- Handle anonymous types