From cdaa25cb85a60b9460fa2f9ce5bf93a30c59db88 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 13 Sep 2023 19:48:27 +0000 Subject: [PATCH] Updated Rector to commit 23840739198816814b463df4a9510bb8f4f5fbda https://github.com/rectorphp/rector-src/commit/23840739198816814b463df4a9510bb8f4f5fbda [VendorLockResolver] Reduce repetitive getName() on ClassMethodParamVendorLockResolver (#5015) --- .../ClassMethodParamVendorLockResolver.php | 2 -- src/Application/VersionResolver.php | 4 ++-- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 10 +++++----- vendor/composer/autoload_static.php | 8 ++++---- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/packages/VendorLocker/NodeVendorLocker/ClassMethodParamVendorLockResolver.php b/packages/VendorLocker/NodeVendorLocker/ClassMethodParamVendorLockResolver.php index 380ebaa6420..f215748b1fa 100644 --- a/packages/VendorLocker/NodeVendorLocker/ClassMethodParamVendorLockResolver.php +++ b/packages/VendorLocker/NodeVendorLocker/ClassMethodParamVendorLockResolver.php @@ -56,8 +56,6 @@ final class ClassMethodParamVendorLockResolver if ($this->hasParentInterfaceMethod($classReflection, $methodName)) { return \true; } - /** @var string $methodName */ - $methodName = $this->nodeNameResolver->getName($classMethod); return $this->hasClassMethodLockMatchingFileName($classReflection, $methodName, '/vendor/'); } private function hasTraitMethodVendorLock(ClassReflection $classReflection, string $methodName) : bool diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index fe4c65ab2d9..cc36d9bdd1d 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 = '299d02c41ec1a0850c5a5449e27f9cf9fd44b5e5'; + public const PACKAGE_VERSION = '23840739198816814b463df4a9510bb8f4f5fbda'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-09-14 02:18:43'; + public const RELEASE_DATE = '2023-09-14 02:45:33'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index 9db8e95a915..43e435a4916 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 ComposerAutoloaderInit4f8152579cbe1ab8bc70c0536c7bb55c::getLoader(); +return ComposerAutoloaderInit377c7f25a9f2224d2fc88d326689fa9b::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 4dbd6b4f608..e36ee840cfb 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit4f8152579cbe1ab8bc70c0536c7bb55c +class ComposerAutoloaderInit377c7f25a9f2224d2fc88d326689fa9b { private static $loader; @@ -22,17 +22,17 @@ class ComposerAutoloaderInit4f8152579cbe1ab8bc70c0536c7bb55c return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit4f8152579cbe1ab8bc70c0536c7bb55c', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit377c7f25a9f2224d2fc88d326689fa9b', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit4f8152579cbe1ab8bc70c0536c7bb55c', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit377c7f25a9f2224d2fc88d326689fa9b', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit4f8152579cbe1ab8bc70c0536c7bb55c::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit377c7f25a9f2224d2fc88d326689fa9b::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInit4f8152579cbe1ab8bc70c0536c7bb55c::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInit377c7f25a9f2224d2fc88d326689fa9b::$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 7d705065ba2..4cfa4af4ad9 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit4f8152579cbe1ab8bc70c0536c7bb55c +class ComposerStaticInit377c7f25a9f2224d2fc88d326689fa9b { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -2593,9 +2593,9 @@ class ComposerStaticInit4f8152579cbe1ab8bc70c0536c7bb55c public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit4f8152579cbe1ab8bc70c0536c7bb55c::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit4f8152579cbe1ab8bc70c0536c7bb55c::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit4f8152579cbe1ab8bc70c0536c7bb55c::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit377c7f25a9f2224d2fc88d326689fa9b::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit377c7f25a9f2224d2fc88d326689fa9b::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit377c7f25a9f2224d2fc88d326689fa9b::$classMap; }, null, ClassLoader::class); }