Updated Rector to commit 7d65537690d8d788b595b46f026920b4b17eaaf5

7d65537690 Fix few static errors (#5899)
This commit is contained in:
Tomas Votruba 2024-05-19 17:16:04 +00:00
parent 2210bace5e
commit 9a455bf300
9 changed files with 26 additions and 13 deletions

View File

@ -15,6 +15,7 @@ use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Property;
use PHPStan\Reflection\ReflectionProvider;
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\Php81\Enum\AttributeName;
use Rector\PhpAttribute\Enum\DocTagNodeState;
final class PhpAttributeAnalyzer
{
@ -48,6 +49,9 @@ final class PhpAttributeAnalyzer
}
return \false;
}
/**
* @param AttributeName::* $attributeClass
*/
public function hasInheritedPhpAttribute(Class_ $class, string $attributeClass) : bool
{
$className = (string) $this->nodeNameResolver->getName($class);

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '196b2d0947a0dbec176209113f52e82ac5673e2b';
public const PACKAGE_VERSION = '7d65537690d8d788b595b46f026920b4b17eaaf5';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-19 18:07:08';
public const RELEASE_DATE = '2024-05-19 19:12:26';
/**
* @var int
*/

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\Caching;
use Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface;
use Rector\Caching\Enum\CacheKey;
final class Cache
{
/**
@ -16,6 +17,7 @@ final class Cache
$this->cacheStorage = $cacheStorage;
}
/**
* @param CacheKey::* $variableKey
* @return mixed|null
*/
public function load(string $key, string $variableKey)
@ -23,6 +25,7 @@ final class Cache
return $this->cacheStorage->load($key, $variableKey);
}
/**
* @param CacheKey::* $variableKey
* @param mixed $data
*/
public function save(string $key, string $variableKey, $data) : void

View File

@ -26,6 +26,7 @@ use Rector\Exception\ShouldNotHappenException;
use Rector\NodeAnalyzer\CallAnalyzer;
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
use Rector\NodeTypeResolver\Node\AttributeKey;
use Rector\ValueObject\MethodName;
final class NodeNameResolver
{
/**
@ -78,6 +79,7 @@ final class NodeNameResolver
}
/**
* @param Node|Node[] $node
* @param MethodName::*|string $name
*/
public function isName($node, string $name) : bool
{

View File

@ -17,6 +17,7 @@ use Rector\BetterPhpDocParser\PhpDoc\ArrayItemNode;
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
use Rector\NodeTypeResolver\Node\AttributeKey;
use Rector\Php80\ValueObject\AnnotationToAttribute;
use Rector\Php81\Enum\AttributeName;
use Rector\PhpAttribute\AnnotationToAttributeMapper;
use Rector\PhpAttribute\AttributeArrayNameInliner;
/**
@ -55,6 +56,9 @@ final class PhpAttributeGroupFactory
{
return $this->createFromClass($annotationToAttribute->getAttributeClass());
}
/**
* @param AttributeName::*|string $attributeClass
*/
public function createFromClass(string $attributeClass) : AttributeGroup
{
$fullyQualified = new FullyQualified($attributeClass);

2
vendor/autoload.php vendored
View File

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

View File

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

View File

@ -30,7 +30,7 @@ if (!function_exists('humbug_phpscoper_expose_class')) {
}
}
humbug_phpscoper_expose_class('AutoloadIncluder', 'RectorPrefix202405\AutoloadIncluder');
humbug_phpscoper_expose_class('ComposerAutoloaderInit324dac9f89c2a1b2a5d32f56900fd8da', 'RectorPrefix202405\ComposerAutoloaderInit324dac9f89c2a1b2a5d32f56900fd8da');
humbug_phpscoper_expose_class('ComposerAutoloaderInit8f3085135f9c0dec79e149b0c0400440', 'RectorPrefix202405\ComposerAutoloaderInit8f3085135f9c0dec79e149b0c0400440');
humbug_phpscoper_expose_class('Product', 'RectorPrefix202405\Product');
// Function aliases. For more information see: