8000 fixing version code: I had it backward · symfony/maker-bundle@fd00753 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd00753

Browse files
committed
fixing version code: I had it backward
1 parent 19fd3c6 commit fd00753

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/Util/ClassSourceManipulator.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use PhpParser\NodeTraverser;
2929
use PhpParser\NodeVisitor;
3030
use PhpParser\Parser;
31+
use PhpParser\PhpVersion;
3132
use Symfony\Bundle\MakerBundle\ConsoleStyle;
3233
use Symfony\Bundle\MakerBundle\Doctrine\BaseCollectionRelation;
3334
use 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();

0 commit comments

Comments
 (0)
0