Repository navigation
Bugfixes
- Generate valid PHP identifiers for source keys and discriminator values which are not PHP identifiers, e.g.
#[SourceKey('bom-ref')]. Before, the generated mapper had a syntax error (ParseError). Such keys are now also quoted in the generated array shape PHPDoc types. (#142, fixes #140) - Import enum classes for enum cases in default values, e.g.
#[Optional(default: [Suit::Hearts])]. Before, nikic/php-parser 5.0 and 5.1 threwLogicException: Invalid value, and newer versions generated a fully qualified name. (#139)
Full Changelog: 2.3.0...2.3.1