Updated Rector to commit 8ef808705cd8f467602f2411ec831552648295ae

8ef808705c deprecate createShortClassConstFetch() as the FQN must be used by convention (#3092)
This commit is contained in:
Tomas Votruba 2022-11-25 15:33:24 +00:00
parent bd5d4027f7
commit 96db1edee6
7 changed files with 20 additions and 20 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 ComposerAutoloaderInit46875028e3d19f59a233b9597496fcdc::getLoader();
return ComposerAutoloaderInit19f9456f2741685133ae04b4a983c71c::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit46875028e3d19f59a233b9597496fcdc
class ComposerAutoloaderInit19f9456f2741685133ae04b4a983c71c
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInit46875028e3d19f59a233b9597496fcdc
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit46875028e3d19f59a233b9597496fcdc', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit19f9456f2741685133ae04b4a983c71c', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit46875028e3d19f59a233b9597496fcdc', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit19f9456f2741685133ae04b4a983c71c', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit46875028e3d19f59a233b9597496fcdc::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit19f9456f2741685133ae04b4a983c71c::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInit46875028e3d19f59a233b9597496fcdc::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit19f9456f2741685133ae04b4a983c71c::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire46875028e3d19f59a233b9597496fcdc($fileIdentifier, $file);
composerRequire19f9456f2741685133ae04b4a983c71c($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInit46875028e3d19f59a233b9597496fcdc
* @param string $file
* @return void
*/
function composerRequire46875028e3d19f59a233b9597496fcdc($fileIdentifier, $file)
function composerRequire19f9456f2741685133ae04b4a983c71c($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 ComposerStaticInit46875028e3d19f59a233b9597496fcdc
class ComposerStaticInit19f9456f2741685133ae04b4a983c71c
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3037,9 +3037,9 @@ class ComposerStaticInit46875028e3d19f59a233b9597496fcdc
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit46875028e3d19f59a233b9597496fcdc::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit46875028e3d19f59a233b9597496fcdc::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit46875028e3d19f59a233b9597496fcdc::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit19f9456f2741685133ae04b4a983c71c::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit19f9456f2741685133ae04b4a983c71c::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit19f9456f2741685133ae04b4a983c71c::$classMap;
}, null, ClassLoader::class);
}

View File

@ -2061,12 +2061,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "4091a4b14c7edd9cc58e10ce38897ecb95e3b18e"
"reference": "e60f6fb9fb61a537a1494c56642fba7500a43bce"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/4091a4b14c7edd9cc58e10ce38897ecb95e3b18e",
"reference": "4091a4b14c7edd9cc58e10ce38897ecb95e3b18e",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/e60f6fb9fb61a537a1494c56642fba7500a43bce",
"reference": "e60f6fb9fb61a537a1494c56642fba7500a43bce",
"shasum": ""
},
"require": {
@ -2097,7 +2097,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-11-25T15:08:42+00:00",
"time": "2022-11-25T15:24:57+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 bf394ee'), '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 4a09528'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9ea5f62'), '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 e646c56'), '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 4091a4b'));
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 bf394ee'), '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 4a09528'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9ea5f62'), '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 e646c56'), '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 e60f6fb'));
private function __construct()
{
}

View File

@ -47,7 +47,7 @@ class SomeCommand extends Command
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
return Symfony\Component\Console\Command\Command::SUCCESS;
return \Symfony\Component\Console\Command\Command::SUCCESS;
}
}
@ -100,6 +100,6 @@ CODE_SAMPLE
if (!isset(SymfonyCommandConstantMap::RETURN_TO_CONST[$lNumber->value])) {
return null;
}
return $this->nodeFactory->createShortClassConstFetch('Symfony\\Component\\Console\\Command\\Command', SymfonyCommandConstantMap::RETURN_TO_CONST[$lNumber->value]);
return $this->nodeFactory->createClassConstFetch('Symfony\\Component\\Console\\Command\\Command', SymfonyCommandConstantMap::RETURN_TO_CONST[$lNumber->value]);
}
}