8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19fd3c6 commit fd00753Copy full SHA for fd00753
src/Util/ClassSourceManipulator.php
@@ -28,6 +28,7 @@
28
use PhpParser\NodeTraverser;
29
use PhpParser\NodeVisitor;
30
use PhpParser\Parser;
31
+use PhpParser\PhpVersion;
32
use Symfony\Bundle\MakerBundle\ConsoleStyle;
33
use Symfony\Bundle\MakerBundle\Doctrine\BaseCollectionRelation;
34
use Symfony\Bundle\MakerBundle\Doctrine\BaseRelation;
@@ -65,13 +66,9 @@ public function __construct(
65
66
private bool $overwrite = false,
67
private bool $useAttributesForDoctrineMapping = true,
68
) {
- $this->lexer = new Lexer\Emulative([
69
- 'usedAttributes' => [
70
- 'comments',
71
- 'startLine', 'endLine',
72
- 'startTokenPos', 'endTokenPos',
73
- ],
74
- ]);
+ $this->lexer = new Lexer\Emulative(
+ PhpVersion::fromString('8.1'),
+ );
75
$this->parser = new Parser\Php7($this->lexer);
76
77
$this->printer = new PrettyPrinter();
0 commit comments