Updated Rector to commit 94ef798f75

94ef798f75 [parser] use simple parser to remove unsupported code (#1789)
This commit is contained in:
Tomas Votruba 2022-02-09 01:05:58 +00:00
parent 3b8eaada80
commit b1d44ed8b3
6 changed files with 32 additions and 20 deletions

View File

@ -12,11 +12,18 @@ services:
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
autowired: false
cachedRectorSimpleParser:
class: PHPStan\Parser\CachedParser
arguments:
originalParser: @rectorSimpleParser
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
autowired: false
pathRoutingParser:
class: PHPStan\Parser\PathRoutingParser
arguments:
currentPhpVersionRichParser: @cachedRectorParser
currentPhpVersionSimpleParser: @cachedRectorParser
currentPhpVersionSimpleParser: @cachedRectorSimpleParser
php8Parser: @php8Parser
autowired: false
@ -26,3 +33,8 @@ services:
parser: @currentPhpVersionPhpParser
lexer: @currentPhpVersionLexer
autowired: no
rectorSimpleParser:
class: PHPStan\Parser\SimpleParser
arguments:
parser: @currentPhpVersionPhpParser

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '7c14a98e546fc6ebf58208d8e1d993f23125bf54';
public const PACKAGE_VERSION = '94ef798f75158dae46d65d72bfcecb3b13c54e5a';
/**
* @var string
*/
public const RELEASE_DATE = '2022-02-09 00:00:06';
public const RELEASE_DATE = '2022-02-09 00:59:39';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20220209\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842::getLoader();
return ComposerAutoloaderInit41f3f32042275afa1ccab66d160713f1::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842
class ComposerAutoloaderInit41f3f32042275afa1ccab66d160713f1
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit41f3f32042275afa1ccab66d160713f1', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit41f3f32042275afa1ccab66d160713f1', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitd885440e45fbe4adf7b8099a05a11842::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit41f3f32042275afa1ccab66d160713f1::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,12 +42,12 @@ class ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitd885440e45fbe4adf7b8099a05a11842::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit41f3f32042275afa1ccab66d160713f1::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequired885440e45fbe4adf7b8099a05a11842($fileIdentifier, $file);
composerRequire41f3f32042275afa1ccab66d160713f1($fileIdentifier, $file);
}
return $loader;
@ -59,7 +59,7 @@ class ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842
* @param string $file
* @return void
*/
function composerRequired885440e45fbe4adf7b8099a05a11842($fileIdentifier, $file)
function composerRequire41f3f32042275afa1ccab66d160713f1($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitd885440e45fbe4adf7b8099a05a11842
class ComposerStaticInit41f3f32042275afa1ccab66d160713f1
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@ -3865,9 +3865,9 @@ class ComposerStaticInitd885440e45fbe4adf7b8099a05a11842
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitd885440e45fbe4adf7b8099a05a11842::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitd885440e45fbe4adf7b8099a05a11842::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitd885440e45fbe4adf7b8099a05a11842::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit41f3f32042275afa1ccab66d160713f1::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit41f3f32042275afa1ccab66d160713f1::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit41f3f32042275afa1ccab66d160713f1::$classMap;
}, null, ClassLoader::class);
}

View File

@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20220209\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842', false) && !interface_exists('ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842', false) && !trait_exists('ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842', false)) {
spl_autoload_call('RectorPrefix20220209\ComposerAutoloaderInitd885440e45fbe4adf7b8099a05a11842');
if (!class_exists('ComposerAutoloaderInit41f3f32042275afa1ccab66d160713f1', false) && !interface_exists('ComposerAutoloaderInit41f3f32042275afa1ccab66d160713f1', false) && !trait_exists('ComposerAutoloaderInit41f3f32042275afa1ccab66d160713f1', false)) {
spl_autoload_call('RectorPrefix20220209\ComposerAutoloaderInit41f3f32042275afa1ccab66d160713f1');
}
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
spl_autoload_call('RectorPrefix20220209\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -71,9 +71,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20220209\print_node(...func_get_args());
}
}
if (!function_exists('composerRequired885440e45fbe4adf7b8099a05a11842')) {
function composerRequired885440e45fbe4adf7b8099a05a11842() {
return \RectorPrefix20220209\composerRequired885440e45fbe4adf7b8099a05a11842(...func_get_args());
if (!function_exists('composerRequire41f3f32042275afa1ccab66d160713f1')) {
function composerRequire41f3f32042275afa1ccab66d160713f1() {
return \RectorPrefix20220209\composerRequire41f3f32042275afa1ccab66d160713f1(...func_get_args());
}
}
if (!function_exists('scanPath')) {