Skip to content

Releases: liip/metadata-parser

1.2.0

07 Nov 14:27
@dbu dbu
1.2.0
Compare
Choose a tag to compare
  • DateTimeOptions now features a list of deserialization formats instead of a single string one. Passing a string instead of an array to its __constructor is deprecated, and will be forbidden in the next version
    Similarly, getDeserializeFormat(): ?string is deprecated in favor of getDeserializeFormats(): ?array
  • Added PropertyTypeIterable, which generalizes PropertyTypeArray to allow merging Collection informations like one would with arrays, including between interfaces and concrete classes
  • Deprecated PropertyTypeArray, please prefer using PropertyTypeIterable instead
  • PropertyTypeArray::isCollection() and PropertyTypeArray::getCollectionClass() are deprecated, including in its child classes, in favor of isTraversable() and getTraversableClass()
  • Added a model parser VisibilityAwarePropertyAccessGuesser that tries to guess getter and setter methods for non-public properties.

1.1.0

01 Jun 07:56
@dbu dbu
1.1.0
Compare
Choose a tag to compare
  • Drop support for PHP 7.2 and PHP 7.3
  • Support doctrine annotations 2.x

1.0.0

13 Feb 09:43
@dbu dbu
1.0.0
8ff4fee
Compare
Choose a tag to compare

First stable release.

No changes since 0.6.1

0.6.1

10 Jan 07:41
@dbu dbu
0.6.1
Compare
Choose a tag to compare
  • Do not ignore methods that have no phpdoc but do have a PHP 8.1 attribute to make them virtual properties.

0.6.0

13 Dec 10:33
@dbu dbu
0.6.0
Compare
Choose a tag to compare
  • When running with PHP 8, process attributes in addition to the phpdoc annotations.
  • Support doctrine collections
  • Support identical property naming strategy
  • Add support for the MaxDepth annotation from JMS

0.5.0

15 Feb 09:08
@dbu dbu
0.5.0
e1c57a3
Compare
Choose a tag to compare
  • Support JMS Serializer ReadOnlyProperty in addition to ReadOnly to be compatible with serializer 3.14 and newer.
  • Support PHP 8.1 (which makes ReadOnly a reserved keyword)

0.4.1

15 Dec 15:09
@dbu dbu
0.4.1
Compare
Choose a tag to compare
  • Allow installation with psr/log 2 and 3, to allow installation with Symfony 6

0.4.0

23 Nov 08:34
@dbu dbu
0.4.0
7da7f2b
Compare
Choose a tag to compare
  • Handle property type declarations in reflection parser.
  • [Bugfix] Upgrade array type with @var Type[] annotation
  • [Bugfix] When extending class redefines a property, use phpdoc from extending class rather than base class
  • [Bugfix] Use correct context for relative class names in inherited properties/methods

0.3.0

29 Mar 08:18
@dbu dbu
0.3.0
878fd71
Compare
Choose a tag to compare
  • Support PHP 8, drop support for PHP 7.1
  • Support JMS 3 and drop support for JMS 1
  • [BC Break] Only if you wrote your own PropertyMetadata class and overwrote getCustomInformation: That method now has the return type :mixed specified.

0.2.1

05 Feb 12:45
9e50df8
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release
  • look in parent classes and traits for imports