Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Sep 13, 2020
2 parents b86b6a8 + fc6d400 commit 2f844c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function register()
$this->nonOperandTokens += [
T_RETURN => T_RETURN,
T_ECHO => T_ECHO,
T_EXIT => T_EXIT,
T_PRINT => T_PRINT,
T_YIELD => T_YIELD,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,5 +463,7 @@ $a = [$a, - $b];
$a = $a[- $b];
$a = $a ? - $b : - $b;

exit -1;

/* Intentional parse error. This has to be the last test in the file. */
$a = 10 +
Original file line number Diff line number Diff line change
Expand Up @@ -457,5 +457,7 @@ $a = [$a, - $b];
$a = $a[- $b];
$a = $a ? - $b : - $b;

exit -1;

/* Intentional parse error. This has to be the last test in the file. */
$a = 10 +

0 comments on commit 2f844c3

Please sign in to comment.