Updated Rector to commit 2c454d292b8af3a8e8eb61f813efe6b12c66ae81

2c454d292b [PHP 5.5] Make StringClassNameToClassConstantRector skip lcfirst (#2888)
This commit is contained in:
Tomas Votruba 2022-09-01 21:06:09 +00:00
parent 72019c1f5a
commit 6d11119b51
5 changed files with 18 additions and 14 deletions

View File

@ -126,6 +126,10 @@ CODE_SAMPLE
if (!$this->reflectionProvider->hasClass($classLikeName)) {
return \true;
}
// possibly string
if (\ctype_lower($classLikeName[0])) {
return \true;
}
foreach ($this->classesToSkip as $classToSkip) {
if ($this->nodeNameResolver->isStringName($classLikeName, $classToSkip)) {
return \true;

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '88b75c6180cab29f49e7ec6567df80b052987978';
public const PACKAGE_VERSION = '2c454d292b8af3a8e8eb61f813efe6b12c66ae81';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-09-01 22:51:33';
public const RELEASE_DATE = '2022-09-01 23:01:02';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

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