Releases: brick/varexporter
Releases · brick/varexporter
0.5.0
✨ 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
Minimum PHP version is now 7.4
. No breaking changes.
0.3.8
✨ New feature
- Support for PHP 8.1
readonly
properties (#27, #28)
Thanks @AnnaDamm!
0.3.7
✨ 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
✨ New feature
Support for PHP 8.1 enums (#23).
Thanks @Jacobs63!
0.3.5
✨ New feature
Support for controlling the base indentation level (#17).
Thanks @ADmad!
0.3.4
✨ New feature
Support for trailing comma in non-inline arrays, with the TRAILING_COMMA_IN_ARRAY
flag (#16).
Thanks @ADmad!
0.3.3
🐛 Bug fix
- Exporting an object with numeric dynamic properties would lead to a
TypeError
0.3.2
✨ New feature
Support for exporting internal classes implementing __set_state()
:
DateTime
DateTimeImmutable
DateTimeZone
DateInterval
DatePeriod
Thanks @GameplayJDK!
0.3.1
✨ 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!