mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 09:09:41 +01:00
3b7d8e8b5d
Adding only a single recovery rule for now. The API is now: * throwOnError parser option must be disabled. * List of Errors is available through $parser->getErrors(). This method is available either way. * If no recovery is possible $parser->parse() will return null. (Obviously only if throwOnError is disabled).
9 lines
97 B
Plaintext
9 lines
97 B
Plaintext
New without a class
|
|
-----
|
|
<?php
|
|
new;
|
|
-----
|
|
Syntax error, unexpected ';' from 2:4 to 2:4
|
|
array(
|
|
)
|