Skip to content

Commit

Permalink
fix: PHP_Parser T_Match issue with php 7 (#4560)
Browse files Browse the repository at this point in the history
  • Loading branch information
dameert committed Nov 5, 2020
1 parent 3940e42 commit eff32d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PhpParser/Parser/PhpParserLexerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function create(): Lexer
{
return new Emulative([
'usedAttributes' => ['comments', 'startLine', 'endLine', 'startTokenPos', 'endTokenPos'],
'phpVersion' => PHP_VERSION,
]);
}
}

0 comments on commit eff32d7

Please sign in to comment.