1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00

Adjust the end attributes on the stack as well

This commit is contained in:
Nikita Popov 2017-02-26 23:44:28 +01:00
parent 48ec654d0c
commit d5873b177b
2 changed files with 2 additions and 1 deletions

View File

@ -318,6 +318,7 @@ abstract class ParserAbstract implements Parser
// We treat the error symbol as being empty, so we reset the end attributes
// to the end attributes of the last non-error symbol
$this->endAttributeStack[$this->stackPos] = $this->endAttributeStack[$this->stackPos - 1];
$this->endAttributes = $this->endAttributeStack[$this->stackPos - 1];
break;

View File

@ -857,7 +857,7 @@ array(
0: Bar
)
)
name: Expr_Error[3:10 - 3:10](
name: Expr_Error[3:10 - 3:9](
)
)
byRef: false