mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-06-21 15:23:33 +02:00
Move "kind" attribute handling out of lexer
Doesn't belong there and will cause issue with multiple assignments.
This commit is contained in:
@ -27,7 +27,7 @@ if (empty($files)) {
|
||||
}
|
||||
|
||||
$lexer = new PhpParser\Lexer\Emulative(array('usedAttributes' => array(
|
||||
'startLine', 'endLine', 'startFilePos', 'endFilePos', 'comments', 'kind'
|
||||
'startLine', 'endLine', 'startFilePos', 'endFilePos', 'comments'
|
||||
)));
|
||||
$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7, $lexer);
|
||||
$dumper = new PhpParser\NodeDumper(['dumpComments' => true]);
|
||||
|
Reference in New Issue
Block a user