Skip to content

Releases: WsdlToPhp/PackageGenerator

2.0.1

08 May 22:42
Compare
Choose a tag to compare

Issue fixed:

  • issue #55 - xsd:long is "int" in validation rules - error with values that not fit

1.5.1

08 May 22:44
Compare
Choose a tag to compare

Issue fixed:

  • issue #55 - xsd:long is "int" in validation rules - error with values that not fit

2.0.0

29 Apr 19:04
Compare
Choose a tag to compare

This major release forces the usage of PHP >= 5.5.9 and the Symfony components >= 3.x

1.5.0

27 Apr 20:03
Compare
Choose a tag to compare

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 to false before generating the package
  • issue #52 - No autocomplete because of return type on a new line after @return in annotation
  • 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)

1.4.3.1

02 Mar 11:31
Compare
Choose a tag to compare

Fiexed issue:

  • issue #51 - Error while passing array parameter
    • The main issue was not an issue, the detected issue was an error on the SoapHeader type hint defined in the setSoapHeader* method's signature

1.4.3

21 Feb 10:28
Compare
Choose a tag to compare

Issue fixed:

  • issue #45 - Reserved PHP-Keywords in Class Names

1.4.2

16 Feb 05:49
Compare
Choose a tag to compare

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)

1.4.1

14 Feb 20:50
Compare
Choose a tag to compare

Minor update:

  • add time XSD type matching string PHP type

1.4.0

14 Feb 19:50
Compare
Choose a tag to compare

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

1.3.1

10 Feb 12:30
Compare
Choose a tag to compare

Improve/fix readme