File tree Expand file tree Collapse file tree
packages/Testing/TestingParser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77use Nette \Utils \FileSystem ;
88use PhpParser \Node ;
9- use Rector \Core \Configuration \Option ;
10- use Rector \Core \Configuration \Parameter \SimpleParameterProvider ;
119use Rector \Core \PhpParser \Parser \RectorParser ;
1210use Rector \Core \Provider \CurrentFileProvider ;
1311use 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 );
You can’t perform that action at this time.
0 commit comments