Skip to content

Commit affdec9

Browse files
authored
[Testing] Remove unnecessary set Parameter Source on TestingParser (#5371)
1 parent 63201f7 commit affdec9

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

packages/Testing/TestingParser/TestingParser.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use Nette\Utils\FileSystem;
88
use PhpParser\Node;
9-
use Rector\Core\Configuration\Option;
10-
use Rector\Core\Configuration\Parameter\SimpleParameterProvider;
119
use Rector\Core\PhpParser\Parser\RectorParser;
1210
use Rector\Core\Provider\CurrentFileProvider;
1311
use Rector\Core\ValueObject\Application\File;
@@ -52,8 +50,6 @@ public function parseFileToDecoratedNodes(string $filePath): array
5250
// needed for PHPStan reflection, as it caches the last processed file
5351
$this->dynamicSourceLocatorProvider->setFilePath($filePath);
5452

55-
SimpleParameterProvider::setParameter(Option::SOURCE, [$filePath]);
56-
5753
$fileContent = FileSystem::read($filePath);
5854
$stmts = $this->rectorParser->parseString($fileContent);
5955
$file = new File($filePath, $fileContent);

0 commit comments

Comments
 (0)