Updated Rector to commit 56b0d65f9d3dd7c85055f18208b6f4a4859c4cc6

56b0d65f9d Fix Rector invalidation in case of changes sets or rules (#4902)
This commit is contained in:
Tomas Votruba 2023-09-03 17:34:03 +00:00
parent 672d981dee
commit e4a21c854e
6 changed files with 28 additions and 12 deletions

View File

@ -43,6 +43,8 @@ final class RectorConfig extends Container
Assert::fileExists($set);
$this->import($set);
}
// for cache invalidation in case of sets change
SimpleParameterProvider::addParameter(Option::REGISTERED_RECTOR_SETS, $sets);
}
public function disableParallel() : void
{
@ -150,6 +152,8 @@ final class RectorConfig extends Container
$ruleConfiguration = $this->ruleConfigurations[$rectorClass];
$configurableRector->configure($ruleConfiguration);
});
// for cache invalidation in case of sets change
SimpleParameterProvider::addParameter(Option::REGISTERED_RECTOR_RULES, $rectorClass);
}
/**
* @param class-string<RectorInterface> $rectorClass
@ -167,6 +171,8 @@ final class RectorConfig extends Container
return $scopeAwareRector;
});
}
// for cache invalidation in case of change
SimpleParameterProvider::addParameter(Option::REGISTERED_RECTOR_RULES, $rectorClass);
}
public function import(string $filePath) : void
{

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '955a0acffad2cf81100d9643955ebd3ebc700c4e';
public const PACKAGE_VERSION = '56b0d65f9d3dd7c85055f18208b6f4a4859c4cc6';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-09-03 18:41:34';
public const RELEASE_DATE = '2023-09-03 19:31:33';
/**
* @var int
*/

View File

@ -180,4 +180,14 @@ final class Option
* @var string
*/
public const CONTAINER_CACHE_DIRECTORY = 'container-cache-directory';
/**
* @internal For cache invalidation in case of change
* @var string
*/
public const REGISTERED_RECTOR_RULES = 'registered_rector_rules';
/**
* @internal For cache invalidation in case of change
* @var string
*/
public const REGISTERED_RECTOR_SETS = 'registered_rector_sets';
}

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit20ffc06cd0579d18476b4da64749aa5e
class ComposerAutoloaderInit6a0cc4a0bead74d605dd4fd80d81897c
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit20ffc06cd0579d18476b4da64749aa5e
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit20ffc06cd0579d18476b4da64749aa5e', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit6a0cc4a0bead74d605dd4fd80d81897c', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit20ffc06cd0579d18476b4da64749aa5e', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit6a0cc4a0bead74d605dd4fd80d81897c', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit20ffc06cd0579d18476b4da64749aa5e::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit6a0cc4a0bead74d605dd4fd80d81897c::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit20ffc06cd0579d18476b4da64749aa5e::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit6a0cc4a0bead74d605dd4fd80d81897c::$files;
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit20ffc06cd0579d18476b4da64749aa5e
class ComposerStaticInit6a0cc4a0bead74d605dd4fd80d81897c
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2611,9 +2611,9 @@ class ComposerStaticInit20ffc06cd0579d18476b4da64749aa5e
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit20ffc06cd0579d18476b4da64749aa5e::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit20ffc06cd0579d18476b4da64749aa5e::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit20ffc06cd0579d18476b4da64749aa5e::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit6a0cc4a0bead74d605dd4fd80d81897c::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6a0cc4a0bead74d605dd4fd80d81897c::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit6a0cc4a0bead74d605dd4fd80d81897c::$classMap;
}, null, ClassLoader::class);
}