Skip to content

Releases: brick/varexporter

0.7.0

06 Jan 22:57

Choose a tag to compare

New features

  • Added VarExporter::INLINE_LITERAL_LIST, similar to INLINE_SCALAR_LIST but includes enum values

💥 BC breaks

  • Minimum PHP version is now 8.2

0.6.0

20 Feb 17:52

Choose a tag to compare

💥 BC breaks

  • Minimum PHP version is now 8.1 (#39)

New features

  • Support for exporting match constructs in closures (#38)

Thanks to @reinfi!

0.5.0

10 May 17:16

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

Choose a tag to compare

Minimum PHP version is now 7.4. No breaking changes.

0.3.8

21 Jan 23:06
b5853ed

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

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

Choose a tag to compare

New feature

Support for PHP 8.1 enums (#23).

Thanks @Jacobs63!

0.3.5

10 Feb 13:54

Choose a tag to compare

New feature

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

Thanks @ADmad!

0.3.4

07 Feb 22:56

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

Choose a tag to compare

🐛 Bug fix

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