mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-04 23:52:28 +02:00
Updated Rector to commit 23840739198816814b463df4a9510bb8f4f5fbda
2384073919
[VendorLockResolver] Reduce repetitive getName() on ClassMethodParamVendorLockResolver (#5015)
This commit is contained in:
parent
1543cccc56
commit
cdaa25cb85
@ -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
|
||||
|
@ -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
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit4f8152579cbe1ab8bc70c0536c7bb55c::getLoader();
|
||||
return ComposerAutoloaderInit377c7f25a9f2224d2fc88d326689fa9b::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -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;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user