nikic/PHP-Parser — Issue #5: Add support for parsing PHP 5.4
Author: nikic
Created: 2011-10-19 14:27:12+00:00
State: open

The parser should support parsing of PHP 5.4.

The following additional syntaxes were added:

* traits
* array dereferecing
* callable typehint
* short array syntax
* static method name expressions

The following features were removed:

* break and continue with non-positive-integer expressions
* call time pass by reference

For now the syntax additions should be added, but the removals not to keep 5.3 compatibility. (And as the removals happened outside of the parser one could implement a NodeVisitor checking that those features are not used.)