Lines Matching refs:to
1 Upgrading from PHP-Parser 1.x to 2.0
6 PHP-Parser now requires PHP 5.4 or newer to run. It is however still possible to *parse* PHP 5.2 and
28 The first argument to `ParserFactory` determines how different PHP versions are handled. The
31 …* `ParserFactory::PREFER_PHP7`: Try to parse code as PHP 7. If this fails, try to parse it as PHP …
32 …* `ParserFactory::PREFER_PHP5`: Try to parse code as PHP 5. If this fails, try to parse it as PHP …
40 To use a custom lexer, pass it as the second argument to the `create()` method:
52 described above to create your parser instance, these changes should have no further impact on you.
57 classes, as well as the classes that had to be renamed for PHP 7 support.
66 * The `NodeTraverser` no longer clones nodes by default. If you want to restore the old behavior,
67 pass `true` to the constructor.
68 * The legacy node format has been removed. If you use custom nodes, they are now expected to