mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
ced914a3b7
Now $stmts arrays really only contains Stmt nodes.
585 B
585 B
Upgrading from PHP-Parser 3.x to 4.0
PHP version requirements
PHP-Parser now requires PHP 5.6 or newer to run. It is however still possible to parse PHP 5.2-5.5 source code, while running on a newer version.
Changes to the node structure
- Expression statements (
expr;
) are now represented using aStmt\Expression
node. Previously these statements were directly represented as their constituent expression.
Removed functionality
- Removed
type
subnode onClass
,ClassMethod
andProperty
nodes. Useflags
instead.