diff --git a/packages/Testing/TestingParser/TestingParser.php b/packages/Testing/TestingParser/TestingParser.php index fec4856fb0f..3822af7a604 100644 --- a/packages/Testing/TestingParser/TestingParser.php +++ b/packages/Testing/TestingParser/TestingParser.php @@ -6,8 +6,6 @@ use Nette\Utils\FileSystem; use PhpParser\Node; -use Rector\Core\Configuration\Option; -use Rector\Core\Configuration\Parameter\SimpleParameterProvider; use Rector\Core\PhpParser\Parser\RectorParser; use Rector\Core\Provider\CurrentFileProvider; use Rector\Core\ValueObject\Application\File; @@ -52,8 +50,6 @@ public function parseFileToDecoratedNodes(string $filePath): array // needed for PHPStan reflection, as it caches the last processed file $this->dynamicSourceLocatorProvider->setFilePath($filePath); - SimpleParameterProvider::setParameter(Option::SOURCE, [$filePath]); - $fileContent = FileSystem::read($filePath); $stmts = $this->rectorParser->parseString($fileContent); $file = new File($filePath, $fileContent);