mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-06 03:10:50 +00:00
Updated Rector to commit c99f335e2513718afc8623bfba3902ef887e9083
c99f335e25
Remove deprecated FileInfoParser (#5581)
This commit is contained in:
parent
a1bb85c575
commit
e6361d01dc
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'ff8f0c19f83a3e82c74ba47cd34abe37c2d99c8b';
|
||||
public const PACKAGE_VERSION = 'c99f335e2513718afc8623bfba3902ef887e9083';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-02-07 22:49:59';
|
||||
public const RELEASE_DATE = '2024-02-07 23:51:14';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -1,54 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\FileSystemRector\Parser;
|
||||
|
||||
use RectorPrefix202402\Nette\Utils\FileSystem;
|
||||
use PhpParser\Node\Stmt;
|
||||
use Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator;
|
||||
use Rector\PhpParser\Parser\RectorParser;
|
||||
use Rector\Provider\CurrentFileProvider;
|
||||
use Rector\ValueObject\Application\File;
|
||||
/**
|
||||
* @deprecated use \Rector\Testing\TestingParser\TestingParser instead
|
||||
*
|
||||
* Only for testing
|
||||
*/
|
||||
final class FileInfoParser
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator
|
||||
*/
|
||||
private $nodeScopeAndMetadataDecorator;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\PhpParser\Parser\RectorParser
|
||||
*/
|
||||
private $rectorParser;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Provider\CurrentFileProvider
|
||||
*/
|
||||
private $currentFileProvider;
|
||||
public function __construct(NodeScopeAndMetadataDecorator $nodeScopeAndMetadataDecorator, RectorParser $rectorParser, CurrentFileProvider $currentFileProvider)
|
||||
{
|
||||
$this->nodeScopeAndMetadataDecorator = $nodeScopeAndMetadataDecorator;
|
||||
$this->rectorParser = $rectorParser;
|
||||
$this->currentFileProvider = $currentFileProvider;
|
||||
}
|
||||
/**
|
||||
* @api tests only
|
||||
* @return Stmt[]
|
||||
*/
|
||||
public function parseFileInfoToNodesAndDecorate(string $filePath) : array
|
||||
{
|
||||
$fileContent = FileSystem::read($filePath);
|
||||
$stmts = $this->rectorParser->parseString($fileContent);
|
||||
$file = new File($filePath, $fileContent);
|
||||
$stmts = $this->nodeScopeAndMetadataDecorator->decorateNodesFromFile($filePath, $stmts);
|
||||
$file->hydrateStmtsAndTokens($stmts, $stmts, []);
|
||||
$this->currentFileProvider->setFile($file);
|
||||
return $stmts;
|
||||
}
|
||||
}
|
1
vendor/composer/autoload_classmap.php
vendored
1
vendor/composer/autoload_classmap.php
vendored
|
@ -1450,7 +1450,6 @@ return array(
|
|||
'Rector\\Exception\\VersionException' => $baseDir . '/src/Exception/VersionException.php',
|
||||
'Rector\\FamilyTree\\NodeAnalyzer\\ClassChildAnalyzer' => $baseDir . '/src/FamilyTree/NodeAnalyzer/ClassChildAnalyzer.php',
|
||||
'Rector\\FamilyTree\\Reflection\\FamilyRelationsAnalyzer' => $baseDir . '/src/FamilyTree/Reflection/FamilyRelationsAnalyzer.php',
|
||||
'Rector\\FileSystemRector\\Parser\\FileInfoParser' => $baseDir . '/src/FileSystemRector/Parser/FileInfoParser.php',
|
||||
'Rector\\FileSystem\\FileAndDirectoryFilter' => $baseDir . '/src/FileSystem/FileAndDirectoryFilter.php',
|
||||
'Rector\\FileSystem\\FilePathHelper' => $baseDir . '/src/FileSystem/FilePathHelper.php',
|
||||
'Rector\\FileSystem\\FilesFinder' => $baseDir . '/src/FileSystem/FilesFinder.php',
|
||||
|
|
1
vendor/composer/autoload_static.php
vendored
1
vendor/composer/autoload_static.php
vendored
|
@ -1664,7 +1664,6 @@ class ComposerStaticInite7277bc9955b8320d8e3feecf0919422
|
|||
'Rector\\Exception\\VersionException' => __DIR__ . '/../..' . '/src/Exception/VersionException.php',
|
||||
'Rector\\FamilyTree\\NodeAnalyzer\\ClassChildAnalyzer' => __DIR__ . '/../..' . '/src/FamilyTree/NodeAnalyzer/ClassChildAnalyzer.php',
|
||||
'Rector\\FamilyTree\\Reflection\\FamilyRelationsAnalyzer' => __DIR__ . '/../..' . '/src/FamilyTree/Reflection/FamilyRelationsAnalyzer.php',
|
||||
'Rector\\FileSystemRector\\Parser\\FileInfoParser' => __DIR__ . '/../..' . '/src/FileSystemRector/Parser/FileInfoParser.php',
|
||||
'Rector\\FileSystem\\FileAndDirectoryFilter' => __DIR__ . '/../..' . '/src/FileSystem/FileAndDirectoryFilter.php',
|
||||
'Rector\\FileSystem\\FilePathHelper' => __DIR__ . '/../..' . '/src/FileSystem/FilePathHelper.php',
|
||||
'Rector\\FileSystem\\FilesFinder' => __DIR__ . '/../..' . '/src/FileSystem/FilesFinder.php',
|
||||
|
|
Loading…
Reference in New Issue
Block a user