mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 16:30:51 +00:00
[Core] Comment @todo tweak FileProcessor::parseFileInfoToLocalCache() (#477)
This commit is contained in:
parent
820cb16122
commit
1478d8eb78
|
@ -29,6 +29,7 @@ final class FileProcessor
|
|||
$oldStmts = $this->parser->parseFileInfo($smartFileInfo);
|
||||
$oldTokens = $this->lexer->getTokens();
|
||||
|
||||
// @todo may need tweak to refresh PHPStan types to avoid issue like in https://github.com/rectorphp/rector/issues/6561
|
||||
$newStmts = $this->nodeScopeAndMetadataDecorator->decorateNodesFromFile($file, $oldStmts);
|
||||
$file->hydrateStmtsAndTokens($newStmts, $oldStmts, $oldTokens);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user