Skip to content

2.3.1

Latest

Choose a tag to compare

@JanTvrdik JanTvrdik released this 14 Oct 12:18
306f553

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 threw LogicException: Invalid value, and newer versions generated a fully qualified name. (#139)

Full Changelog: 2.3.0...2.3.1