Remove some unused symbols

This commit is contained in:
Nikita Popov 2023-05-20 21:40:55 +02:00
parent 93731c5cfa
commit a5d4c1005c
5 changed files with 1 additions and 5 deletions

View File

@ -45,7 +45,7 @@ abstract class KeywordEmulator extends TokenEmulator {
public function reverseEmulate(string $code, array $tokens): array {
$keywordToken = $this->getKeywordToken();
foreach ($tokens as $i => $token) {
foreach ($tokens as $token) {
if ($token->id === $keywordToken) {
$token->id = \T_STRING;
}

View File

@ -2,7 +2,6 @@
namespace PhpParser\Node\Stmt;
use PhpParser\Error;
use PhpParser\Modifiers;
use PhpParser\Node;

View File

@ -3,7 +3,6 @@
namespace PhpParser\Node;
use PhpParser\Node;
use PhpParser\Node\Identifier;
use PhpParser\Node\Stmt\Use_;
class UseItem extends Node\Stmt {

View File

@ -3,7 +3,6 @@
namespace PhpParser;
use PhpParser\Node\Expr\Include_;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\GroupUse;
use PhpParser\Node\Stmt\Use_;
use PhpParser\Node\UseItem;

View File

@ -3,7 +3,6 @@
namespace PhpParser\NodeVisitor;
use PhpParser\Node;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitor;
use PhpParser\NodeVisitorAbstract;