[Core] Comment @todo tweak FileProcessor::parseFileInfoToLocalCache() (#477)

This commit is contained in:
Abdul Malik Ikhsan 2021-07-21 15:50:55 +07:00 committed by GitHub
parent 820cb16122
commit 1478d8eb78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}