Updated Rector to commit e1dd98dc51c214a743fe1785fd264d2ea27efd72

e1dd98dc51 [DowngradePhp73][DowngradePhp74] Fix infinite loop on DowngradeNullCoalescingOperatorRector+DowngradePhp73JsonConstRector (#3484)
This commit is contained in:
Tomas Votruba 2023-03-17 12:44:08 +00:00
parent f6c94163d8
commit 73a02c4fb1
7 changed files with 29 additions and 19 deletions

2
vendor/autoload.php vendored
View File

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

View File

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

View File

@ -2128,12 +2128,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "dcaf67f9e89f2c7cf2c16cecabbb4df7a7fb91bf"
"reference": "38dd911b0063230454313ef920e938ef56010f21"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/dcaf67f9e89f2c7cf2c16cecabbb4df7a7fb91bf",
"reference": "dcaf67f9e89f2c7cf2c16cecabbb4df7a7fb91bf",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/38dd911b0063230454313ef920e938ef56010f21",
"reference": "38dd911b0063230454313ef920e938ef56010f21",
"shasum": ""
},
"require": {
@ -2162,7 +2162,7 @@
"tomasvotruba\/type-coverage": "^0.0.9",
"tomasvotruba\/unused-public": "^0.0.34"
},
"time": "2023-03-14T10:54:41+00:00",
"time": "2023-03-17T12:36:48+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5fe59e9'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b7d8492'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dfeb67c'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dcaf67f'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5fe59e9'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b7d8492'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dfeb67c'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38dd911'));
private function __construct()
{
}

View File

@ -22,17 +22,27 @@ final class ServiceMapProvider
* @var \Rector\Symfony\ValueObjectFactory\ServiceMapFactory
*/
private $serviceMapFactory;
public function __construct(ParameterProvider $parameterProvider, ServiceMapFactory $serviceMapFactory)
/**
* @var \Rector\Symfony\ValueObject\ServiceMap\ServiceMap|null
*/
private $serviceMap;
public function __construct(ParameterProvider $parameterProvider, ServiceMapFactory $serviceMapFactory, ?ServiceMap $serviceMap = null)
{
$this->parameterProvider = $parameterProvider;
$this->serviceMapFactory = $serviceMapFactory;
$this->serviceMap = $serviceMap;
}
public function provide() : ServiceMap
{
if ($this->serviceMap instanceof ServiceMap) {
return $this->serviceMap;
}
$symfonyContainerXmlPath = (string) $this->parameterProvider->provideParameter(Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER);
if ($symfonyContainerXmlPath === '') {
return $this->serviceMapFactory->createEmpty();
$this->serviceMap = $this->serviceMapFactory->createEmpty();
} else {
$this->serviceMap = $this->serviceMapFactory->createFromFileContent($symfonyContainerXmlPath);
}
return $this->serviceMapFactory->createFromFileContent($symfonyContainerXmlPath);
return $this->serviceMap;
}
}