diff --git a/rules/Php80/NodeAnalyzer/EnumParamAnalyzer.php b/rules/Php80/NodeAnalyzer/EnumParamAnalyzer.php deleted file mode 100644 index fc0984576f0..00000000000 --- a/rules/Php80/NodeAnalyzer/EnumParamAnalyzer.php +++ /dev/null @@ -1,82 +0,0 @@ -reflectionProvider = $reflectionProvider; - } - public function matchParameterClassName(ParameterReflection $parameterReflection, PhpDocInfo $phpDocInfo) : ?ClassNameAndTagValueNode - { - $paramTagValueNode = $phpDocInfo->getParamTagValueByName($parameterReflection->getName()); - if (!$paramTagValueNode instanceof ParamTagValueNode) { - return null; - } - $className = $this->resolveClassFromConstType($paramTagValueNode->type); - if ($className === null) { - return null; - } - if (!$this->reflectionProvider->hasClass($className)) { - return null; - } - return new ClassNameAndTagValueNode($className, $paramTagValueNode); - } - public function matchReturnClassName(PhpDocInfo $phpDocInfo) : ?ClassNameAndTagValueNode - { - $returnTagValueNode = $phpDocInfo->getReturnTagValue(); - if (!$returnTagValueNode instanceof ReturnTagValueNode) { - return null; - } - $className = $this->resolveClassFromConstType($returnTagValueNode->type); - if (!\is_string($className)) { - return null; - } - return new ClassNameAndTagValueNode($className, $returnTagValueNode); - } - public function matchPropertyClassName(PhpDocInfo $phpDocInfo) : ?ClassNameAndTagValueNode - { - $varTagValueNode = $phpDocInfo->getVarTagValueNode(); - if (!$varTagValueNode instanceof VarTagValueNode) { - return null; - } - $className = $this->resolveClassFromConstType($varTagValueNode->type); - if (!\is_string($className)) { - return null; - } - return new ClassNameAndTagValueNode($className, $varTagValueNode); - } - private function resolveClassFromConstType(TypeNode $typeNode) : ?string - { - if (!$typeNode instanceof ConstTypeNode) { - return null; - } - if (!$typeNode->constExpr instanceof ConstFetchNode) { - return null; - } - $constExpr = $typeNode->constExpr; - return $constExpr->getAttribute(PhpDocAttributeKey::RESOLVED_CLASS); - } -} diff --git a/rules/Php80/ValueObject/ClassNameAndTagValueNode.php b/rules/Php80/ValueObject/ClassNameAndTagValueNode.php deleted file mode 100644 index b4d7f2c45b5..00000000000 --- a/rules/Php80/ValueObject/ClassNameAndTagValueNode.php +++ /dev/null @@ -1,40 +0,0 @@ -enumClass = $enumClass; - $this->tagValueNode = $tagValueNode; - } - public function getEnumClass() : string - { - return $this->enumClass; - } - /** - * @return \PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode|\PHPStan\PhpDocParser\Ast\PhpDoc\ReturnTagValueNode|\PHPStan\PhpDocParser\Ast\PhpDoc\VarTagValueNode - */ - public function getTagValueNode() - { - return $this->tagValueNode; - } -} diff --git a/rules/Php81/NodeAnalyzer/EnumConstListClassDetector.php b/rules/Php81/NodeAnalyzer/EnumConstListClassDetector.php deleted file mode 100644 index f14e8effb74..00000000000 --- a/rules/Php81/NodeAnalyzer/EnumConstListClassDetector.php +++ /dev/null @@ -1,81 +0,0 @@ -nodeTypeResolver = $nodeTypeResolver; - } - public function detect(Class_ $class) : bool - { - $classConstants = $class->getConstants(); - // must have at least 2 constants, otherwise probably not enum - if (\count($classConstants) < 2) { - return \false; - } - // only constants are allowed, nothing else - if (\count($class->stmts) !== \count($classConstants)) { - return \false; - } - // all constant must be public - if (!$this->hasExclusivelyPublicClassConsts($classConstants)) { - return \false; - } - // all constants must have exactly 1 value - foreach ($classConstants as $classConstant) { - if (\count($classConstant->consts) !== 1) { - return \false; - } - } - // only scalar values are allowed - foreach ($classConstants as $classConstant) { - $onlyConstConst = $classConstant->consts[0]; - if (!$onlyConstConst->value instanceof Scalar) { - return \false; - } - } - $uniqueTypeClasses = $this->resolveClassConstTypes($classConstants); - // must be exactly 1 type - return \count($uniqueTypeClasses) === 1; - } - /** - * @param ClassConst[] $classConsts - * @return array> - */ - private function resolveClassConstTypes(array $classConsts) : array - { - $typeClasses = []; - // all constants must have same type - foreach ($classConsts as $classConst) { - $const = $classConst->consts[0]; - $type = $this->nodeTypeResolver->getType($const->value); - $typeClasses[] = \get_class($type); - } - return \array_unique($typeClasses); - } - /** - * @param ClassConst[] $classConsts - */ - private function hasExclusivelyPublicClassConsts(array $classConsts) : bool - { - foreach ($classConsts as $classConst) { - if (!$classConst->isPublic()) { - return \false; - } - } - return \true; - } -} diff --git a/rules/Php81/Rector/Class_/ConstantListClassToEnumRector.php b/rules/Php81/Rector/Class_/ConstantListClassToEnumRector.php deleted file mode 100644 index 6da71d4bbaf..00000000000 --- a/rules/Php81/Rector/Class_/ConstantListClassToEnumRector.php +++ /dev/null @@ -1,181 +0,0 @@ -enumConstListClassDetector = $enumConstListClassDetector; - $this->enumFactory = $enumFactory; - $this->enumParamAnalyzer = $enumParamAnalyzer; - $this->reflectionResolver = $reflectionResolver; - $this->phpDocTagRemover = $phpDocTagRemover; - } - public function getRuleDefinition() : RuleDefinition - { - return new RuleDefinition('Upgrade constant list classes to full blown enum', [new CodeSample(<<<'CODE_SAMPLE' -class Direction -{ - public const LEFT = 'left'; - - public const RIGHT = 'right'; -} -CODE_SAMPLE -, <<<'CODE_SAMPLE' -enum Direction -{ - case LEFT; - - case RIGHT; -} -CODE_SAMPLE -)]); - } - /** - * @return array> - */ - public function getNodeTypes() : array - { - return [Class_::class, ClassMethod::class, Property::class]; - } - /** - * @param Class_|ClassMethod|Property $node - */ - public function refactor(Node $node) : ?Node - { - if ($node instanceof Class_) { - if (!$this->enumConstListClassDetector->detect($node)) { - return null; - } - return $this->enumFactory->createFromClass($node); - } - if ($node instanceof ClassMethod) { - return $this->refactorClassMethod($node); - } - return $this->refactorProperty($node); - } - private function refactorClassMethod(ClassMethod $classMethod) : ?ClassMethod - { - // enum param types doc requires a docblock - $phpDocInfo = $this->phpDocInfoFactory->createFromNode($classMethod); - if (!$phpDocInfo instanceof PhpDocInfo) { - return null; - } - $methodReflection = $this->reflectionResolver->resolveMethodReflectionFromClassMethod($classMethod); - if (!$methodReflection instanceof MethodReflection) { - return null; - } - // refactor params - $haveParamsChanged = $this->refactorParams($methodReflection, $phpDocInfo, $classMethod); - $hasReturnChanged = $this->refactorReturn($phpDocInfo, $classMethod); - if ($haveParamsChanged) { - return $classMethod; - } - if ($hasReturnChanged) { - return $classMethod; - } - return null; - } - private function getParamByName(ClassMethod $classMethod, string $desiredParamName) : ?Param - { - foreach ($classMethod->params as $param) { - if (!$this->nodeNameResolver->isName($param, $desiredParamName)) { - continue; - } - return $param; - } - return null; - } - private function refactorParams(MethodReflection $methodReflection, PhpDocInfo $phpDocInfo, ClassMethod $classMethod) : bool - { - $hasNodeChanged = \false; - $parametersAcceptor = ParametersAcceptorSelector::selectSingle($methodReflection->getVariants()); - foreach ($parametersAcceptor->getParameters() as $parameterReflection) { - $classNameAndTagValueNode = $this->enumParamAnalyzer->matchParameterClassName($parameterReflection, $phpDocInfo); - if (!$classNameAndTagValueNode instanceof ClassNameAndTagValueNode) { - continue; - } - $param = $this->getParamByName($classMethod, $parameterReflection->getName()); - if (!$param instanceof Param) { - continue; - } - // change and remove - $param->type = new FullyQualified($classNameAndTagValueNode->getEnumClass()); - $hasNodeChanged = \true; - $this->phpDocTagRemover->removeTagValueFromNode($phpDocInfo, $classNameAndTagValueNode->getTagValueNode()); - } - return $hasNodeChanged; - } - private function refactorReturn(PhpDocInfo $phpDocInfo, ClassMethod $classMethod) : bool - { - $classNameAndTagValueNode = $this->enumParamAnalyzer->matchReturnClassName($phpDocInfo); - if (!$classNameAndTagValueNode instanceof ClassNameAndTagValueNode) { - return \false; - } - $classMethod->returnType = new FullyQualified($classNameAndTagValueNode->getEnumClass()); - $this->phpDocTagRemover->removeTagValueFromNode($phpDocInfo, $classNameAndTagValueNode->getTagValueNode()); - return \true; - } - private function refactorProperty(Property $property) : ?Property - { - $phpDocInfo = $this->phpDocInfoFactory->createFromNode($property); - if (!$phpDocInfo instanceof PhpDocInfo) { - return null; - } - $classNameAndTagValueNode = $this->enumParamAnalyzer->matchPropertyClassName($phpDocInfo); - if (!$classNameAndTagValueNode instanceof ClassNameAndTagValueNode) { - return null; - } - $property->type = new FullyQualified($classNameAndTagValueNode->getEnumClass()); - $this->phpDocTagRemover->removeTagValueFromNode($phpDocInfo, $classNameAndTagValueNode->getTagValueNode()); - return $property; - } -} diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 6be308f8f0f..d034cf6865e 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 = '16b60d0f84d824f2eaafadd52650bd4ea84798e5'; + public const PACKAGE_VERSION = '4457cfad19971c45ff953b238f456590bb6fd67f'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-06-08 15:51:40'; + public const RELEASE_DATE = '2023-06-08 15:34:21'; /** * @var int */ diff --git a/src/Kernel/RectorKernel.php b/src/Kernel/RectorKernel.php index 6dfbca9804e..630aef5c889 100644 --- a/src/Kernel/RectorKernel.php +++ b/src/Kernel/RectorKernel.php @@ -15,7 +15,7 @@ final class RectorKernel /** * @var string */ - private const CACHE_KEY = 'v69'; + private const CACHE_KEY = 'v70'; /** * @var \Symfony\Component\DependencyInjection\ContainerInterface|null */ diff --git a/vendor/autoload.php b/vendor/autoload.php index 2efcf4d9566..b10280be75c 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 ComposerAutoloaderInitf7a3ca1a50c7c647320f4111873f33ff::getLoader(); +return ComposerAutoloaderInit06a25b354321cf0b16cf6435b43f4254::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 8eaffc4b129..b9e7ed71312 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -2346,7 +2346,6 @@ return array( 'Rector\\Php80\\MatchAndRefactor\\StrStartsWithMatchAndRefactor\\StrposMatchAndRefactor' => $baseDir . '/rules/Php80/MatchAndRefactor/StrStartsWithMatchAndRefactor/StrposMatchAndRefactor.php', 'Rector\\Php80\\MatchAndRefactor\\StrStartsWithMatchAndRefactor\\SubstrMatchAndRefactor' => $baseDir . '/rules/Php80/MatchAndRefactor/StrStartsWithMatchAndRefactor/SubstrMatchAndRefactor.php', 'Rector\\Php80\\NodeAnalyzer\\AnnotationTargetResolver' => $baseDir . '/rules/Php80/NodeAnalyzer/AnnotationTargetResolver.php', - 'Rector\\Php80\\NodeAnalyzer\\EnumParamAnalyzer' => $baseDir . '/rules/Php80/NodeAnalyzer/EnumParamAnalyzer.php', 'Rector\\Php80\\NodeAnalyzer\\MatchSwitchAnalyzer' => $baseDir . '/rules/Php80/NodeAnalyzer/MatchSwitchAnalyzer.php', 'Rector\\Php80\\NodeAnalyzer\\PhpAttributeAnalyzer' => $baseDir . '/rules/Php80/NodeAnalyzer/PhpAttributeAnalyzer.php', 'Rector\\Php80\\NodeAnalyzer\\PromotedPropertyCandidateResolver' => $baseDir . '/rules/Php80/NodeAnalyzer/PromotedPropertyCandidateResolver.php', @@ -2384,7 +2383,6 @@ return array( 'Rector\\Php80\\ValueObjectFactory\\StrStartsWithFactory' => $baseDir . '/rules/Php80/ValueObjectFactory/StrStartsWithFactory.php', 'Rector\\Php80\\ValueObject\\AnnotationPropertyToAttributeClass' => $baseDir . '/rules/Php80/ValueObject/AnnotationPropertyToAttributeClass.php', 'Rector\\Php80\\ValueObject\\AnnotationToAttribute' => $baseDir . '/rules/Php80/ValueObject/AnnotationToAttribute.php', - 'Rector\\Php80\\ValueObject\\ClassNameAndTagValueNode' => $baseDir . '/rules/Php80/ValueObject/ClassNameAndTagValueNode.php', 'Rector\\Php80\\ValueObject\\CondAndExpr' => $baseDir . '/rules/Php80/ValueObject/CondAndExpr.php', 'Rector\\Php80\\ValueObject\\DoctrineTagAndAnnotationToAttribute' => $baseDir . '/rules/Php80/ValueObject/DoctrineTagAndAnnotationToAttribute.php', 'Rector\\Php80\\ValueObject\\MatchResult' => $baseDir . '/rules/Php80/ValueObject/MatchResult.php', @@ -2395,12 +2393,10 @@ return array( 'Rector\\Php81\\Enum\\AttributeName' => $baseDir . '/rules/Php81/Enum/AttributeName.php', 'Rector\\Php81\\NodeAnalyzer\\CoalesePropertyAssignMatcher' => $baseDir . '/rules/Php81/NodeAnalyzer/CoalesePropertyAssignMatcher.php', 'Rector\\Php81\\NodeAnalyzer\\ComplexNewAnalyzer' => $baseDir . '/rules/Php81/NodeAnalyzer/ComplexNewAnalyzer.php', - 'Rector\\Php81\\NodeAnalyzer\\EnumConstListClassDetector' => $baseDir . '/rules/Php81/NodeAnalyzer/EnumConstListClassDetector.php', 'Rector\\Php81\\NodeFactory\\EnumFactory' => $baseDir . '/rules/Php81/NodeFactory/EnumFactory.php', 'Rector\\Php81\\Rector\\Array_\\FirstClassCallableRector' => $baseDir . '/rules/Php81/Rector/Array_/FirstClassCallableRector.php', 'Rector\\Php81\\Rector\\ClassConst\\FinalizePublicClassConstantRector' => $baseDir . '/rules/Php81/Rector/ClassConst/FinalizePublicClassConstantRector.php', 'Rector\\Php81\\Rector\\ClassMethod\\NewInInitializerRector' => $baseDir . '/rules/Php81/Rector/ClassMethod/NewInInitializerRector.php', - 'Rector\\Php81\\Rector\\Class_\\ConstantListClassToEnumRector' => $baseDir . '/rules/Php81/Rector/Class_/ConstantListClassToEnumRector.php', 'Rector\\Php81\\Rector\\Class_\\MyCLabsClassToEnumRector' => $baseDir . '/rules/Php81/Rector/Class_/MyCLabsClassToEnumRector.php', 'Rector\\Php81\\Rector\\Class_\\SpatieEnumClassToEnumRector' => $baseDir . '/rules/Php81/Rector/Class_/SpatieEnumClassToEnumRector.php', 'Rector\\Php81\\Rector\\FuncCall\\NullToStrictStringFuncCallArgRector' => $baseDir . '/rules/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector.php', diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 7556e286d3d..1a7140955ec 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitf7a3ca1a50c7c647320f4111873f33ff +class ComposerAutoloaderInit06a25b354321cf0b16cf6435b43f4254 { private static $loader; @@ -22,17 +22,17 @@ class ComposerAutoloaderInitf7a3ca1a50c7c647320f4111873f33ff return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitf7a3ca1a50c7c647320f4111873f33ff', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit06a25b354321cf0b16cf6435b43f4254', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInitf7a3ca1a50c7c647320f4111873f33ff', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit06a25b354321cf0b16cf6435b43f4254', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit06a25b354321cf0b16cf6435b43f4254::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInit06a25b354321cf0b16cf6435b43f4254::$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 4c8c5c37613..6d4d20e1d4d 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff +class ComposerStaticInit06a25b354321cf0b16cf6435b43f4254 { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -2597,7 +2597,6 @@ class ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff 'Rector\\Php80\\MatchAndRefactor\\StrStartsWithMatchAndRefactor\\StrposMatchAndRefactor' => __DIR__ . '/../..' . '/rules/Php80/MatchAndRefactor/StrStartsWithMatchAndRefactor/StrposMatchAndRefactor.php', 'Rector\\Php80\\MatchAndRefactor\\StrStartsWithMatchAndRefactor\\SubstrMatchAndRefactor' => __DIR__ . '/../..' . '/rules/Php80/MatchAndRefactor/StrStartsWithMatchAndRefactor/SubstrMatchAndRefactor.php', 'Rector\\Php80\\NodeAnalyzer\\AnnotationTargetResolver' => __DIR__ . '/../..' . '/rules/Php80/NodeAnalyzer/AnnotationTargetResolver.php', - 'Rector\\Php80\\NodeAnalyzer\\EnumParamAnalyzer' => __DIR__ . '/../..' . '/rules/Php80/NodeAnalyzer/EnumParamAnalyzer.php', 'Rector\\Php80\\NodeAnalyzer\\MatchSwitchAnalyzer' => __DIR__ . '/../..' . '/rules/Php80/NodeAnalyzer/MatchSwitchAnalyzer.php', 'Rector\\Php80\\NodeAnalyzer\\PhpAttributeAnalyzer' => __DIR__ . '/../..' . '/rules/Php80/NodeAnalyzer/PhpAttributeAnalyzer.php', 'Rector\\Php80\\NodeAnalyzer\\PromotedPropertyCandidateResolver' => __DIR__ . '/../..' . '/rules/Php80/NodeAnalyzer/PromotedPropertyCandidateResolver.php', @@ -2635,7 +2634,6 @@ class ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff 'Rector\\Php80\\ValueObjectFactory\\StrStartsWithFactory' => __DIR__ . '/../..' . '/rules/Php80/ValueObjectFactory/StrStartsWithFactory.php', 'Rector\\Php80\\ValueObject\\AnnotationPropertyToAttributeClass' => __DIR__ . '/../..' . '/rules/Php80/ValueObject/AnnotationPropertyToAttributeClass.php', 'Rector\\Php80\\ValueObject\\AnnotationToAttribute' => __DIR__ . '/../..' . '/rules/Php80/ValueObject/AnnotationToAttribute.php', - 'Rector\\Php80\\ValueObject\\ClassNameAndTagValueNode' => __DIR__ . '/../..' . '/rules/Php80/ValueObject/ClassNameAndTagValueNode.php', 'Rector\\Php80\\ValueObject\\CondAndExpr' => __DIR__ . '/../..' . '/rules/Php80/ValueObject/CondAndExpr.php', 'Rector\\Php80\\ValueObject\\DoctrineTagAndAnnotationToAttribute' => __DIR__ . '/../..' . '/rules/Php80/ValueObject/DoctrineTagAndAnnotationToAttribute.php', 'Rector\\Php80\\ValueObject\\MatchResult' => __DIR__ . '/../..' . '/rules/Php80/ValueObject/MatchResult.php', @@ -2646,12 +2644,10 @@ class ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff 'Rector\\Php81\\Enum\\AttributeName' => __DIR__ . '/../..' . '/rules/Php81/Enum/AttributeName.php', 'Rector\\Php81\\NodeAnalyzer\\CoalesePropertyAssignMatcher' => __DIR__ . '/../..' . '/rules/Php81/NodeAnalyzer/CoalesePropertyAssignMatcher.php', 'Rector\\Php81\\NodeAnalyzer\\ComplexNewAnalyzer' => __DIR__ . '/../..' . '/rules/Php81/NodeAnalyzer/ComplexNewAnalyzer.php', - 'Rector\\Php81\\NodeAnalyzer\\EnumConstListClassDetector' => __DIR__ . '/../..' . '/rules/Php81/NodeAnalyzer/EnumConstListClassDetector.php', 'Rector\\Php81\\NodeFactory\\EnumFactory' => __DIR__ . '/../..' . '/rules/Php81/NodeFactory/EnumFactory.php', 'Rector\\Php81\\Rector\\Array_\\FirstClassCallableRector' => __DIR__ . '/../..' . '/rules/Php81/Rector/Array_/FirstClassCallableRector.php', 'Rector\\Php81\\Rector\\ClassConst\\FinalizePublicClassConstantRector' => __DIR__ . '/../..' . '/rules/Php81/Rector/ClassConst/FinalizePublicClassConstantRector.php', 'Rector\\Php81\\Rector\\ClassMethod\\NewInInitializerRector' => __DIR__ . '/../..' . '/rules/Php81/Rector/ClassMethod/NewInInitializerRector.php', - 'Rector\\Php81\\Rector\\Class_\\ConstantListClassToEnumRector' => __DIR__ . '/../..' . '/rules/Php81/Rector/Class_/ConstantListClassToEnumRector.php', 'Rector\\Php81\\Rector\\Class_\\MyCLabsClassToEnumRector' => __DIR__ . '/../..' . '/rules/Php81/Rector/Class_/MyCLabsClassToEnumRector.php', 'Rector\\Php81\\Rector\\Class_\\SpatieEnumClassToEnumRector' => __DIR__ . '/../..' . '/rules/Php81/Rector/Class_/SpatieEnumClassToEnumRector.php', 'Rector\\Php81\\Rector\\FuncCall\\NullToStrictStringFuncCallArgRector' => __DIR__ . '/../..' . '/rules/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector.php', @@ -3185,9 +3181,9 @@ class ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitf7a3ca1a50c7c647320f4111873f33ff::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit06a25b354321cf0b16cf6435b43f4254::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit06a25b354321cf0b16cf6435b43f4254::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit06a25b354321cf0b16cf6435b43f4254::$classMap; }, null, ClassLoader::class); }