Skip to content

Releases: brick/varexporter

0.5.0

10 May 17:16
Compare
Choose a tag to compare

Compatibility

  • Added compatibility with nikic/php-parser 5.x
  • Removed compatibility with nikic/php-parser 4.x

💥 BC breaks

  • deprecated constant VarExporter::INLINE_NUMERIC_SCALAR_ARRAY has been removed, please use INLINE_SCALAR_LIST instead

0.4.0

01 Sep 21:12
Compare
Choose a tag to compare

Minimum PHP version is now 7.4. No breaking changes.

0.3.8

21 Jan 23:06
b5853ed
Compare
Choose a tag to compare

New feature

  • Support for PHP 8.1 readonly properties (#27, #28)

Thanks @AnnaDamm!

0.3.7

29 Jun 23:40
Compare
Choose a tag to compare

New feature

  • New option: VarExporter::INLINE_ARRAY

🗑️ Deprecated

  • The VarExporter::INLINE_NUMERIC_SCALAR_ARRAY is deprecated, please use INLINE_SCALAR_LIST instead

0.3.6

15 Jun 23:55
Compare
Choose a tag to compare

New feature

Support for PHP 8.1 enums (#23).

Thanks @Jacobs63!

0.3.5

10 Feb 13:54
Compare
Choose a tag to compare

New feature

Support for controlling the base indentation level (#17).

Thanks @ADmad!

0.3.4

07 Feb 22:56
Compare
Choose a tag to compare

New feature

Support for trailing comma in non-inline arrays, with the TRAILING_COMMA_IN_ARRAY flag (#16).

Thanks @ADmad!

0.3.3

24 Dec 15:10
Compare
Choose a tag to compare

🐛 Bug fix

  • Exporting an object with numeric dynamic properties would lead to a TypeError

0.3.2

13 Mar 17:00
411110b
Compare
Choose a tag to compare

New feature

Support for exporting internal classes implementing __set_state():

  • DateTime
  • DateTimeImmutable
  • DateTimeZone
  • DateInterval
  • DatePeriod

Thanks @GameplayJDK!

0.3.1

23 Jan 21:36
Compare
Choose a tag to compare

New features

  • Support for closures with use() using the CLOSURE_SNAPSHOT_USE option (#7)
  • Support for arrow functions in PHP 7.4 (#8)

Thanks to @jasny for his awesome work!