Skip to content

Releases: brick/varexporter

0.3.0

24 Dec 15:22
Compare
Choose a tag to compare

Minimum PHP version is now 7.2. No breaking changes.

0.2.1

16 Apr 23:09
Compare
Choose a tag to compare

New option: VarExporter::INLINE_NUMERIC_SCALAR_ARRAY (#3)

Formats numeric arrays containing only scalar values on a single line.

0.2.0

09 Apr 09:51
Compare
Choose a tag to compare

New feature

  • Experimental support for closures 🎉

💥 Minor BC break

  • export() does not throw an exception anymore when encountering a Closure.
    To get the old behaviour back, use the NO_CLOSURES option.

0.1.2

08 Apr 17:17
Compare
Choose a tag to compare

🐛 Bug fixes

  • Static properties in custom classes were wrongly included—unset()—in the output

Improvements

  • Circular references are now detected, and throw an ExportException instead of erroring.

0.1.1

08 Apr 09:44
Compare
Choose a tag to compare

🐛 Bug fixes

  • Single-letter properties were wrongly exported using ->{'x'} notation.

Improvements

  • Exception messages now contain the path (array keys / object properties) to the failure:

    [foo][bar][0] Type "resource" is not supported.

0.1.0

07 Apr 12:34
Compare
Choose a tag to compare

First release.