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:
parent
48ec654d0c
commit
d5873b177b
@ -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;
|
||||
|
||||
|
@ -857,7 +857,7 @@ array(
|
||||
0: Bar
|
||||
)
|
||||
)
|
||||
name: Expr_Error[3:10 - 3:10](
|
||||
name: Expr_Error[3:10 - 3:9](
|
||||
)
|
||||
)
|
||||
byRef: false
|
||||
|
Loading…
Reference in New Issue
Block a user