PHP Parser v3.0.3 Release Notes
Release Date: 2017-02-03 // over 7 years ago-
🛠 Fixed
- 📜 In
"$foo[0]"
the0
is now parsed as anLNumber
rather thanString
. (#325) - 🖨 Ensure integers and floats are always pretty printed preserving semantics, even if the particular value can only be manually constructed.
- 🖨 Throw a
LogicException
when trying to pretty-print anError
node. Previously this resulted in an undefined method exception or fatal error.
➕ Added
- 👍 [PHP 7.1] Added support for negative interpolated offsets:
"$foo[-1]"
- ➕ Added
preserveOriginalNames
option toNameResolver
. If this option is enabled, anoriginalName
attribute, containing the unresolved name, will be added to each resolved name. - ➕ Added
php-parse --with-positions
option, which dumps nodes with position information.
🗄 Deprecated
- 🗄 The XML serializer has been deprecated. In particular, the classes
Serializer\XML
,Unserializer\XML
, as well as the interfacesSerializer
andUnserializer
are deprecated.
- 📜 In