mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2025-01-22 13:21:12 +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).
14 lines
182 B
Plaintext
14 lines
182 B
Plaintext
Error positions
|
|
-----
|
|
<?php foo
|
|
-----
|
|
Syntax error, unexpected EOF from 1:10 to 1:10
|
|
array(
|
|
)
|
|
-----
|
|
<?php foo /* bar */
|
|
-----
|
|
Syntax error, unexpected EOF from 1:20 to 1:20
|
|
array(
|
|
)
|