From 1061e30ae81ed3daf0b7d8a054341c414cc5c925 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 13 Dec 2024 10:43:42 +0000 Subject: [PATCH] Updated Rector to commit 25817175d71dd62ec8007bfc7b6353d568a2b6de https://github.com/rectorphp/rector-src/commit/25817175d71dd62ec8007bfc7b6353d568a2b6de [PHP 8.0] Add lcfirst annotation to attribute support (#6577) --- .../Rector/Class_/AnnotationToAttributeRector.php | 3 ++- src/Application/VersionResolver.php | 4 ++-- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 10 +++++----- vendor/composer/autoload_static.php | 8 ++++---- vendor/scoper-autoload.php | 2 +- 6 files changed, 15 insertions(+), 14 deletions(-) diff --git a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php index 3ad3b76208a..d6424cef2b7 100644 --- a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php +++ b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php @@ -43,6 +43,7 @@ use RectorPrefix202412\Webmozart\Assert\Assert; /** * @see \Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\AnnotationToAttributeRectorTest * @see \Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\Php81NestedAttributesRectorTest + * @see \Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\MultipleCallAnnotationToAttributeRectorTest */ final class AnnotationToAttributeRector extends AbstractRector implements ConfigurableRectorInterface, MinPhpVersionInterface { @@ -193,7 +194,7 @@ CODE_SAMPLE } foreach ($this->annotationsToAttributes as $annotationToAttribute) { $desiredTag = $annotationToAttribute->getTag(); - if ($desiredTag !== $tag) { + if (\strtolower($desiredTag) !== \strtolower($tag)) { continue; } // make sure the attribute class really exists to avoid error on early upgrade diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 04726e9f69e..9a033cf4c26 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '362e9b59543957bd64c3ac8b84574116ccc7f47d'; + public const PACKAGE_VERSION = '25817175d71dd62ec8007bfc7b6353d568a2b6de'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-12-13 05:55:32'; + public const RELEASE_DATE = '2024-12-13 10:41:14'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index c23a2aa0ade..a2171da9c6a 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitfe9c9d678432c9dc11080b4472423d0a::getLoader(); +return ComposerAutoloaderInit43a144ea3a889e7564ca86040a3795ff::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 71bc8bb0cac..252b1a2e8f0 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitfe9c9d678432c9dc11080b4472423d0a +class ComposerAutoloaderInit43a144ea3a889e7564ca86040a3795ff { private static $loader; @@ -22,17 +22,17 @@ class ComposerAutoloaderInitfe9c9d678432c9dc11080b4472423d0a return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitfe9c9d678432c9dc11080b4472423d0a', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit43a144ea3a889e7564ca86040a3795ff', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInitfe9c9d678432c9dc11080b4472423d0a', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit43a144ea3a889e7564ca86040a3795ff', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitfe9c9d678432c9dc11080b4472423d0a::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit43a144ea3a889e7564ca86040a3795ff::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInitfe9c9d678432c9dc11080b4472423d0a::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInit43a144ea3a889e7564ca86040a3795ff::$files; $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 71df9859508..84258939983 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitfe9c9d678432c9dc11080b4472423d0a +class ComposerStaticInit43a144ea3a889e7564ca86040a3795ff { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -2838,9 +2838,9 @@ class ComposerStaticInitfe9c9d678432c9dc11080b4472423d0a public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitfe9c9d678432c9dc11080b4472423d0a::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitfe9c9d678432c9dc11080b4472423d0a::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitfe9c9d678432c9dc11080b4472423d0a::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit43a144ea3a889e7564ca86040a3795ff::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit43a144ea3a889e7564ca86040a3795ff::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit43a144ea3a889e7564ca86040a3795ff::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/scoper-autoload.php b/vendor/scoper-autoload.php index 98d6027f959..ae1e4f4190a 100644 --- a/vendor/scoper-autoload.php +++ b/vendor/scoper-autoload.php @@ -30,7 +30,7 @@ if (!function_exists('humbug_phpscoper_expose_class')) { } } humbug_phpscoper_expose_class('AutoloadIncluder', 'RectorPrefix202412\AutoloadIncluder'); -humbug_phpscoper_expose_class('ComposerAutoloaderInitfe9c9d678432c9dc11080b4472423d0a', 'RectorPrefix202412\ComposerAutoloaderInitfe9c9d678432c9dc11080b4472423d0a'); +humbug_phpscoper_expose_class('ComposerAutoloaderInit43a144ea3a889e7564ca86040a3795ff', 'RectorPrefix202412\ComposerAutoloaderInit43a144ea3a889e7564ca86040a3795ff'); humbug_phpscoper_expose_class('Product', 'RectorPrefix202412\Product'); humbug_phpscoper_expose_class('SomeTest', 'RectorPrefix202412\SomeTest');