8000 reversed the compat · symfony/maker-bundle@c30c087 · GitHub
[go: up one dir, main page]

Skip to content

Commit c30c087

Browse files
committed
reversed the compat
1 parent b035014 commit c30c087

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Util/ClassSourceManipulator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,9 +952,7 @@ private function setSourceCode(string $sourceCode): void
952952
$this->sourceCode = $sourceCode;
953953
$this->oldStmts = $this->parser->parse($sourceCode);
954954

955-
if (\is_callable($this->lexer->getTokens(...))) {
956-
$this->oldTokens = $this->lexer->getTokens();
957-
}
955+
$this->oldTokens = $this->parser->getTokens();
958956

959957
$traverser = new NodeTraverser();
960958
$traverser->addVisitor(new NodeVisitor\CloningVisitor());

0 commit comments

Comments
 (0)
0