Updated Rector to commit 7adde5807c

7adde5807c [DX] Move configure to direct call in RectorConfig (#2367)
This commit is contained in:
Tomas Votruba 2022-05-27 11:00:42 +00:00
parent 51026f9d95
commit c9884a4d56
6 changed files with 28 additions and 20 deletions

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\Config;
use Rector\Core\Configuration\Option;
use Rector\Core\Configuration\ValueObjectInliner;
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
use Rector\Core\Contract\Rector\RectorInterface;
use Rector\Core\ValueObject\PhpVersion;
@ -96,7 +97,14 @@ final class RectorConfig extends \Symfony\Component\DependencyInjection\Loader\C
\RectorPrefix20220527\Webmozart\Assert\Assert::isAOf($rectorClass, \Rector\Core\Contract\Rector\RectorInterface::class);
\RectorPrefix20220527\Webmozart\Assert\Assert::isAOf($rectorClass, \Rector\Core\Contract\Rector\ConfigurableRectorInterface::class);
$services = $this->services();
$services->set($rectorClass)->configure($configuration);
// decorate with value object inliner so Symfony understands, see https://getrector.org/blog/2020/09/07/how-to-inline-value-object-in-symfony-php-config
\array_walk_recursive($configuration, function (&$value) {
if (\is_object($value)) {
$value = \Rector\Core\Configuration\ValueObjectInliner::inline($value);
}
return $value;
});
$services->set($rectorClass)->call('configure', [$configuration]);
}
/**
* @param class-string<RectorInterface> $rectorClass

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '213b14d715caddb50c5b1a34d41ee5c234f6b68f';
public const PACKAGE_VERSION = '7adde5807cf0c9531a9e3a193b6c318307bfba6a';
/**
* @var string
*/
public const RELEASE_DATE = '2022-05-27 12:52:26';
public const RELEASE_DATE = '2022-05-27 10:52:46';
/**
* @var string
*/

2
vendor/autoload.php vendored
View File

@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682::getLoader();
return ComposerAutoloaderInit7840a13b2172ef51c78deb5bfdbaadbc::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682
class ComposerAutoloaderInit7840a13b2172ef51c78deb5bfdbaadbc
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit7840a13b2172ef51c78deb5bfdbaadbc', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit7840a13b2172ef51c78deb5bfdbaadbc', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInita65c4342352b2555463dc95f24d6d682::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit7840a13b2172ef51c78deb5bfdbaadbc::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInita65c4342352b2555463dc95f24d6d682::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit7840a13b2172ef51c78deb5bfdbaadbc::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequirea65c4342352b2555463dc95f24d6d682($fileIdentifier, $file);
composerRequire7840a13b2172ef51c78deb5bfdbaadbc($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682
* @param string $file
* @return void
*/
function composerRequirea65c4342352b2555463dc95f24d6d682($fileIdentifier, $file)
function composerRequire7840a13b2172ef51c78deb5bfdbaadbc($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 ComposerStaticInita65c4342352b2555463dc95f24d6d682
class ComposerStaticInit7840a13b2172ef51c78deb5bfdbaadbc
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@ -3919,9 +3919,9 @@ class ComposerStaticInita65c4342352b2555463dc95f24d6d682
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInita65c4342352b2555463dc95f24d6d682::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita65c4342352b2555463dc95f24d6d682::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita65c4342352b2555463dc95f24d6d682::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit7840a13b2172ef51c78deb5bfdbaadbc::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7840a13b2172ef51c78deb5bfdbaadbc::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7840a13b2172ef51c78deb5bfdbaadbc::$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('RectorPrefix20220527\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682', false) && !interface_exists('ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682', false) && !trait_exists('ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682', false)) {
spl_autoload_call('RectorPrefix20220527\ComposerAutoloaderInita65c4342352b2555463dc95f24d6d682');
if (!class_exists('ComposerAutoloaderInit7840a13b2172ef51c78deb5bfdbaadbc', false) && !interface_exists('ComposerAutoloaderInit7840a13b2172ef51c78deb5bfdbaadbc', false) && !trait_exists('ComposerAutoloaderInit7840a13b2172ef51c78deb5bfdbaadbc', false)) {
spl_autoload_call('RectorPrefix20220527\ComposerAutoloaderInit7840a13b2172ef51c78deb5bfdbaadbc');
}
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('RectorPrefix20220527\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20220527\print_node(...func_get_args());
}
}
if (!function_exists('composerRequirea65c4342352b2555463dc95f24d6d682')) {
function composerRequirea65c4342352b2555463dc95f24d6d682() {
return \RectorPrefix20220527\composerRequirea65c4342352b2555463dc95f24d6d682(...func_get_args());
if (!function_exists('composerRequire7840a13b2172ef51c78deb5bfdbaadbc')) {
function composerRequire7840a13b2172ef51c78deb5bfdbaadbc() {
return \RectorPrefix20220527\composerRequire7840a13b2172ef51c78deb5bfdbaadbc(...func_get_args());
}
}
if (!function_exists('scanPath')) {