Home
last modified time | relevance | path

Searched refs:error (Results 26 – 35 of 35) sorted by relevance

12

/PHP-Parser/test/code/parser/errorHandling/
H A DlexerErrors.test143 Syntax error, unexpected EOF from 6:2 to 6:2
/PHP-Parser/
H A DREADME.md57 } catch (Error $error) {
58 echo "Parse error: {$error->getMessage()}\n";
H A DCHANGELOG.md183 * Fix error reporting in emulative lexer without explicitly specified error handler.
397 error handlers if invoked during shutdown.
677 * Improved error recovery inside arrays.
687 * Improved error recovery inside classes.
688 * Support error recovery for `foreach` without `as`.
690 * Support error recovery for functions without body (`function ($foo)`).
908 error occurred. This made some nodes larger than expected. (#359)
934 an undefined method exception or fatal error.
971 * Added error recovery support for `$`, `new`, `Foo::`.
976 This release primarily improves our support for error recovery.
[all …]
H A Dphpstan-baseline.neon64 message: "#^Unary operation \"~\" on mixed results in an error\\.$#"
184 message: "#^Unary operation \"\\+\" on string results in an error\\.$#"
H A DUPGRADE-5.0.md14 * For versions before PHP 7.0, `$foo =& new Bar()` assignments are allowed without error.
15 * For versions before PHP 7.0, invalid octal literals `089` are allowed without error.
23 … `global $$var[0]` are not supported in PHP 7 and will cause a parse error. In error recovery mode…
44 …declaration, while using `public readonly int $prop` will lead to a parse error. However, `final p…
/PHP-Parser/grammar/
H A Dphp.y202 | error { /* nothing */ }
399 | T_FOREACH '(' expr error ')' foreach_statement
406 | error { $$ = null; /* means: no statement */ }
464 | error { $$ = []; }
694 optional_arg_ref optional_ellipsis error
772 | ':' error { $$ = null; }
857 | error { $$ = null; /* will be skipped */ }
1178 …| error { $$ = Expr\Error[]; $this->errorState = 2…
1218 | class_name_or_var T_PAAMAYIM_NEKUDOTAYIM error
1349 …| error { $$ = Expr\Error[]; $this->errorState = 2…
[all …]
/PHP-Parser/doc/
H A D0_Introduction.markdown42 error. In error recovery mode, it is possible to continue parsing after such declarations.
51 older one), and accept code that is syntactically correct, but would result in a compiler error.
H A D2_Usage_of_basic_components.markdown53 order to create a syntax tree. If a syntax error is encountered, a `PhpParser\Error` exception will
/PHP-Parser/test/code/parser/stmt/class/
H A Dname.test43 Syntax error, unexpected T_STATIC, expecting T_STRING from 1:13 to 1:18
216 Syntax error, unexpected T_STATIC, expecting T_STRING from 1:17 to 1:22
/PHP-Parser/doc/component/
H A DPerformance.markdown26 the AST uses recursion and will generate an error if the value of this option is too low.

Completed in 22 milliseconds

12