mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 23:28:15 +01:00
Drop attribute poisoning in parser
This commit is contained in:
parent
7b441d2142
commit
13304d5991
@ -161,8 +161,8 @@ abstract class ParserAbstract implements Parser
|
||||
// The attributes for a node are taken from the first and last token of the node.
|
||||
// From the first token only the startAttributes are taken and from the last only
|
||||
// the endAttributes. Both are merged using the array union operator (+).
|
||||
$startAttributes = '*POISON';
|
||||
$endAttributes = '*POISON';
|
||||
$startAttributes = [];
|
||||
$endAttributes = [];
|
||||
$this->endAttributes = $endAttributes;
|
||||
|
||||
// Keep stack of start and end attributes
|
||||
|
Loading…
x
Reference in New Issue
Block a user