File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 2828use PhpParser \NodeTraverser ;
2929use PhpParser \NodeVisitor ;
3030use PhpParser \Parser ;
31+ use PhpParser \PhpVersion ;
3132use Symfony \Bundle \MakerBundle \ConsoleStyle ;
3233use Symfony \Bundle \MakerBundle \Doctrine \BaseCollectionRelation ;
3334use Symfony \Bundle \MakerBundle \Doctrine \BaseRelation ;
@@ -65,13 +66,9 @@ public function __construct(
6566 private bool $ overwrite = false ,
6667 private bool $ useAttributesForDoctrineMapping = true ,
6768 ) {
68- $ this ->lexer = new Lexer \Emulative ([
69- 'usedAttributes ' => [
70- 'comments ' ,
71- 'startLine ' , 'endLine ' ,
72- 'startTokenPos ' , 'endTokenPos ' ,
73- ],
74- ]);
69+ $ this ->lexer = new Lexer \Emulative (
70+ PhpVersion::fromString ('8.1 ' ),
71+ );
7572 $ this ->parser = new Parser \Php7 ($ this ->lexer );
7673
7774 $ this ->printer = new PrettyPrinter ();
You can’t perform that action at this time.
0 commit comments