Updated Rector to commit d9f02cadebe0cb3b9ec43be05e000805f31bcb18

d9f02cadeb [Php55] Clean up FullyQualified assigned to FullyQualified on StringClassNameToClassConstantRector (#4284)
This commit is contained in:
Tomas Votruba 2023-06-19 15:33:20 +00:00
parent 30d2bb9a83
commit 6ea61fb33b
5 changed files with 14 additions and 15 deletions

View File

@ -116,14 +116,13 @@ CODE_SAMPLE
return null;
}
$fullyQualified = new FullyQualified($classLikeName);
$fullyQualifiedOrAliasName = new FullyQualified($fullyQualified);
if ($classLikeName !== $node->value) {
$preSlashCount = \strlen($node->value) - \strlen($classLikeName);
$preSlash = \str_repeat('\\', $preSlashCount);
$string = new String_($preSlash);
return new Concat($string, new ClassConstFetch($fullyQualifiedOrAliasName, 'class'));
return new Concat($string, new ClassConstFetch($fullyQualified, 'class'));
}
return new ClassConstFetch($fullyQualifiedOrAliasName, 'class');
return new ClassConstFetch($fullyQualified, 'class');
}
/**
* @param mixed[] $configuration

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '4b05faa06d30e8d3f47fb3c3b37dad8548ae5230';
public const PACKAGE_VERSION = 'd9f02cadebe0cb3b9ec43be05e000805f31bcb18';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-06-19 14:13:13';
public const RELEASE_DATE = '2023-06-19 15:29:14';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

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