All Versions
64
Latest Version
Avg Release Cycle
43 days
Latest Release
594 days ago
Changelog History
Page 3
Changelog History
Page 3
-
v4.7.0 Changes
July 25, 2020โ Added
- โ Add
ParentConnectingVisitor
andNodeConnectingVisitor
classes. - ๐ [PHP 8.0] Added support for match expressions. These are represented using a new
Expr\Match_
containingMatchArm
s. - ๐ [PHP 8.0] Added support for trailing comma in closure use lists.
๐ Fixed
- ๐ Fixed missing error for unterminated comment with trailing newline (#688).
- Compatibility with PHP 8.0 has been restored: Namespaced names are now always represented by
T_NAME_*
tokens, using emulationg on older PHP versions. Full support for reserved keywords in namespaced names is not yet present.
- โ Add
-
v4.6.0 Changes
July 02, 2020โ Added
- ๐ [PHP 8.0] Added support for trailing commas in parameter lists.
- ๐ [PHP 8.0] Added support for constructor promotion. The parameter visibility is stored in
Node\Param::$flags
.
๐ Fixed
- Comment tokens now always follow the PHP 8 interpretation, and do not include trailing whitespace.
- As a result of the previous change, some whitespace issues when inserting a statement into a method containing only a comment, and using the formatting-preserving pretty printer, have been resolved.
-
v4.5.0 Changes
June 03, 2020โ Added
- ๐ [PHP 8.0] Added support for the mixed type. This means
mixed
types are now parsed as anIdentifier
rather than aName
. - ๐ป [PHP 8.0] Added support for catching without capturing the exception. This means that
Catch_::$var
may now be null.
- ๐ [PHP 8.0] Added support for the mixed type. This means
-
v4.4.0 Changes
April 10, 2020โ Added
- โ Added support for passing union types in builders.
- โ Added end line, token position and file position information for comments.
- โ Added
getProperty()
method toClassLike
nodes.
๐ Fixed
- ๐ Fixed generation of invalid code when using the formatting preserving pretty printer, and inserting code next to certain nop statements. The formatting is still ugly though.
getDocComment()
no longer requires that the very last comment before a node be a doc comment. There may not be non-doc comments between the doc comment and the declaration.- ๐ Allowed arbitrary expressions in
isset()
andlist()
, rather than just variables. In particular, this allowsisset(($x))
, which is legal PHP code. - [PHP 8.0] Add support for variable syntax tweaks RFC.
-
v4.3.0 Changes
November 08, 2019โ Added
- ๐ [PHP 8.0] Added support for union types using a new
UnionType
node.
- ๐ [PHP 8.0] Added support for union types using a new
-
v4.2.5 Changes
October 25, 2019๐ Changed
- ๐ Tests and documentation are no longer included in source archives. They can still be accessed by cloning the repository.
- ๐ php-yacc is now used to generate the parser. This has no impact on users of the library.
-
v4.2.4 Changes
September 01, 2019 -
v4.2.3 Changes
August 12, 2019 -
v4.2.2 Changes
May 25, 2019โ Added
- ๐ [PHP 7.4] Add support for arrow functions using a new
Expr\ArrowFunction
node. (#602) - ๐ [PHP 7.4] Add support for array spreads, using a new
unpack
subnode onArrayItem
. (#609) - โ Added support for inserting into empty list nodes in the formatting preserving pretty printer.
๐ Changed
- ๐จ
php-parse
will now print messages to stderr, so that stdout only contains the actual result of the operation (such as a JSON dump). (#605)
๐ Fixed
- ๐ Fixed attribute assignment for zero-length nop statements, and a related assertion failure in the formatting-preserving pretty printer. (#589)
- ๐ [PHP 7.4] Add support for arrow functions using a new
-
v4.2.1 Changes
February 16, 2019โ Added
- ๐ [PHP 7.4] Add support for
??=
operator through a newAssignOp\Coalesce
node. (#575)
- ๐ [PHP 7.4] Add support for