From 967bbc6b59482cacabfafb011c0bcd38b124e083 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 11 Aug 2022 14:29:35 +0000 Subject: [PATCH] Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5 https://github.com/rectorphp/rector-src/commit/c0070b1d30a0040e3e58724ac1b3b339e168dcb5 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752) --- .../ConstExprClassNameDecorator.php | 2 +- .../PlainValueParser.php | 5 +- packages/Comments/CommentRemover.php | 4 +- .../Reflection/FamilyRelationsAnalyzer.php | 3 - .../FamilyTree/ValueObject/PropertyType.php | 6 - .../ArrayCallableMethodMatcher.php | 1 - .../NodeNestingScope/ParentScopeFinder.php | 3 - .../NameImportingPhpDocNodeVisitor.php | 5 +- .../PHPStanStaticTypeMapper.php | 1 - .../TypeMapper/ArrayShapeTypeMapper.php | 3 - .../TypeMapper/UnionTypeMapper.php | 6 - .../ExprParameterReflectionTypeCorrector.php | 3 +- .../RemovableAnnotationAnalyzer.php | 5 +- .../UnwrapableAnnotationAnalyzer.php | 5 +- .../ClassMethod/ArgumentAdderRector.php | 1 - .../ReplaceArgumentDefaultValueRector.php | 1 - ...tionArgumentDefaultValueReplacerRector.php | 3 +- rules/Arguments/ValueObject/ArgumentAdder.php | 3 +- .../Do_/DoWhileBreakFalseToIfElseRector.php | 2 +- .../SimplifyForeachToCoalescingRector.php | 5 +- ...ayKeysAndInArrayToArrayKeyExistsRector.php | 3 - ...aysTrueConditionSetInConstructorRector.php | 5 +- .../Rector/If_/ExplicitBoolCompareRector.php | 3 - ...xplicitMethodCallOverMagicGetSetRector.php | 10 +- .../FuncGetArgsToVariadicParamRector.php | 2 - .../ConsistentPregDelimiterRector.php | 3 +- ...VersionCompareFuncCallToConstantRector.php | 3 - rules/DeadCode/ConditionEvaluator.php | 6 - .../IsClassMethodUsedAnalyzer.php | 5 +- .../NodeManipulator/LivingCodeManipulator.php | 1 - .../RemoveUnusedVariableAssignRector.php | 5 +- .../RemoveDelegatingParentCallRector.php | 3 - .../Rector/If_/RemoveDeadInstanceOfRector.php | 2 +- .../Closure/UpgradeRectorConfigRector.php | 5 +- .../ReturnEarlyIfVariableRector.php | 10 +- .../InflectorSingularResolver.php | 5 +- rules/Naming/Matcher/ForeachMatcher.php | 3 - .../Matcher/VariableAndCallAssignMatcher.php | 3 - .../RemoveReferenceFromCallRector.php | 1 - rules/Php55/RegexMatcher.php | 3 - .../Rector/FuncCall/RandomFunctionRector.php | 3 +- .../NodeFactory/AnonymousFunctionFactory.php | 11 - .../Rector/Property/TypedPropertyRector.php | 3 - .../ResourceReturnToObject.php | 1 - ...AddParamBasedOnParentClassMethodRector.php | 3 - .../Class_/AnnotationToAttributeRector.php | 5 +- .../Rector/FunctionLike/UnionTypesRector.php | 4 - .../Rector/Identical/StrEndsWithRector.php | 4 - rules/Php80/ValueObject/CondAndExpr.php | 4 +- .../MyCLabsMethodCallToEnumConstRector.php | 3 - .../Property/ReadOnlyPropertyRector.php | 5 +- rules/Privatization/Naming/ConstantNaming.php | 5 +- .../NodeFactory/ExactCompareFactory.php | 16 - .../Empty_/DisallowedEmptyRuleFixerRector.php | 13 +- .../NodeAnalyzer/CallerParamMatcher.php | 4 +- .../ExclusiveNativeCallLikeReturnMatcher.php | 2 +- .../PHPStan/ObjectTypeSpecifier.php | 4 +- .../ReturnTypeFromReturnNewRector.php | 1 - .../ReturnTypeFromStrictNewArrayRector.php | 3 +- .../AlwaysStrictScalarExprAnalyzer.php | 5 +- .../TypeInferer/ReturnTypeInferer.php | 5 +- .../PhpParser/NodePrinterInterface.php | 2 +- src/NodeAnalyzer/CompactFuncCallAnalyzer.php | 3 - src/NodeAnalyzer/PropertyPresenceChecker.php | 9 - src/PhpParser/AstResolver.php | 13 - src/PhpParser/ClassLikeAstResolver.php | 3 - src/PhpParser/Comparing/NodeComparator.php | 6 +- src/PhpParser/Node/NodeFactory.php | 4 - .../Printer/BetterStandardPrinter.php | 2 +- src/Reflection/ReflectionResolver.php | 4 - src/ValueObject/Configuration.php | 5 +- src/ValueObject/Error/SystemError.php | 17 +- vendor/autoload.php | 2 +- vendor/composer/autoload_classmap.php | 274 ++++++++--------- vendor/composer/autoload_psr4.php | 3 +- vendor/composer/autoload_real.php | 14 +- vendor/composer/autoload_static.php | 288 +++++++++--------- vendor/composer/installed.json | 14 +- vendor/composer/installed.php | 2 +- .../src/GeneratedConfig.php | 2 +- .../src/NodeAnalyzer/AttributeFinder.php | 5 +- .../src/NodeAnalyzer/AttrinationFinder.php | 1 - .../src/NodeAnalyzer/TargetEntityResolver.php | 5 +- .../ColumnPropertyTypeResolver.php | 5 +- .../ToManyRelationPropertyTypeResolver.php | 5 +- ...tationToNamedArgumentConstructorRector.php | 5 +- ...nitializeDefaultEntityCollectionRector.php | 5 +- .../Rector/Class_/LoggableBehaviorRector.php | 5 +- .../TypedPropertyFromColumnTypeRector.php | 3 +- ...edPropertyFromToManyRelationTypeRector.php | 3 +- ...pedPropertyFromToOneRelationTypeRector.php | 3 +- .../rector/rector-downgrade-php/composer.json | 13 +- .../rector-downgrade-php/config/config.php | 3 +- .../docs/rector_rules_overview.md | 222 +++++++------- .../Rector/Dir/DirConstToFileConstRector.php | 0 .../Array_/ShortArrayToLongArrayRector.php | 0 .../Closure/DowngradeStaticClosureRector.php | 0 .../Closure/DowngradeThisInClosureRector.php | 4 +- .../DowngradeIndirectCallByArrayRector.php | 0 ...DowngradeCallableTypeDeclarationRector.php | 4 +- .../LNumber/DowngradeBinaryNotationRector.php | 0 .../DowngradeInstanceMethodCallRector.php | 0 .../DowngradeClassConstantToStringRector.php | 0 .../Foreach_/DowngradeForeachListRector.php | 0 .../FuncCall/DowngradeBoolvalRector.php | 5 +- ...aryExpressionArgsToEmptyAndIssetRector.php | 2 +- .../NodeManipulator/ArgManipulator.php | 0 .../NodeManipulator/UnpackedArgList.php | 0 .../DowngradeArgumentUnpackingRector.php | 0 .../DowngradeArrayFilterUseConstantRector.php | 0 ...adeExponentialAssignmentOperatorRector.php | 0 .../DowngradeExponentialOperatorRector.php | 0 .../Use_/DowngradeUseFunctionRector.php | 0 .../NodeFactory/ClassFromAnonymousFactory.php | 0 .../DowngradeParentTypeDeclarationRector.php | 4 +- .../DowngradeSelfTypeDeclarationRector.php | 4 +- .../Coalesce/DowngradeNullCoalesceRector.php | 0 .../DowngradeStrictTypeDeclarationRector.php | 0 ...cessarilyParenthesizedExpressionRector.php | 0 .../DowngradeDefineArrayConstantRector.php | 0 .../FuncCall/DowngradeDirnameLevelsRector.php | 0 ...owngradeSessionStartArrayOptionsRector.php | 0 ...ncallableValueCallToCallUserFuncRector.php | 0 .../DowngradeScalarTypeDeclarationRector.php | 10 +- ...owngradeThrowableTypeDeclarationRector.php | 4 +- .../GroupUse/SplitGroupedUseImportsRector.php | 0 .../DowngradeInstanceofThrowableRector.php | 0 .../MethodCall/DowngradeClosureCallRector.php | 0 .../DowngradeMethodCallOnCloneRector.php | 0 .../New_/DowngradeAnonymousClassRector.php | 0 .../Spaceship/DowngradeSpaceshipRector.php | 0 .../DowngradeCatchThrowableRector.php | 0 .../WrappedInParenthesesAnalyzer.php | 0 ...ymmetricArrayDestructuringToListRector.php | 0 ...DowngradeClassConstantVisibilityRector.php | 0 .../DowngradePhp71JsonConstRector.php | 0 .../FuncCall/DowngradeIsIterableRector.php | 4 +- ...adeIterablePseudoTypeDeclarationRector.php | 4 +- ...DowngradeNullableTypeDeclarationRector.php | 6 +- .../DowngradeVoidTypeDeclarationRector.php | 4 +- .../List_/DowngradeKeysInListRector.php | 26 +- .../DowngradeClosureFromCallableRector.php | 0 ...radeNegativeStringOffsetToStrlenRector.php | 0 ...wngradePipeToMultiCatchExceptionRector.php | 0 .../NodeAnalyzer/BuiltInMethodAnalyzer.php | 0 .../FunctionExistsFunCallAnalyzer.php | 5 +- ...errideFromAnonymousClassMethodAnalyzer.php | 2 + .../NodeAnalyzer/RegexFuncAnalyzer.php | 0 .../NodeAnalyzer/SealedClassAnalyzer.php | 0 .../NodeManipulator/BitwiseFlagCleaner.php | 0 .../NodeManipulator/JsonConstCleaner.php | 5 +- .../PhpDoc/NativeParamToPhpDocDecorator.php | 22 +- .../DowngradeParameterTypeWideningRector.php | 0 .../DowngradePhp72JsonConstRector.php | 0 ...radeJsonDecodeNullAssociativeArgRector.php | 0 ...gradePregUnmatchedAsNullConstantRector.php | 30 +- .../FuncCall/DowngradeStreamIsattyRector.php | 0 .../DowngradeObjectTypeDeclarationRector.php | 4 +- .../snippet/isatty_closure.php.inc | 0 .../DowngradePhp73JsonConstRector.php | 0 .../DowngradeArrayKeyFirstLastRector.php | 0 .../FuncCall/DowngradeIsCountableRector.php | 0 ...adeTrailingCommasInFunctionCallsRector.php | 0 ...SetCookieOptionsArrayToArgumentsRector.php | 0 ...DowngradeListReferenceAssignmentRector.php | 0 .../DowngradeFlexibleHeredocSyntaxRector.php | 0 .../Tokenizer/FollowedByCommaAnalyzer.php | 0 .../Array_/DowngradeArraySpreadRector.php | 2 + ...ArrowFunctionToAnonymousFunctionRector.php | 0 ...wngradeContravariantArgumentTypeRector.php | 0 .../DowngradeCovariantReturnTypeRector.php | 2 + .../DowngradeNullCoalescingOperatorRector.php | 0 ...deArrayMergeCallWithoutArgumentsRector.php | 0 .../DowngradeStripTagsCallWithArrayRector.php | 0 ...ngradeFreadFwriteFalsyToNegationRector.php | 0 ...dePreviouslyImplementedInterfaceRector.php | 0 ...DowngradeNumericLiteralSeparatorRector.php | 0 .../DowngradeReflectionGetTypeRector.php | 10 +- .../Property/DowngradeTypedPropertyRector.php | 0 .../NodeAnalyzer/EnumAnalyzer.php | 0 .../NodeAnalyzer/NamedToUnnamedArgs.php | 0 .../NodeAnalyzer/UnnamedArgumentResolver.php | 0 ...owngradeDereferenceableOperationRector.php | 0 .../DowngradeNonCapturingCatchesRector.php | 0 ...DowngradeClassOnObjectToGetClassRector.php | 0 ...radeAbstractPrivateMethodInTraitRector.php | 4 +- ...siveDirectoryIteratorHasChildrenRector.php | 0 .../DowngradeStaticTypeDeclarationRector.php | 4 +- ...ngradeStringReturnTypeOnToStringRector.php | 0 ...owngradeTrailingCommasInParamUseRector.php | 6 +- .../DowngradeAttributeToAnnotationRector.php | 0 .../DowngradePropertyPromotionRector.php | 0 ...DowngradeEnumToConstantListClassRector.php | 1 - .../DowngradeMatchToSwitchRector.php | 1 - .../Expression/DowngradeThrowExprRector.php | 0 ...gradeArrayFilterNullableCallbackRector.php | 1 - ...DowngradeNumberFormatNoFourthArgRector.php | 0 .../FuncCall/DowngradeStrContainsRector.php | 0 .../FuncCall/DowngradeStrEndsWithRector.php | 0 .../FuncCall/DowngradeStrStartsWithRector.php | 0 .../DowngradeMixedTypeDeclarationRector.php | 4 +- .../DowngradeUnionTypeDeclarationRector.php | 6 +- ...gradePhp80ResourceReturnToObjectRector.php | 0 .../DowngradeNamedArgumentRector.php | 3 +- ...eflectionClassGetConstantsFilterRector.php | 0 ...DowngradeReflectionGetAttributesRector.php | 6 +- ...eflectionPropertyGetDefaultValueRector.php | 0 ...gradeArbitraryExpressionsSupportRector.php | 0 ...wngradeNullsafeToTernaryOperatorRector.php | 2 + .../DowngradeMixedTypeTypedPropertyRector.php | 0 .../DowngradeUnionTypeTypedPropertyRector.php | 0 .../StaticCall/DowngradePhpTokenRector.php | 0 .../DefaultParameterValueResolver.php | 5 +- .../SimplePhpParameterReflection.php | 0 .../DowngradeAttributeToAnnotation.php | 0 .../NodeAnalyzer/ArraySpreadAnalyzer.php | 0 .../ArrayMergeFromArraySpreadFactory.php | 29 +- .../ObjectToResourceReturn.php | 0 .../DowngradeArraySpreadStringKeyRector.php | 2 + ...gradeFinalizePublicClassConstantRector.php | 0 .../FuncCall/DowngradeArrayIsListRector.php | 0 .../FuncCall/DowngradeEnumExistsRector.php | 0 ...owngradeFirstClassCallableSyntaxRector.php | 0 .../DowngradeNeverTypeDeclarationRector.php | 4 +- .../DowngradeNewInInitializerRector.php | 0 .../DowngradePureIntersectionTypeRector.php | 6 +- ...gradePhp81ResourceReturnToObjectRector.php | 0 .../DowngradeReadonlyPropertyRector.php | 0 .../snippet/array_is_list_closure.php.inc | 0 .../snippet/enum_exists_closure.php.inc | 0 .../Class_/DowngradeReadonlyClassRector.php | 0 .../PhpDocFromTypeDeclarationDecorator.php | 257 ++++++++++++++++ .../Set/ValueObject/DowngradeLevelSetList.php | 3 + .../Set/ValueObject/DowngradeSetList.php | 3 + .../ClassMethodWillChangeReturnType.php | 31 ++ .../MinutesToSecondsInCacheRector.php | 1 - .../AddRemovedDefaultValuesRector.php | 1 - ...lsParameterToSpecificMethodsTypeRector.php | 3 - .../AssertFalseStrposToContainsRector.php | 1 - .../RouteRequiredParamNameToTypesResolver.php | 1 - .../src/NodeFactory/ThisRenderFactory.php | 5 +- .../BinaryOp/ResponseStatusCodeRector.php | 20 +- .../Rector/ClassMethod/GetRequestRector.php | 5 +- ...izationCheckerIsGrantedExtractorRector.php | 2 - .../CascadeValidationFormBuilderRector.php | 5 +- ...LiteralGetToRequestClassConstantRector.php | 10 +- vendor/symfony/config/Definition/BaseNode.php | 1 - .../Definition/Builder/NodeDefinition.php | 1 - vendor/symfony/console/Input/ArgvInput.php | 1 - vendor/symfony/console/Input/ArrayInput.php | 1 - .../symfony/console/Input/InputArgument.php | 1 - vendor/symfony/console/Input/InputOption.php | 1 - vendor/symfony/console/Question/Question.php | 1 - .../Attribute/Autoconfigure.php | 4 - .../Compiler/PriorityTaggedServiceTrait.php | 3 - .../dependency-injection/Container.php | 3 - .../ContainerInterface.php | 3 - .../dependency-injection/Definition.php | 1 - .../Loader/YamlFileLoader.php | 1 - .../ParameterBag/ContainerBag.php | 1 - .../EnvPlaceholderParameterBag.php | 1 - .../ParameterBag/FrozenParameterBag.php | 1 - .../ParameterBag/ParameterBag.php | 2 - .../ParameterBag/ParameterBagInterface.php | 2 - .../symfony/polyfill-mbstring/bootstrap80.php | 9 - .../SimpleCallableNodeTraverser.php | 2 +- .../src/NodeVisitor/CallableNodeVisitor.php | 3 - .../Contract/PhpDocNodeVisitorInterface.php | 3 - .../AbstractPhpDocNodeVisitor.php | 3 - .../CallablePhpDocNodeVisitor.php | 3 - .../src/Reflection/ReflectionParser.php | 5 +- .../src/CpuCoreCountProvider.php | 5 +- 272 files changed, 917 insertions(+), 942 deletions(-) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php (95%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php (92%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php (95%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php (95%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp56/NodeManipulator/ArgManipulator.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp56/NodeManipulator/UnpackedArgList.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php (94%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php (93%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php (91%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php (92%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php (93%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php (93%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php (94%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php (91%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php (88%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php (94%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php (96%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/NodeManipulator/JsonConstCleaner.php (94%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php (81%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php (88%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php (92%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp72/snippet/isatty_closure.php.inc (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php (97%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php (98%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php (87%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php (94%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php (93%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php (96%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php (97%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php (98%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php (98%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php (92%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php (90%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php (97%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php (91%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php (96%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Reflection/DefaultParameterValueResolver.php (95%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/Reflection/SimplePhpParameterReflection.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php (88%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php (97%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php (91%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php (90%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/snippet/array_is_list_closure.php.inc (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp81/snippet/enum_exists_closure.php.inc (100%) rename vendor/rector/rector-downgrade-php/{src => rules}/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php (100%) create mode 100644 vendor/rector/rector-downgrade-php/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php rename vendor/rector/rector-downgrade-php/{packages => src}/Set/ValueObject/DowngradeLevelSetList.php (99%) rename vendor/rector/rector-downgrade-php/{packages => src}/Set/ValueObject/DowngradeSetList.php (98%) create mode 100644 vendor/rector/rector-downgrade-php/src/ValueObject/ClassMethodWillChangeReturnType.php diff --git a/packages/BetterPhpDocParser/PhpDocParser/ConstExprClassNameDecorator.php b/packages/BetterPhpDocParser/PhpDocParser/ConstExprClassNameDecorator.php index 5fa77be31a4..90d111c0344 100644 --- a/packages/BetterPhpDocParser/PhpDocParser/ConstExprClassNameDecorator.php +++ b/packages/BetterPhpDocParser/PhpDocParser/ConstExprClassNameDecorator.php @@ -35,7 +35,7 @@ final class ConstExprClassNameDecorator implements PhpDocNodeDecoratorInterface } public function decorate(PhpDocNode $phpDocNode, PhpNode $phpNode) : void { - $this->phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function (Node $node) use($phpNode) { + $this->phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function (Node $node) use($phpNode) : ?\PHPStan\PhpDocParser\Ast\Node { if (!$node instanceof ConstExprNode) { return null; } diff --git a/packages/BetterPhpDocParser/PhpDocParser/StaticDoctrineAnnotationParser/PlainValueParser.php b/packages/BetterPhpDocParser/PhpDocParser/StaticDoctrineAnnotationParser/PlainValueParser.php index b2153b4f263..e77c6fc083f 100644 --- a/packages/BetterPhpDocParser/PhpDocParser/StaticDoctrineAnnotationParser/PlainValueParser.php +++ b/packages/BetterPhpDocParser/PhpDocParser/StaticDoctrineAnnotationParser/PlainValueParser.php @@ -113,10 +113,7 @@ final class PlainValueParser $identifierTypeNode->setAttribute(PhpDocAttributeKey::RESOLVED_CLASS, $fullyQualifiedAnnotationClass); return new DoctrineAnnotationTagValueNode($identifierTypeNode, $annotationShortName, $values); } - /** - * @return \PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprNode|null - */ - private function matchConstantValue(string $currentTokenValue) + private function matchConstantValue(string $currentTokenValue) : ?\PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprNode { if (\strtolower($currentTokenValue) === 'false') { return new ConstExprFalseNode(); diff --git a/packages/Comments/CommentRemover.php b/packages/Comments/CommentRemover.php index 0152179cb34..e9d49289ef1 100644 --- a/packages/Comments/CommentRemover.php +++ b/packages/Comments/CommentRemover.php @@ -20,10 +20,10 @@ final class CommentRemover $this->commentRemovingNodeTraverser = $commentRemovingNodeTraverser; } /** - * @param mixed[]|\PhpParser\Node|null $node + * @param Node[]|Node|null $node * @return Node[]|null */ - public function removeFromNode($node) + public function removeFromNode($node) : ?array { if ($node === null) { return null; diff --git a/packages/FamilyTree/Reflection/FamilyRelationsAnalyzer.php b/packages/FamilyTree/Reflection/FamilyRelationsAnalyzer.php index 89250e19e83..9fa24bcf714 100644 --- a/packages/FamilyTree/Reflection/FamilyRelationsAnalyzer.php +++ b/packages/FamilyTree/Reflection/FamilyRelationsAnalyzer.php @@ -85,9 +85,6 @@ final class FamilyRelationsAnalyzer } return $childrenClassReflections; } - /** - * @param \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null $propertyTypeNode - */ public function getPossibleUnionPropertyType(Property $property, Type $varType, Scope $scope, $propertyTypeNode) : PropertyType { if ($varType instanceof UnionType) { diff --git a/packages/FamilyTree/ValueObject/PropertyType.php b/packages/FamilyTree/ValueObject/PropertyType.php index e7fb76c8888..30dcd322dfb 100644 --- a/packages/FamilyTree/ValueObject/PropertyType.php +++ b/packages/FamilyTree/ValueObject/PropertyType.php @@ -18,9 +18,6 @@ final class PropertyType * @var \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null */ private $propertyTypeNode; - /** - * @param \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null $propertyTypeNode - */ public function __construct(Type $varType, $propertyTypeNode) { $this->varType = $varType; @@ -30,9 +27,6 @@ final class PropertyType { return $this->varType; } - /** - * @return \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null - */ public function getPropertyTypeNode() { return $this->propertyTypeNode; diff --git a/packages/NodeCollector/NodeAnalyzer/ArrayCallableMethodMatcher.php b/packages/NodeCollector/NodeAnalyzer/ArrayCallableMethodMatcher.php index 6c6bc76041a..e65771318b7 100644 --- a/packages/NodeCollector/NodeAnalyzer/ArrayCallableMethodMatcher.php +++ b/packages/NodeCollector/NodeAnalyzer/ArrayCallableMethodMatcher.php @@ -70,7 +70,6 @@ final class ArrayCallableMethodMatcher * Returns ArrayCallableDynamicMethod object when unknown method of callable used, eg: [$this, $other] * @see https://github.com/rectorphp/rector-src/pull/908 * @see https://github.com/rectorphp/rector-src/pull/909 - * @return null|\Rector\NodeCollector\ValueObject\ArrayCallableDynamicMethod|\Rector\NodeCollector\ValueObject\ArrayCallable */ public function match(Array_ $array) { diff --git a/packages/NodeNestingScope/ParentScopeFinder.php b/packages/NodeNestingScope/ParentScopeFinder.php index 3f40028619a..331b5383e6e 100644 --- a/packages/NodeNestingScope/ParentScopeFinder.php +++ b/packages/NodeNestingScope/ParentScopeFinder.php @@ -21,9 +21,6 @@ final class ParentScopeFinder { $this->betterNodeFinder = $betterNodeFinder; } - /** - * @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Namespace_|\PhpParser\Node\Expr\Closure|null - */ public function find(Node $node) { return $this->betterNodeFinder->findParentByTypes($node, [Closure::class, Function_::class, ClassMethod::class, Class_::class, Namespace_::class]); diff --git a/packages/NodeTypeResolver/PhpDocNodeVisitor/NameImportingPhpDocNodeVisitor.php b/packages/NodeTypeResolver/PhpDocNodeVisitor/NameImportingPhpDocNodeVisitor.php index 7ae894f3983..b1261454a72 100644 --- a/packages/NodeTypeResolver/PhpDocNodeVisitor/NameImportingPhpDocNodeVisitor.php +++ b/packages/NodeTypeResolver/PhpDocNodeVisitor/NameImportingPhpDocNodeVisitor.php @@ -193,10 +193,7 @@ final class NameImportingPhpDocNodeVisitor extends AbstractPhpDocNodeVisitor $doctrineAnnotationTagValueNode->identifierTypeNode = $shortentedIdentifierTypeNode; $doctrineAnnotationTagValueNode->markAsChanged(); } - /** - * @return \Rector\BetterPhpDocParser\PhpDoc\SpacelessPhpDocTagNode|null - */ - private function enterSpacelessPhpDocTagNode(SpacelessPhpDocTagNode $spacelessPhpDocTagNode) + private function enterSpacelessPhpDocTagNode(SpacelessPhpDocTagNode $spacelessPhpDocTagNode) : ?\Rector\BetterPhpDocParser\PhpDoc\SpacelessPhpDocTagNode { if (!$spacelessPhpDocTagNode->value instanceof DoctrineAnnotationTagValueNode) { return null; diff --git a/packages/PHPStanStaticTypeMapper/PHPStanStaticTypeMapper.php b/packages/PHPStanStaticTypeMapper/PHPStanStaticTypeMapper.php index 843767535d3..694d0f5afac 100644 --- a/packages/PHPStanStaticTypeMapper/PHPStanStaticTypeMapper.php +++ b/packages/PHPStanStaticTypeMapper/PHPStanStaticTypeMapper.php @@ -52,7 +52,6 @@ final class PHPStanStaticTypeMapper } /** * @param TypeKind::* $typeKind - * @return \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null */ public function mapToPhpParserNode(Type $type, string $typeKind) { diff --git a/packages/PHPStanStaticTypeMapper/TypeMapper/ArrayShapeTypeMapper.php b/packages/PHPStanStaticTypeMapper/TypeMapper/ArrayShapeTypeMapper.php index f3c5d90a816..63655d9310b 100644 --- a/packages/PHPStanStaticTypeMapper/TypeMapper/ArrayShapeTypeMapper.php +++ b/packages/PHPStanStaticTypeMapper/TypeMapper/ArrayShapeTypeMapper.php @@ -31,9 +31,6 @@ final class ArrayShapeTypeMapper $this->phpStanStaticTypeMapper = $phpStanStaticTypeMapper; $this->reflectionProvider = $reflectionProvider; } - /** - * @return \PHPStan\PhpDocParser\Ast\Type\ArrayShapeNode|\PHPStan\Type\ArrayType|null - */ public function mapConstantArrayType(ConstantArrayType $constantArrayType) { // empty array diff --git a/packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php b/packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php index f760f551d95..53981c5670b 100644 --- a/packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php +++ b/packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php @@ -168,9 +168,6 @@ final class UnionTypeMapper implements TypeMapperInterface } return $unionTypeAnalysis->hasArray(); } - /** - * @return \PhpParser\Node\Name|\PhpParser\Node\NullableType|null - */ private function matchArrayTypes(UnionType $unionType) { $unionTypeAnalysis = $this->unionTypeAnalyzer->analyseForNullableAndIterable($unionType); @@ -293,9 +290,6 @@ final class UnionTypeMapper implements TypeMapperInterface } return new PhpParserUnionType($phpParserUnionedTypes); } - /** - * @return \PHPStan\Type\UnionType|\PHPStan\Type\TypeWithClassName|null - */ private function resolveCompatibleObjectCandidate(UnionType $unionType) { if ($this->doctrineTypeAnalyzer->isDoctrineCollectionWithIterableUnionType($unionType)) { diff --git a/packages/PhpAttribute/NodeAnalyzer/ExprParameterReflectionTypeCorrector.php b/packages/PhpAttribute/NodeAnalyzer/ExprParameterReflectionTypeCorrector.php index 36286a347c8..d1783e5f337 100644 --- a/packages/PhpAttribute/NodeAnalyzer/ExprParameterReflectionTypeCorrector.php +++ b/packages/PhpAttribute/NodeAnalyzer/ExprParameterReflectionTypeCorrector.php @@ -71,10 +71,9 @@ final class ExprParameterReflectionTypeCorrector } /** * @param string|int $name - * @return \PhpParser\Node\Expr|null * @param mixed $item */ - private function correctItemByParameterReflection($name, $item, ParameterReflection $parameterReflection) + private function correctItemByParameterReflection($name, $item, ParameterReflection $parameterReflection) : ?\PhpParser\Node\Expr { if (!$item instanceof Expr) { return null; diff --git a/packages/PhpAttribute/RemovableAnnotationAnalyzer.php b/packages/PhpAttribute/RemovableAnnotationAnalyzer.php index edf39d14d6d..2d6ffbc520c 100644 --- a/packages/PhpAttribute/RemovableAnnotationAnalyzer.php +++ b/packages/PhpAttribute/RemovableAnnotationAnalyzer.php @@ -36,10 +36,7 @@ final class RemovableAnnotationAnalyzer } return \in_array($annotationClassName, self::REMOVABLE_ANNOTATION_CLASSES, \true); } - /** - * @return \Rector\Php80\ValueObject\AnnotationToAttribute|null - */ - private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) + private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?\Rector\Php80\ValueObject\AnnotationToAttribute { foreach ($this->annotationsToAttributes as $annotationToAttribute) { if (!$doctrineAnnotationTagValueNode->hasClassName($annotationToAttribute->getTag())) { diff --git a/packages/PhpAttribute/UnwrapableAnnotationAnalyzer.php b/packages/PhpAttribute/UnwrapableAnnotationAnalyzer.php index c43e4162948..40f8fd64b1f 100644 --- a/packages/PhpAttribute/UnwrapableAnnotationAnalyzer.php +++ b/packages/PhpAttribute/UnwrapableAnnotationAnalyzer.php @@ -43,10 +43,7 @@ final class UnwrapableAnnotationAnalyzer } return \true; } - /** - * @return \Rector\Php80\ValueObject\AnnotationToAttribute|null - */ - private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) + private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?\Rector\Php80\ValueObject\AnnotationToAttribute { foreach ($this->annotationsToAttributes as $annotationToAttribute) { if (!$doctrineAnnotationTagValueNode->hasClassName($annotationToAttribute->getTag())) { diff --git a/rules/Arguments/Rector/ClassMethod/ArgumentAdderRector.php b/rules/Arguments/Rector/ClassMethod/ArgumentAdderRector.php index bcb136fedd5..265c77f8076 100644 --- a/rules/Arguments/Rector/ClassMethod/ArgumentAdderRector.php +++ b/rules/Arguments/Rector/ClassMethod/ArgumentAdderRector.php @@ -105,7 +105,6 @@ CODE_SAMPLE } /** * @param MethodCall|StaticCall|ClassMethod $node - * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Stmt\ClassMethod|null */ public function refactor(Node $node) { diff --git a/rules/Arguments/Rector/ClassMethod/ReplaceArgumentDefaultValueRector.php b/rules/Arguments/Rector/ClassMethod/ReplaceArgumentDefaultValueRector.php index ee122064fd8..d78fd1a47c3 100644 --- a/rules/Arguments/Rector/ClassMethod/ReplaceArgumentDefaultValueRector.php +++ b/rules/Arguments/Rector/ClassMethod/ReplaceArgumentDefaultValueRector.php @@ -53,7 +53,6 @@ CODE_SAMPLE } /** * @param MethodCall|StaticCall|ClassMethod $node - * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Stmt\ClassMethod|null */ public function refactor(Node $node) { diff --git a/rules/Arguments/Rector/FuncCall/FunctionArgumentDefaultValueReplacerRector.php b/rules/Arguments/Rector/FuncCall/FunctionArgumentDefaultValueReplacerRector.php index 29563ae0b4c..8a64a4b5c35 100644 --- a/rules/Arguments/Rector/FuncCall/FunctionArgumentDefaultValueReplacerRector.php +++ b/rules/Arguments/Rector/FuncCall/FunctionArgumentDefaultValueReplacerRector.php @@ -52,9 +52,8 @@ CODE_SAMPLE } /** * @param FuncCall $node - * @return \PhpParser\Node\Expr\FuncCall|null */ - public function refactor(Node $node) + public function refactor(Node $node) : ?\PhpParser\Node\Expr\FuncCall { $hasChanged = \false; foreach ($this->replacedArguments as $replacedArgument) { diff --git a/rules/Arguments/ValueObject/ArgumentAdder.php b/rules/Arguments/ValueObject/ArgumentAdder.php index e8e33dc246d..4e37a3383fd 100644 --- a/rules/Arguments/ValueObject/ArgumentAdder.php +++ b/rules/Arguments/ValueObject/ArgumentAdder.php @@ -44,9 +44,8 @@ final class ArgumentAdder private $scope; /** * @param mixed|null $argumentDefaultValue - * @param \PHPStan\Type\Type|null $argumentType */ - public function __construct(string $class, string $method, int $position, ?string $argumentName = null, $argumentDefaultValue = null, $argumentType = null, ?string $scope = null) + public function __construct(string $class, string $method, int $position, ?string $argumentName = null, $argumentDefaultValue = null, ?\PHPStan\Type\Type $argumentType = null, ?string $scope = null) { $this->class = $class; $this->method = $method; diff --git a/rules/CodeQuality/Rector/Do_/DoWhileBreakFalseToIfElseRector.php b/rules/CodeQuality/Rector/Do_/DoWhileBreakFalseToIfElseRector.php index 3f6e106c77c..dc03e9c9847 100644 --- a/rules/CodeQuality/Rector/Do_/DoWhileBreakFalseToIfElseRector.php +++ b/rules/CodeQuality/Rector/Do_/DoWhileBreakFalseToIfElseRector.php @@ -50,7 +50,7 @@ CODE_SAMPLE * @param Do_ $node * @return Stmt[]|null */ - public function refactor(Node $node) + public function refactor(Node $node) : ?array { if (!$this->valueResolver->isFalse($node->cond)) { return null; diff --git a/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector.php b/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector.php index 5e4f2d480a3..d55d7a6f28f 100644 --- a/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector.php +++ b/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector.php @@ -112,10 +112,7 @@ CODE_SAMPLE return null; }); } - /** - * @return \PhpParser\Node\Stmt\Return_|null - */ - private function processForeachNodeWithReturnInside(Foreach_ $foreach, Return_ $return) + private function processForeachNodeWithReturnInside(Foreach_ $foreach, Return_ $return) : ?\PhpParser\Node\Stmt\Return_ { if (!$this->nodeComparator->areNodesEqual($foreach->valueVar, $return->expr)) { return null; diff --git a/rules/CodeQuality/Rector/FuncCall/ArrayKeysAndInArrayToArrayKeyExistsRector.php b/rules/CodeQuality/Rector/FuncCall/ArrayKeysAndInArrayToArrayKeyExistsRector.php index dd6f704f3ee..bac97b994db 100644 --- a/rules/CodeQuality/Rector/FuncCall/ArrayKeysAndInArrayToArrayKeyExistsRector.php +++ b/rules/CodeQuality/Rector/FuncCall/ArrayKeysAndInArrayToArrayKeyExistsRector.php @@ -90,9 +90,6 @@ CODE_SAMPLE $arguments = [$inArrayFuncCall->args[0], $arrayKeysFuncCall->args[0]]; return new FuncCall(new Name('array_key_exists'), $arguments); } - /** - * @return null|\PhpParser\Node|\PhpParser\Node\FunctionLike - */ private function findPreviousAssignToArrayKeys(FuncCall $funcCall, Expr $expr) { return $this->betterNodeFinder->findFirstPrevious($funcCall, function (Node $node) use($expr) : bool { diff --git a/rules/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector.php b/rules/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector.php index 3ddedcf607e..14ba5318aec 100644 --- a/rules/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector.php +++ b/rules/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector.php @@ -104,10 +104,7 @@ CODE_SAMPLE } return $ifStmt->stmts; } - /** - * @return \PhpParser\Node\Stmt\If_|null - */ - private function matchTruableIf(If_ $if) + private function matchTruableIf(If_ $if) : ?\PhpParser\Node\Stmt\If_ { // just one if if ($if->elseifs !== []) { diff --git a/rules/CodeQuality/Rector/If_/ExplicitBoolCompareRector.php b/rules/CodeQuality/Rector/If_/ExplicitBoolCompareRector.php index e70db6d5674..c98890326d0 100644 --- a/rules/CodeQuality/Rector/If_/ExplicitBoolCompareRector.php +++ b/rules/CodeQuality/Rector/If_/ExplicitBoolCompareRector.php @@ -153,9 +153,6 @@ CODE_SAMPLE } return null; } - /** - * @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BinaryOp\Greater|null - */ private function resolveCount(bool $isNegated, FuncCall $funcCall) { $countedType = $this->getType($funcCall->args[0]->value); diff --git a/rules/CodeQuality/Rector/PropertyFetch/ExplicitMethodCallOverMagicGetSetRector.php b/rules/CodeQuality/Rector/PropertyFetch/ExplicitMethodCallOverMagicGetSetRector.php index 29f3a8605a2..f855d2e1c31 100644 --- a/rules/CodeQuality/Rector/PropertyFetch/ExplicitMethodCallOverMagicGetSetRector.php +++ b/rules/CodeQuality/Rector/PropertyFetch/ExplicitMethodCallOverMagicGetSetRector.php @@ -113,10 +113,7 @@ CODE_SAMPLE } return $parentNode->var === $propertyFetch; } - /** - * @return \PhpParser\Node\Expr\MethodCall|null - */ - private function refactorPropertyFetch(PropertyFetch $propertyFetch, Scope $scope) + private function refactorPropertyFetch(PropertyFetch $propertyFetch, Scope $scope) : ?\PhpParser\Node\Expr\MethodCall { $callerType = $this->getType($propertyFetch->var); if (!$callerType instanceof ObjectType) { @@ -150,10 +147,7 @@ CODE_SAMPLE } return null; } - /** - * @return \PhpParser\Node\Expr\MethodCall|null - */ - private function refactorMagicSet(Expr $expr, PropertyFetch $propertyFetch, Scope $scope) + private function refactorMagicSet(Expr $expr, PropertyFetch $propertyFetch, Scope $scope) : ?\PhpParser\Node\Expr\MethodCall { $propertyCallerType = $this->getType($propertyFetch->var); if (!$propertyCallerType instanceof ObjectType) { diff --git a/rules/CodingStyle/Rector/ClassMethod/FuncGetArgsToVariadicParamRector.php b/rules/CodingStyle/Rector/ClassMethod/FuncGetArgsToVariadicParamRector.php index 964494672fd..9438a44586a 100644 --- a/rules/CodingStyle/Rector/ClassMethod/FuncGetArgsToVariadicParamRector.php +++ b/rules/CodingStyle/Rector/ClassMethod/FuncGetArgsToVariadicParamRector.php @@ -80,7 +80,6 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure $node - * @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|null */ private function applyVariadicParams($node, string $variableName) { @@ -94,7 +93,6 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure $node - * @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|null */ private function removeOrChangeAssignToVariable($node, Assign $assign, string $variableName) { diff --git a/rules/CodingStyle/Rector/FuncCall/ConsistentPregDelimiterRector.php b/rules/CodingStyle/Rector/FuncCall/ConsistentPregDelimiterRector.php index 827bf76e804..63e1e99f417 100644 --- a/rules/CodingStyle/Rector/FuncCall/ConsistentPregDelimiterRector.php +++ b/rules/CodingStyle/Rector/FuncCall/ConsistentPregDelimiterRector.php @@ -171,9 +171,8 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\StaticCall $node - * @return \PhpParser\Node|null */ - private function refactorArgument($node, Arg $arg) + private function refactorArgument($node, Arg $arg) : ?\PhpParser\Node { if (!$arg->value instanceof String_) { return null; diff --git a/rules/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector.php b/rules/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector.php index 8231a3a0d90..7ebc444e07e 100644 --- a/rules/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector.php +++ b/rules/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector.php @@ -115,9 +115,6 @@ CODE_SAMPLE } return $expr->name->toString() === 'PHP_VERSION'; } - /** - * @return \PhpParser\Node\Expr\ConstFetch|\PhpParser\Node\Scalar\LNumber|null - */ private function getNewNodeForArg(Expr $expr) { if ($this->isPhpVersionConstant($expr)) { diff --git a/rules/DeadCode/ConditionEvaluator.php b/rules/DeadCode/ConditionEvaluator.php index 53cd3f0c9a8..69c535be384 100644 --- a/rules/DeadCode/ConditionEvaluator.php +++ b/rules/DeadCode/ConditionEvaluator.php @@ -23,9 +23,6 @@ final class ConditionEvaluator { $this->phpVersionProvider = $phpVersionProvider; } - /** - * @return bool|int|null - */ public function evaluate(ConditionInterface $condition) { if ($condition instanceof VersionCompareCondition) { @@ -36,9 +33,6 @@ final class ConditionEvaluator } return null; } - /** - * @return bool|int|null - */ private function evaluateVersionCompareCondition(VersionCompareCondition $versionCompareCondition) { $compareSign = $versionCompareCondition->getCompareSign(); diff --git a/rules/DeadCode/NodeAnalyzer/IsClassMethodUsedAnalyzer.php b/rules/DeadCode/NodeAnalyzer/IsClassMethodUsedAnalyzer.php index 58a98d12751..4dd4c85014a 100644 --- a/rules/DeadCode/NodeAnalyzer/IsClassMethodUsedAnalyzer.php +++ b/rules/DeadCode/NodeAnalyzer/IsClassMethodUsedAnalyzer.php @@ -146,10 +146,7 @@ final class IsClassMethodUsedAnalyzer } return \false; } - /** - * @param null|\Rector\NodeCollector\ValueObject\ArrayCallable $arrayCallable - */ - private function shouldSkipArrayCallable(Class_ $class, $arrayCallable) : bool + private function shouldSkipArrayCallable(Class_ $class, ?\Rector\NodeCollector\ValueObject\ArrayCallable $arrayCallable) : bool { if (!$arrayCallable instanceof ArrayCallable) { return \true; diff --git a/rules/DeadCode/NodeManipulator/LivingCodeManipulator.php b/rules/DeadCode/NodeManipulator/LivingCodeManipulator.php index 4cbba9db6d5..8cb4ea9a8d5 100644 --- a/rules/DeadCode/NodeManipulator/LivingCodeManipulator.php +++ b/rules/DeadCode/NodeManipulator/LivingCodeManipulator.php @@ -43,7 +43,6 @@ final class LivingCodeManipulator } /** * @return Expr[]|mixed[] - * @param \PhpParser\Node|int|string|null $expr */ public function keepLivingCodeFromExpr($expr) : array { diff --git a/rules/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector.php b/rules/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector.php index 50a987a78c7..a977ff5b659 100644 --- a/rules/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector.php +++ b/rules/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector.php @@ -217,10 +217,7 @@ CODE_SAMPLE } return \false; } - /** - * @return null|\PhpParser\Node\Expr - */ - private function refactorUsedVariable(Assign $assign) + private function refactorUsedVariable(Assign $assign) : ?\PhpParser\Node\Expr { $parentNode = $assign->getAttribute(AttributeKey::PARENT_NODE); if (!$parentNode instanceof Expression) { diff --git a/rules/DeadCode/Rector/ClassMethod/RemoveDelegatingParentCallRector.php b/rules/DeadCode/Rector/ClassMethod/RemoveDelegatingParentCallRector.php index ea713951ba0..c0059ea3c20 100644 --- a/rules/DeadCode/Rector/ClassMethod/RemoveDelegatingParentCallRector.php +++ b/rules/DeadCode/Rector/ClassMethod/RemoveDelegatingParentCallRector.php @@ -140,9 +140,6 @@ CODE_SAMPLE } return $this->phpAttributeAnalyzer->hasPhpAttributes($classMethod, self::ALLOWED_ATTRIBUTES); } - /** - * @return null|\PhpParser\Node\Stmt|\PhpParser\Node\Expr - */ private function matchClassMethodOnlyStmt(ClassMethod $classMethod) { $classMethodStmts = $classMethod->stmts; diff --git a/rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php b/rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php index b1e5f75f840..bdbf4669957 100644 --- a/rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php +++ b/rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php @@ -124,7 +124,7 @@ CODE_SAMPLE /** * @return Stmt[]|null */ - private function processMayDeadInstanceOf(If_ $if, Instanceof_ $instanceof) + private function processMayDeadInstanceOf(If_ $if, Instanceof_ $instanceof) : ?array { if (!$instanceof->class instanceof Name) { return null; diff --git a/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php b/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php index d2b32f74cad..0aa6ee6fb82 100644 --- a/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php +++ b/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php @@ -205,10 +205,7 @@ CODE_SAMPLE } return !$this->valueResolver->isFalse($args[1]->value); } - /** - * @return null|\PhpParser\Node\Expr\MethodCall - */ - private function refactorConfigureRuleMethodCall(MethodCall $methodCall) + private function refactorConfigureRuleMethodCall(MethodCall $methodCall) : ?\PhpParser\Node\Expr\MethodCall { $caller = $methodCall->var; if (!$caller instanceof MethodCall) { diff --git a/rules/EarlyReturn/Rector/StmtsAwareInterface/ReturnEarlyIfVariableRector.php b/rules/EarlyReturn/Rector/StmtsAwareInterface/ReturnEarlyIfVariableRector.php index a785fc250ae..e17de185db0 100644 --- a/rules/EarlyReturn/Rector/StmtsAwareInterface/ReturnEarlyIfVariableRector.php +++ b/rules/EarlyReturn/Rector/StmtsAwareInterface/ReturnEarlyIfVariableRector.php @@ -97,10 +97,7 @@ CODE_SAMPLE } return null; } - /** - * @return \PhpParser\Node\Expr|null - */ - private function matchOnlyIfStmtReturnExpr(Stmt $onlyIfStmt, Variable $returnVariable) + private function matchOnlyIfStmtReturnExpr(Stmt $onlyIfStmt, Variable $returnVariable) : ?\PhpParser\Node\Expr { if (!$onlyIfStmt instanceof Expression) { return null; @@ -129,10 +126,7 @@ CODE_SAMPLE // return directly return $assign->expr; } - /** - * @return \PhpParser\Node\Expr\Variable|null - */ - private function matchNextStmtReturnVariable(StmtsAwareInterface $stmtsAware, int $key) + private function matchNextStmtReturnVariable(StmtsAwareInterface $stmtsAware, int $key) : ?\PhpParser\Node\Expr\Variable { $nextStmt = $stmtsAware->stmts[$key + 1] ?? null; // last item → stop diff --git a/rules/Naming/ExpectedNameResolver/InflectorSingularResolver.php b/rules/Naming/ExpectedNameResolver/InflectorSingularResolver.php index ee0b27d8317..80f144a72fc 100644 --- a/rules/Naming/ExpectedNameResolver/InflectorSingularResolver.php +++ b/rules/Naming/ExpectedNameResolver/InflectorSingularResolver.php @@ -69,10 +69,7 @@ final class InflectorSingularResolver } return $currentName; } - /** - * @return string|null - */ - private function resolveSingularizeMap(string $currentName) + private function resolveSingularizeMap(string $currentName) : ?string { foreach (self::SINGULARIZE_MAP as $plural => $singular) { if ($currentName === $plural) { diff --git a/rules/Naming/Matcher/ForeachMatcher.php b/rules/Naming/Matcher/ForeachMatcher.php index 5ad7383ad1f..759911c56ee 100644 --- a/rules/Naming/Matcher/ForeachMatcher.php +++ b/rules/Naming/Matcher/ForeachMatcher.php @@ -53,9 +53,6 @@ final class ForeachMatcher } return new VariableAndCallForeach($foreach->valueVar, $call, $variableName, $functionLike); } - /** - * @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|null - */ private function getFunctionLike(Foreach_ $foreach) { return $this->betterNodeFinder->findParentByTypes($foreach, [Closure::class, ClassMethod::class, Function_::class]); diff --git a/rules/Naming/Matcher/VariableAndCallAssignMatcher.php b/rules/Naming/Matcher/VariableAndCallAssignMatcher.php index b4b58942950..e85f3496c1a 100644 --- a/rules/Naming/Matcher/VariableAndCallAssignMatcher.php +++ b/rules/Naming/Matcher/VariableAndCallAssignMatcher.php @@ -61,9 +61,6 @@ final class VariableAndCallAssignMatcher } return new VariableAndCallAssign($assign->var, $call, $assign, $variableName, $functionLike); } - /** - * @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|null - */ private function getFunctionLike(Assign $assign) { return $this->betterNodeFinder->findParentByTypes($assign, [Closure::class, ClassMethod::class, Function_::class]); diff --git a/rules/Php54/Rector/FuncCall/RemoveReferenceFromCallRector.php b/rules/Php54/Rector/FuncCall/RemoveReferenceFromCallRector.php index bfbb10ed6e2..3187218c2a6 100644 --- a/rules/Php54/Rector/FuncCall/RemoveReferenceFromCallRector.php +++ b/rules/Php54/Rector/FuncCall/RemoveReferenceFromCallRector.php @@ -53,7 +53,6 @@ CODE_SAMPLE } /** * @param FuncCall|MethodCall|StaticCall $node - * @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null */ public function refactor(Node $node) { diff --git a/rules/Php55/RegexMatcher.php b/rules/Php55/RegexMatcher.php index 218e5987b28..6ca254146b7 100644 --- a/rules/Php55/RegexMatcher.php +++ b/rules/Php55/RegexMatcher.php @@ -29,9 +29,6 @@ final class RegexMatcher { $this->valueResolver = $valueResolver; } - /** - * @return \PhpParser\Node\Expr\BinaryOp\Concat|\PhpParser\Node\Scalar\String_|null - */ public function resolvePatternExpressionWithoutEIfFound(Expr $expr) { if ($expr instanceof String_) { diff --git a/rules/Php70/Rector/FuncCall/RandomFunctionRector.php b/rules/Php70/Rector/FuncCall/RandomFunctionRector.php index 4b915cfd9f5..5883a5deb01 100644 --- a/rules/Php70/Rector/FuncCall/RandomFunctionRector.php +++ b/rules/Php70/Rector/FuncCall/RandomFunctionRector.php @@ -35,9 +35,8 @@ final class RandomFunctionRector extends AbstractRector implements MinPhpVersion } /** * @param FuncCall $node - * @return \PhpParser\Node\Expr\FuncCall|null */ - public function refactor(Node $node) + public function refactor(Node $node) : ?\PhpParser\Node\Expr\FuncCall { foreach (self::OLD_TO_NEW_FUNCTION_NAMES as $oldFunctionName => $newFunctionName) { if ($this->isName($node, $oldFunctionName)) { diff --git a/rules/Php72/NodeFactory/AnonymousFunctionFactory.php b/rules/Php72/NodeFactory/AnonymousFunctionFactory.php index 283835fe159..6d662030548 100644 --- a/rules/Php72/NodeFactory/AnonymousFunctionFactory.php +++ b/rules/Php72/NodeFactory/AnonymousFunctionFactory.php @@ -123,7 +123,6 @@ final class AnonymousFunctionFactory * @api * @param Param[] $params * @param Stmt[] $stmts - * @param \PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\NullableType|\PhpParser\Node\UnionType|\PhpParser\Node\ComplexType|null $returnTypeNode */ public function create(array $params, array $stmts, $returnTypeNode, bool $static = \false) : Closure { @@ -262,9 +261,6 @@ final class AnonymousFunctionFactory } return $params; } - /** - * @return \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null - */ private function resolveParamType(ParameterReflection $parameterReflection) { if ($parameterReflection->getType() instanceof MixedType) { @@ -297,7 +293,6 @@ final class AnonymousFunctionFactory } /** * @param Param[] $params - * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null */ private function createInnerMethodCall(PhpMethodReflection $phpMethodReflection, Expr $expr, array $params) { @@ -317,9 +312,6 @@ final class AnonymousFunctionFactory $innerMethodCall->args = $this->nodeFactory->createArgsFromParams($params); return $innerMethodCall; } - /** - * @return null|\PhpParser\Node\Name|\PhpParser\Node\Name\FullyQualified|\PhpParser\Node\Expr - */ private function normalizeClassConstFetchForStatic(Expr $expr) { if (!$expr instanceof ClassConstFetch) { @@ -339,9 +331,6 @@ final class AnonymousFunctionFactory } return new FullyQualified($className); } - /** - * @return \PhpParser\Node\Expr\New_|\PhpParser\Node\Expr|null - */ private function resolveExpr(Expr $expr) { if (!$expr instanceof ClassConstFetch) { diff --git a/rules/Php74/Rector/Property/TypedPropertyRector.php b/rules/Php74/Rector/Property/TypedPropertyRector.php index cfd39baa569..cf48dbfbc14 100644 --- a/rules/Php74/Rector/Property/TypedPropertyRector.php +++ b/rules/Php74/Rector/Property/TypedPropertyRector.php @@ -160,9 +160,6 @@ CODE_SAMPLE { return PhpVersionFeature::TYPED_PROPERTIES; } - /** - * @param \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null $node - */ private function isNullOrNonClassLikeTypeOrMixedOrVendorLockedIn($node, Property $property) : bool { if (!$node instanceof Node) { diff --git a/rules/Php80/NodeManipulator/ResourceReturnToObject.php b/rules/Php80/NodeManipulator/ResourceReturnToObject.php index ba2962049b4..ed8e86b7b3e 100644 --- a/rules/Php80/NodeManipulator/ResourceReturnToObject.php +++ b/rules/Php80/NodeManipulator/ResourceReturnToObject.php @@ -51,7 +51,6 @@ final class ResourceReturnToObject /** * @param array $collectionFunctionToReturnObject * @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\BinaryOp\BooleanOr $node - * @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\Instanceof_|null */ public function refactor($node, array $collectionFunctionToReturnObject) { diff --git a/rules/Php80/Rector/ClassMethod/AddParamBasedOnParentClassMethodRector.php b/rules/Php80/Rector/ClassMethod/AddParamBasedOnParentClassMethodRector.php index 5d381303f66..5ac967656cb 100644 --- a/rules/Php80/Rector/ClassMethod/AddParamBasedOnParentClassMethodRector.php +++ b/rules/Php80/Rector/ClassMethod/AddParamBasedOnParentClassMethodRector.php @@ -184,9 +184,6 @@ CODE_SAMPLE } return $node; } - /** - * @return null|\PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\ComplexType - */ private function resolveParamType(Param $param) { if ($param->type === null) { diff --git a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php index c9e3fdeb4ce..60d9bf7882b 100644 --- a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php +++ b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php @@ -257,10 +257,7 @@ CODE_SAMPLE } return $this->attrGroupsFactory->create($doctrineTagAndAnnotationToAttributes, $uses); } - /** - * @return \Rector\Php80\ValueObject\AnnotationToAttribute|null - */ - private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) + private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?\Rector\Php80\ValueObject\AnnotationToAttribute { foreach ($this->annotationsToAttributes as $annotationToAttribute) { if (!$doctrineAnnotationTagValueNode->hasClassName($annotationToAttribute->getTag())) { diff --git a/rules/Php80/Rector/FunctionLike/UnionTypesRector.php b/rules/Php80/Rector/FunctionLike/UnionTypesRector.php index 7475b39f941..35f749d0ba5 100644 --- a/rules/Php80/Rector/FunctionLike/UnionTypesRector.php +++ b/rules/Php80/Rector/FunctionLike/UnionTypesRector.php @@ -235,10 +235,6 @@ CODE_SAMPLE } return $this->typeFactory->createMixedPassedOrUnionType($singleArrayTypes); } - /** - * @param \PhpParser\Node\Name|\PhpParser\Node\Identifier|\PhpParser\Node\ComplexType|null $type - * @param \PhpParser\Node\Name|\PhpParser\Node\ComplexType|\PhpParser\Node|null $phpParserUnionType - */ private function shouldSkipParamTypeRefactor($type, $phpParserUnionType) : bool { if (!$phpParserUnionType instanceof PhpParserUnionType) { diff --git a/rules/Php80/Rector/Identical/StrEndsWithRector.php b/rules/Php80/Rector/Identical/StrEndsWithRector.php index a6dba43bc96..676607f5513 100644 --- a/rules/Php80/Rector/Identical/StrEndsWithRector.php +++ b/rules/Php80/Rector/Identical/StrEndsWithRector.php @@ -114,7 +114,6 @@ CODE_SAMPLE * Covers: * $isMatch = substr($haystack, -strlen($needle)) === $needle; * $isMatch = 'needle' === substr($haystack, -6) - * @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\BooleanNot|null */ private function refactorSubstr(BinaryOp $binaryOp) { @@ -141,9 +140,6 @@ CODE_SAMPLE $isPositive = $binaryOp instanceof Identical; return $this->buildReturnNode($haystack, $comparedNeedleExpr, $isPositive); } - /** - * @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\BooleanNot|null - */ private function refactorSubstrCompare(BinaryOp $binaryOp) { $funcCallAndExpr = $this->binaryOpAnalyzer->matchFuncCallAndOtherExpr($binaryOp, 'substr_compare'); diff --git a/rules/Php80/ValueObject/CondAndExpr.php b/rules/Php80/ValueObject/CondAndExpr.php index 030912571ee..214e4da730f 100644 --- a/rules/Php80/ValueObject/CondAndExpr.php +++ b/rules/Php80/ValueObject/CondAndExpr.php @@ -26,7 +26,7 @@ final class CondAndExpr * @param Expr[]|null $condExprs * @param MatchKind::* $matchKind */ - public function __construct($condExprs, Expr $expr, string $matchKind) + public function __construct(?array $condExprs, Expr $expr, string $matchKind) { $this->condExprs = $condExprs; $this->expr = $expr; @@ -39,7 +39,7 @@ final class CondAndExpr /** * @return Expr[]|null */ - public function getCondExprs() + public function getCondExprs() : ?array { // internally checked by PHPStan, cannot be empty array if ($this->condExprs === []) { diff --git a/rules/Php81/Rector/MethodCall/MyCLabsMethodCallToEnumConstRector.php b/rules/Php81/Rector/MethodCall/MyCLabsMethodCallToEnumConstRector.php index 3e767cd873a..639342087c7 100644 --- a/rules/Php81/Rector/MethodCall/MyCLabsMethodCallToEnumConstRector.php +++ b/rules/Php81/Rector/MethodCall/MyCLabsMethodCallToEnumConstRector.php @@ -101,9 +101,6 @@ CODE_SAMPLE $enumConstFetch = $this->nodeFactory->createClassConstFetch($className, $enumCaseName); return new PropertyFetch($enumConstFetch, 'value'); } - /** - * @return null|\PhpParser\Node\Expr\ClassConstFetch|\PhpParser\Node\Expr\PropertyFetch - */ private function refactorMethodCall(MethodCall $methodCall, string $methodName) { if (!$this->isObjectType($methodCall->var, new ObjectType('MyCLabs\\Enum\\Enum'))) { diff --git a/rules/Php81/Rector/Property/ReadOnlyPropertyRector.php b/rules/Php81/Rector/Property/ReadOnlyPropertyRector.php index 8d2998871db..287dd798e6b 100644 --- a/rules/Php81/Rector/Property/ReadOnlyPropertyRector.php +++ b/rules/Php81/Rector/Property/ReadOnlyPropertyRector.php @@ -136,10 +136,7 @@ CODE_SAMPLE } return $property; } - /** - * @return \PhpParser\Node\Param|null - */ - private function refactorParam(Param $param) + private function refactorParam(Param $param) : ?\PhpParser\Node\Param { if (!$this->visibilityManipulator->hasVisibility($param, Visibility::PRIVATE)) { return null; diff --git a/rules/Privatization/Naming/ConstantNaming.php b/rules/Privatization/Naming/ConstantNaming.php index 45244a91109..d70801b3905 100644 --- a/rules/Privatization/Naming/ConstantNaming.php +++ b/rules/Privatization/Naming/ConstantNaming.php @@ -24,10 +24,7 @@ final class ConstantNaming $propertyName = $this->nodeNameResolver->getName($propertyProperty); return $this->createUnderscoreUppercaseString($propertyName); } - /** - * @return string|null - */ - public function createFromVariable(Variable $variable) + public function createFromVariable(Variable $variable) : ?string { $variableName = $this->nodeNameResolver->getName($variable); if ($variableName === null) { diff --git a/rules/Strict/NodeFactory/ExactCompareFactory.php b/rules/Strict/NodeFactory/ExactCompareFactory.php index 96153b9f701..e3284f46756 100644 --- a/rules/Strict/NodeFactory/ExactCompareFactory.php +++ b/rules/Strict/NodeFactory/ExactCompareFactory.php @@ -35,9 +35,6 @@ final class ExactCompareFactory { $this->nodeFactory = $nodeFactory; } - /** - * @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BooleanNot|\PhpParser\Node\Expr\Instanceof_|null - */ public function createIdenticalFalsyCompare(Type $exprType, Expr $expr, bool $treatAsNonEmpty) { if ($exprType instanceof StringType) { @@ -60,9 +57,6 @@ final class ExactCompareFactory } return $this->createTruthyFromUnionType($exprType, $expr, $treatAsNonEmpty); } - /** - * @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\Instanceof_|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\BooleanAnd|null - */ public function createNotIdenticalFalsyCompare(Type $exprType, Expr $expr, bool $treatAsNotEmpty) { if ($exprType instanceof StringType) { @@ -79,9 +73,6 @@ final class ExactCompareFactory } return $this->createFromUnionType($exprType, $expr, $treatAsNotEmpty); } - /** - * @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\Instanceof_|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\BooleanAnd|null - */ private function createFromUnionType(UnionType $unionType, Expr $expr, bool $treatAsNotEmpty) { $unionType = TypeCombinator::removeNull($unionType); @@ -102,9 +93,6 @@ final class ExactCompareFactory } return new BooleanAnd($toNullNotIdentical, $compareExpr); } - /** - * @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\Instanceof_|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\BooleanAnd|null - */ private function resolveFromCleanedNullUnionType(UnionType $unionType, Expr $expr, bool $treatAsNotEmpty) { $compareExprs = []; @@ -130,7 +118,6 @@ final class ExactCompareFactory } /** * @param array $compareExprs - * @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\Instanceof_|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\BooleanAnd|null */ private function resolveTruthyExpr(array $compareExprs) { @@ -146,9 +133,6 @@ final class ExactCompareFactory } return $truthyExpr; } - /** - * @return \PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BooleanNot|\PhpParser\Node\Expr\Instanceof_|null - */ private function createTruthyFromUnionType(UnionType $unionType, Expr $expr, bool $treatAsNonEmpty) { $unionType = $this->cleanUpPossibleNullableUnionType($unionType); diff --git a/rules/Strict/Rector/Empty_/DisallowedEmptyRuleFixerRector.php b/rules/Strict/Rector/Empty_/DisallowedEmptyRuleFixerRector.php index 5df65dcbea4..ed940e3b441 100644 --- a/rules/Strict/Rector/Empty_/DisallowedEmptyRuleFixerRector.php +++ b/rules/Strict/Rector/Empty_/DisallowedEmptyRuleFixerRector.php @@ -60,9 +60,8 @@ CODE_SAMPLE } /** * @param Empty_|BooleanNot $node - * @return \PhpParser\Node\Expr|null */ - public function refactor(Node $node) + public function refactor(Node $node) : ?\PhpParser\Node\Expr { $scope = $node->getAttribute(AttributeKey::SCOPE); if (!$scope instanceof Scope) { @@ -76,10 +75,7 @@ CODE_SAMPLE } return $this->refactorEmpty($node, $scope, $this->treatAsNonEmpty); } - /** - * @return \PhpParser\Node\Expr|null - */ - private function refactorBooleanNot(BooleanNot $booleanNot, Scope $scope) + private function refactorBooleanNot(BooleanNot $booleanNot, Scope $scope) : ?\PhpParser\Node\Expr { if (!$booleanNot->expr instanceof Empty_) { return null; @@ -88,10 +84,7 @@ CODE_SAMPLE $emptyExprType = $scope->getType($empty->expr); return $this->exactCompareFactory->createNotIdenticalFalsyCompare($emptyExprType, $empty->expr, $this->treatAsNonEmpty); } - /** - * @return \PhpParser\Node\Expr|null - */ - private function refactorEmpty(Empty_ $empty, Scope $scope, bool $treatAsNonEmpty) + private function refactorEmpty(Empty_ $empty, Scope $scope, bool $treatAsNonEmpty) : ?\PhpParser\Node\Expr { $exprType = $scope->getType($empty->expr); return $this->exactCompareFactory->createIdenticalFalsyCompare($exprType, $empty->expr, $treatAsNonEmpty); diff --git a/rules/TypeDeclaration/NodeAnalyzer/CallerParamMatcher.php b/rules/TypeDeclaration/NodeAnalyzer/CallerParamMatcher.php index e7cd0611dd2..6e320f14705 100644 --- a/rules/TypeDeclaration/NodeAnalyzer/CallerParamMatcher.php +++ b/rules/TypeDeclaration/NodeAnalyzer/CallerParamMatcher.php @@ -38,7 +38,6 @@ final class CallerParamMatcher } /** * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\FuncCall $call - * @return null|\PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\NullableType|\PhpParser\Node\UnionType|\PhpParser\Node\ComplexType */ public function matchCallParamType($call, Param $param, Scope $scope) { @@ -78,9 +77,8 @@ final class CallerParamMatcher } /** * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\FuncCall $call - * @return int|null */ - private function matchCallArgPosition($call, Param $param) + private function matchCallArgPosition($call, Param $param) : ?int { $paramName = $this->nodeNameResolver->getName($param); foreach ($call->args as $argPosition => $arg) { diff --git a/rules/TypeDeclaration/NodeAnalyzer/ReturnFilter/ExclusiveNativeCallLikeReturnMatcher.php b/rules/TypeDeclaration/NodeAnalyzer/ReturnFilter/ExclusiveNativeCallLikeReturnMatcher.php index 56138723388..6c80f54abfb 100644 --- a/rules/TypeDeclaration/NodeAnalyzer/ReturnFilter/ExclusiveNativeCallLikeReturnMatcher.php +++ b/rules/TypeDeclaration/NodeAnalyzer/ReturnFilter/ExclusiveNativeCallLikeReturnMatcher.php @@ -26,7 +26,7 @@ final class ExclusiveNativeCallLikeReturnMatcher * @param Return_[] $returns * @return array|null */ - public function match(array $returns) + public function match(array $returns) : ?array { $callLikes = []; foreach ($returns as $return) { diff --git a/rules/TypeDeclaration/PHPStan/ObjectTypeSpecifier.php b/rules/TypeDeclaration/PHPStan/ObjectTypeSpecifier.php index b8908ac164e..076ba11ec7e 100644 --- a/rules/TypeDeclaration/PHPStan/ObjectTypeSpecifier.php +++ b/rules/TypeDeclaration/PHPStan/ObjectTypeSpecifier.php @@ -53,10 +53,9 @@ final class ObjectTypeSpecifier $this->typeWithClassTypeSpecifiers = $typeWithClassTypeSpecifiers; } /** - * @param \PHPStan\Analyser\Scope|null $scope * @return \PHPStan\Type\TypeWithClassName|\Rector\StaticTypeMapper\ValueObject\Type\NonExistingObjectType|\PHPStan\Type\UnionType|\PHPStan\Type\MixedType */ - public function narrowToFullyQualifiedOrAliasedObjectType(Node $node, ObjectType $objectType, $scope) + public function narrowToFullyQualifiedOrAliasedObjectType(Node $node, ObjectType $objectType, ?\PHPStan\Analyser\Scope $scope) { // $nameScope = $this->nameScopeFactory->createNameScopeFromNodeWithoutTemplateTypes($node); // @todo reuse name scope @@ -134,7 +133,6 @@ final class ObjectTypeSpecifier } /** * @param Use_[]|GroupUse[] $uses - * @return \Rector\StaticTypeMapper\ValueObject\Type\ShortenedObjectType|\Rector\StaticTypeMapper\ValueObject\Type\ShortenedGenericObjectType|null */ private function matchShortenedObjectType(ObjectType $objectType, array $uses) { diff --git a/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector.php b/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector.php index 69930874881..70f56c7b1ef 100644 --- a/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector.php +++ b/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector.php @@ -135,7 +135,6 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\ArrowFunction|\PhpParser\Node\Expr\Closure $node - * @return null|\PhpParser\Node\Expr\ArrowFunction|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Expr\Closure */ private function refactorDirectReturnNew($node) { diff --git a/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictNewArrayRector.php b/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictNewArrayRector.php index 366358f58a7..c5726f48975 100644 --- a/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictNewArrayRector.php +++ b/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictNewArrayRector.php @@ -166,9 +166,8 @@ CODE_SAMPLE } /** * @param Stmt[] $stmts - * @return \PhpParser\Node\Expr\Variable|null */ - private function matchArrayAssignedVariable(array $stmts) + private function matchArrayAssignedVariable(array $stmts) : ?\PhpParser\Node\Expr\Variable { foreach ($stmts as $stmt) { if (!$stmt instanceof Expression) { diff --git a/rules/TypeDeclaration/TypeAnalyzer/AlwaysStrictScalarExprAnalyzer.php b/rules/TypeDeclaration/TypeAnalyzer/AlwaysStrictScalarExprAnalyzer.php index 5d0e3567923..be3d789598c 100644 --- a/rules/TypeDeclaration/TypeAnalyzer/AlwaysStrictScalarExprAnalyzer.php +++ b/rules/TypeDeclaration/TypeAnalyzer/AlwaysStrictScalarExprAnalyzer.php @@ -55,10 +55,7 @@ final class AlwaysStrictScalarExprAnalyzer } return null; } - /** - * @return \PHPStan\Type\Type|null - */ - private function resolveTypeFromScalar(Scalar $scalar) + private function resolveTypeFromScalar(Scalar $scalar) : ?\PHPStan\Type\Type { if ($scalar instanceof String_) { return new StringType(); diff --git a/rules/TypeDeclaration/TypeInferer/ReturnTypeInferer.php b/rules/TypeDeclaration/TypeInferer/ReturnTypeInferer.php index 99ad58bfa3d..2d64926325a 100644 --- a/rules/TypeDeclaration/TypeInferer/ReturnTypeInferer.php +++ b/rules/TypeDeclaration/TypeInferer/ReturnTypeInferer.php @@ -278,10 +278,7 @@ final class ReturnTypeInferer } return \false; } - /** - * @return \PHPStan\Type\UnionType|null - */ - private function resolveUnionStaticTypes(UnionType $unionType, bool $isSupportedStaticReturnType) + private function resolveUnionStaticTypes(UnionType $unionType, bool $isSupportedStaticReturnType) : ?\PHPStan\Type\UnionType { $resolvedTypes = []; $hasStatic = \false; diff --git a/src/Contract/PhpParser/NodePrinterInterface.php b/src/Contract/PhpParser/NodePrinterInterface.php index 6bc7b0923c8..4fe7c3c7653 100644 --- a/src/Contract/PhpParser/NodePrinterInterface.php +++ b/src/Contract/PhpParser/NodePrinterInterface.php @@ -11,7 +11,7 @@ use PhpParser\Node\Stmt; interface NodePrinterInterface { /** - * @param \PhpParser\Node|mixed[]|null $node + * @param Node|Node[]|null $node */ public function print($node) : string; /** diff --git a/src/NodeAnalyzer/CompactFuncCallAnalyzer.php b/src/NodeAnalyzer/CompactFuncCallAnalyzer.php index 119c4e08637..cc1faf5c068 100644 --- a/src/NodeAnalyzer/CompactFuncCallAnalyzer.php +++ b/src/NodeAnalyzer/CompactFuncCallAnalyzer.php @@ -57,9 +57,6 @@ final class CompactFuncCallAnalyzer } return \false; } - /** - * @param \PhpParser\Node\Arg|\PhpParser\Node\VariadicPlaceholder|\PhpParser\Node\Expr\ArrayItem|null $node - */ private function shouldSkip($node) : bool { if ($node === null) { diff --git a/src/NodeAnalyzer/PropertyPresenceChecker.php b/src/NodeAnalyzer/PropertyPresenceChecker.php index 96446e1ac15..9c6fcbaf2ea 100644 --- a/src/NodeAnalyzer/PropertyPresenceChecker.php +++ b/src/NodeAnalyzer/PropertyPresenceChecker.php @@ -54,9 +54,6 @@ final class PropertyPresenceChecker $propertyOrParam = $this->getClassContextProperty($class, $propertyMetadata); return $propertyOrParam !== null; } - /** - * @return \PhpParser\Node\Stmt\Property|\PhpParser\Node\Param|null - */ public function getClassContextProperty(Class_ $class, PropertyMetadata $propertyMetadata) { $className = $this->nodeNameResolver->getName($class); @@ -100,9 +97,6 @@ final class PropertyPresenceChecker } return $propertyReflections; } - /** - * @return \PhpParser\Node\Stmt\Property|\PhpParser\Node\Param|null - */ private function matchPropertyByType(PropertyMetadata $propertyMetadata, PhpPropertyReflection $phpPropertyReflection) { if ($propertyMetadata->getType() === null) { @@ -120,9 +114,6 @@ final class PropertyPresenceChecker } return $this->astResolver->resolvePropertyFromPropertyReflection($phpPropertyReflection); } - /** - * @return \PhpParser\Node\Stmt\Property|\PhpParser\Node\Param|null - */ private function matchPropertyByParentNonPrivateProperties(string $className, PropertyMetadata $propertyMetadata) { $availablePropertyReflections = $this->getParentClassNonPrivatePropertyReflections($className); diff --git a/src/PhpParser/AstResolver.php b/src/PhpParser/AstResolver.php index 37ec433ff84..5363d24665a 100644 --- a/src/PhpParser/AstResolver.php +++ b/src/PhpParser/AstResolver.php @@ -105,9 +105,6 @@ final class AstResolver $this->nodeTypeResolver = $nodeTypeResolver; $this->classLikeAstResolver = $classLikeAstResolver; } - /** - * @return \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Trait_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Stmt\Enum_|null - */ public function resolveClassFromName(string $className) { if (!$this->reflectionProvider->hasClass($className)) { @@ -116,9 +113,6 @@ final class AstResolver $classReflection = $this->reflectionProvider->getClass($className); return $this->resolveClassFromClassReflection($classReflection, $className); } - /** - * @return \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Trait_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Stmt\Enum_|null - */ public function resolveClassFromObjectType(TypeWithClassName $typeWithClassName) { return $this->resolveClassFromName($typeWithClassName->getClassName()); @@ -159,7 +153,6 @@ final class AstResolver } /** * @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall $call - * @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|null */ public function resolveClassMethodOrFunctionFromCall($call, Scope $scope) { @@ -229,9 +222,6 @@ final class AstResolver } return $this->resolveClassMethod($callerStaticType->getClassName(), $methodName); } - /** - * @return \PhpParser\Node\Stmt\Trait_|\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Stmt\Enum_|null - */ public function resolveClassFromClassReflection(ClassReflection $classReflection, string $className) { return $this->classLikeAstResolver->resolveClassFromClassReflection($classReflection, $className); @@ -264,9 +254,6 @@ final class AstResolver } return $traits; } - /** - * @return \PhpParser\Node\Stmt\Property|\PhpParser\Node\Param|null - */ public function resolvePropertyFromPropertyReflection(PhpPropertyReflection $phpPropertyReflection) { $classReflection = $phpPropertyReflection->getDeclaringClass(); diff --git a/src/PhpParser/ClassLikeAstResolver.php b/src/PhpParser/ClassLikeAstResolver.php index fc057db3ff7..9bb6128ce94 100644 --- a/src/PhpParser/ClassLikeAstResolver.php +++ b/src/PhpParser/ClassLikeAstResolver.php @@ -36,9 +36,6 @@ final class ClassLikeAstResolver $this->smartPhpParser = $smartPhpParser; $this->betterNodeFinder = $betterNodeFinder; } - /** - * @return \PhpParser\Node\Stmt\Trait_|\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Stmt\Enum_|null - */ public function resolveClassFromClassReflection(ClassReflection $classReflection, string $desiredClassName) { if ($classReflection->isBuiltin()) { diff --git a/src/PhpParser/Comparing/NodeComparator.php b/src/PhpParser/Comparing/NodeComparator.php index 6759aca07ff..b6126310dcd 100644 --- a/src/PhpParser/Comparing/NodeComparator.php +++ b/src/PhpParser/Comparing/NodeComparator.php @@ -25,7 +25,7 @@ final class NodeComparator } /** * Removes all comments from both nodes - * @param \PhpParser\Node|mixed[]|null $node + * @param Node|Node[]|null $node */ public function printWithoutComments($node) : string { @@ -34,8 +34,8 @@ final class NodeComparator return \trim($content); } /** - * @param \PhpParser\Node|mixed[]|null $firstNode - * @param \PhpParser\Node|mixed[]|null $secondNode + * @param Node|Node[]|null $firstNode + * @param Node|Node[]|null $secondNode */ public function areNodesEqual($firstNode, $secondNode) : bool { diff --git a/src/PhpParser/Node/NodeFactory.php b/src/PhpParser/Node/NodeFactory.php index 68e2fbda332..ff52b8a4212 100644 --- a/src/PhpParser/Node/NodeFactory.php +++ b/src/PhpParser/Node/NodeFactory.php @@ -430,7 +430,6 @@ final class NodeFactory return $classConst; } /** - * @param string|int|null $key * @param mixed $item */ private function createArrayItem($item, $key = null) : ArrayItem @@ -461,9 +460,6 @@ final class NodeFactory $nodeClass = \is_object($item) ? \get_class($item) : $item; throw new NotImplementedYetException(\sprintf('Not implemented yet. Go to "%s()" and add check for "%s" node.', __METHOD__, (string) $nodeClass)); } - /** - * @param int|string|null $key - */ private function decorateArrayItemWithKey($key, ArrayItem $arrayItem) : void { if ($key === null) { diff --git a/src/PhpParser/Printer/BetterStandardPrinter.php b/src/PhpParser/Printer/BetterStandardPrinter.php index 744d2a0693a..4edfb8ccbb3 100644 --- a/src/PhpParser/Printer/BetterStandardPrinter.php +++ b/src/PhpParser/Printer/BetterStandardPrinter.php @@ -111,7 +111,7 @@ final class BetterStandardPrinter extends Standard implements NodePrinterInterfa return $content; } /** - * @param \PhpParser\Node|mixed[]|null $node + * @param Node|Node[]|null $node */ public function print($node) : string { diff --git a/src/Reflection/ReflectionResolver.php b/src/Reflection/ReflectionResolver.php index afa33a7e27b..3e1d5412de3 100644 --- a/src/Reflection/ReflectionResolver.php +++ b/src/Reflection/ReflectionResolver.php @@ -181,7 +181,6 @@ final class ReflectionResolver } /** * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\StaticCall $call - * @return \PHPStan\Reflection\MethodReflection|\PHPStan\Reflection\FunctionReflection|null */ public function resolveFunctionLikeReflectionFromCall($call) { @@ -246,9 +245,6 @@ final class ReflectionResolver } return $classReflection->getNativeProperty($propertyName); } - /** - * @return \PHPStan\Reflection\FunctionReflection|\PHPStan\Reflection\MethodReflection|null - */ private function resolveFunctionReflectionFromFuncCall(FuncCall $funcCall) { $scope = $funcCall->getAttribute(AttributeKey::SCOPE); diff --git a/src/ValueObject/Configuration.php b/src/ValueObject/Configuration.php index 372bf54ba8d..8197e41f129 100644 --- a/src/ValueObject/Configuration.php +++ b/src/ValueObject/Configuration.php @@ -64,11 +64,8 @@ final class Configuration /** * @param string[] $fileExtensions * @param string[] $paths - * @param string|null $parallelPort - * @param string|null $parallelIdentifier - * @param string|null $memoryLimit */ - public function __construct(bool $isDryRun = \false, bool $showProgressBar = \true, bool $shouldClearCache = \false, string $outputFormat = ConsoleOutputFormatter::NAME, array $fileExtensions = ['php'], array $paths = [], bool $showDiffs = \true, $parallelPort = null, $parallelIdentifier = null, bool $isParallel = \false, $memoryLimit = null) + public function __construct(bool $isDryRun = \false, bool $showProgressBar = \true, bool $shouldClearCache = \false, string $outputFormat = ConsoleOutputFormatter::NAME, array $fileExtensions = ['php'], array $paths = [], bool $showDiffs = \true, ?string $parallelPort = null, ?string $parallelIdentifier = null, bool $isParallel = \false, ?string $memoryLimit = null) { $this->isDryRun = $isDryRun; $this->showProgressBar = $showProgressBar; diff --git a/src/ValueObject/Error/SystemError.php b/src/ValueObject/Error/SystemError.php index 99f10c72fb0..3026cdee31a 100644 --- a/src/ValueObject/Error/SystemError.php +++ b/src/ValueObject/Error/SystemError.php @@ -27,12 +27,7 @@ final class SystemError implements SerializableInterface * @var string|null */ private $rectorClass = null; - /** - * @param string|null $relativeFilePath - * @param int|null $line - * @param string|null $rectorClass - */ - public function __construct(string $message, $relativeFilePath = null, $line = null, $rectorClass = null) + public function __construct(string $message, ?string $relativeFilePath = null, ?int $line = null, ?string $rectorClass = null) { $this->message = $message; $this->relativeFilePath = $relativeFilePath; @@ -43,17 +38,11 @@ final class SystemError implements SerializableInterface { return $this->message; } - /** - * @return string|null - */ - public function getFile() + public function getFile() : ?string { return $this->relativeFilePath; } - /** - * @return int|null - */ - public function getLine() + public function getLine() : ?int { return $this->line; } diff --git a/vendor/autoload.php b/vendor/autoload.php index 69b48b56fac..507552dd7ba 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95::getLoader(); +return ComposerAutoloaderInit2b020fc2c32ea758876b724fb0f16b86::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index fe1d280304a..d78e627c817 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -1795,140 +1795,140 @@ return array( 'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorEmptyAssignRemover' => $baseDir . '/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php', 'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorImportsMerger' => $baseDir . '/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php', 'Rector\\DogFood\\Rector\\Closure\\UpgradeRectorConfigRector' => $baseDir . '/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php', - 'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php', - 'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php', - 'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php', - 'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeThisInClosureRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php', - 'Rector\\DowngradePhp54\\Rector\\FuncCall\\DowngradeIndirectCallByArrayRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php', - 'Rector\\DowngradePhp54\\Rector\\FunctionLike\\DowngradeCallableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php', - 'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php', - 'Rector\\DowngradePhp54\\Rector\\MethodCall\\DowngradeInstanceMethodCallRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php', - 'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php', - 'Rector\\DowngradePhp55\\Rector\\Foreach_\\DowngradeForeachListRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php', - 'Rector\\DowngradePhp55\\Rector\\FuncCall\\DowngradeBoolvalRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php', - 'Rector\\DowngradePhp55\\Rector\\Isset_\\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php', - 'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/ArgManipulator.php', - 'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/UnpackedArgList.php', - 'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php', - 'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php', - 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php', - 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php', - 'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php', - 'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php', - 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\Coalesce\\DowngradeNullCoalesceRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php', - 'Rector\\DowngradePhp70\\Rector\\Declare_\\DowngradeStrictTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\Expr\\DowngradeUnnecessarilyParenthesizedExpressionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php', - 'Rector\\DowngradePhp70\\Rector\\Expression\\DowngradeDefineArrayConstantRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php', - 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeDirnameLevelsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php', - 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeSessionStartArrayOptionsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php', - 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeUncallableValueCallToCallUserFuncRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php', - 'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeScalarTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeThrowableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\GroupUse\\SplitGroupedUseImportsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php', - 'Rector\\DowngradePhp70\\Rector\\Instanceof_\\DowngradeInstanceofThrowableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php', - 'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeClosureCallRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php', - 'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeMethodCallOnCloneRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php', - 'Rector\\DowngradePhp70\\Rector\\New_\\DowngradeAnonymousClassRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php', - 'Rector\\DowngradePhp70\\Rector\\Spaceship\\DowngradeSpaceshipRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php', - 'Rector\\DowngradePhp70\\Rector\\TryCatch\\DowngradeCatchThrowableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php', - 'Rector\\DowngradePhp70\\Tokenizer\\WrappedInParenthesesAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php', - 'Rector\\DowngradePhp71\\Rector\\Array_\\SymmetricArrayDestructuringToListRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php', - 'Rector\\DowngradePhp71\\Rector\\ClassConst\\DowngradeClassConstantVisibilityRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php', - 'Rector\\DowngradePhp71\\Rector\\ConstFetch\\DowngradePhp71JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php', - 'Rector\\DowngradePhp71\\Rector\\FuncCall\\DowngradeIsIterableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php', - 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeIterablePseudoTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php', - 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeNullableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php', - 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeVoidTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php', - 'Rector\\DowngradePhp71\\Rector\\List_\\DowngradeKeysInListRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php', - 'Rector\\DowngradePhp71\\Rector\\StaticCall\\DowngradeClosureFromCallableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php', - 'Rector\\DowngradePhp71\\Rector\\String_\\DowngradeNegativeStringOffsetToStrlenRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php', - 'Rector\\DowngradePhp71\\Rector\\TryCatch\\DowngradePipeToMultiCatchExceptionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\BuiltInMethodAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\FunctionExistsFunCallAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\OverrideFromAnonymousClassMethodAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\RegexFuncAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\SealedClassAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeManipulator\\BitwiseFlagCleaner' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php', - 'Rector\\DowngradePhp72\\NodeManipulator\\JsonConstCleaner' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/JsonConstCleaner.php', - 'Rector\\DowngradePhp72\\PhpDoc\\NativeParamToPhpDocDecorator' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php', - 'Rector\\DowngradePhp72\\Rector\\ClassMethod\\DowngradeParameterTypeWideningRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php', - 'Rector\\DowngradePhp72\\Rector\\ConstFetch\\DowngradePhp72JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php', - 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeJsonDecodeNullAssociativeArgRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php', - 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php', - 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeStreamIsattyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php', - 'Rector\\DowngradePhp72\\Rector\\FunctionLike\\DowngradeObjectTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php', - 'Rector\\DowngradePhp73\\Rector\\ConstFetch\\DowngradePhp73JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php', - 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeArrayKeyFirstLastRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php', - 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeIsCountableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php', - 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeTrailingCommasInFunctionCallsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php', - 'Rector\\DowngradePhp73\\Rector\\FuncCall\\SetCookieOptionsArrayToArgumentsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php', - 'Rector\\DowngradePhp73\\Rector\\List_\\DowngradeListReferenceAssignmentRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php', - 'Rector\\DowngradePhp73\\Rector\\String_\\DowngradeFlexibleHeredocSyntaxRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php', - 'Rector\\DowngradePhp73\\Tokenizer\\FollowedByCommaAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php', - 'Rector\\DowngradePhp74\\Rector\\Array_\\DowngradeArraySpreadRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php', - 'Rector\\DowngradePhp74\\Rector\\ArrowFunction\\ArrowFunctionToAnonymousFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php', - 'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeContravariantArgumentTypeRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php', - 'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeCovariantReturnTypeRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php', - 'Rector\\DowngradePhp74\\Rector\\Coalesce\\DowngradeNullCoalescingOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php', - 'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeArrayMergeCallWithoutArgumentsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php', - 'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeStripTagsCallWithArrayRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php', - 'Rector\\DowngradePhp74\\Rector\\Identical\\DowngradeFreadFwriteFalsyToNegationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php', - 'Rector\\DowngradePhp74\\Rector\\Interface_\\DowngradePreviouslyImplementedInterfaceRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php', - 'Rector\\DowngradePhp74\\Rector\\LNumber\\DowngradeNumericLiteralSeparatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php', - 'Rector\\DowngradePhp74\\Rector\\MethodCall\\DowngradeReflectionGetTypeRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php', - 'Rector\\DowngradePhp74\\Rector\\Property\\DowngradeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php', - 'Rector\\DowngradePhp80\\NodeAnalyzer\\EnumAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php', - 'Rector\\DowngradePhp80\\NodeAnalyzer\\NamedToUnnamedArgs' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php', - 'Rector\\DowngradePhp80\\NodeAnalyzer\\UnnamedArgumentResolver' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php', - 'Rector\\DowngradePhp80\\Rector\\ArrayDimFetch\\DowngradeDereferenceableOperationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php', - 'Rector\\DowngradePhp80\\Rector\\Catch_\\DowngradeNonCapturingCatchesRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassConstFetch\\DowngradeClassOnObjectToGetClassRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeAbstractPrivateMethodInTraitRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeRecursiveDirectoryIteratorHasChildrenRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStaticTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStringReturnTypeOnToStringRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeTrailingCommasInParamUseRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php', - 'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradeAttributeToAnnotationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php', - 'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradePropertyPromotionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php', - 'Rector\\DowngradePhp80\\Rector\\Enum_\\DowngradeEnumToConstantListClassRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php', - 'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeMatchToSwitchRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php', - 'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeThrowExprRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeArrayFilterNullableCallbackRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeNumberFormatNoFourthArgRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrContainsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrEndsWithRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrStartsWithRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php', - 'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeMixedTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php', - 'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeUnionTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php', - 'Rector\\DowngradePhp80\\Rector\\Instanceof_\\DowngradePhp80ResourceReturnToObjectRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php', - 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeNamedArgumentRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php', - 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionClassGetConstantsFilterRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php', - 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionGetAttributesRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php', - 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionPropertyGetDefaultValueRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php', - 'Rector\\DowngradePhp80\\Rector\\New_\\DowngradeArbitraryExpressionsSupportRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php', - 'Rector\\DowngradePhp80\\Rector\\NullsafeMethodCall\\DowngradeNullsafeToTernaryOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php', - 'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeMixedTypeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php', - 'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeUnionTypeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php', - 'Rector\\DowngradePhp80\\Rector\\StaticCall\\DowngradePhpTokenRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php', - 'Rector\\DowngradePhp80\\Reflection\\DefaultParameterValueResolver' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/DefaultParameterValueResolver.php', - 'Rector\\DowngradePhp80\\Reflection\\SimplePhpParameterReflection' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/SimplePhpParameterReflection.php', - 'Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php', - 'Rector\\DowngradePhp81\\NodeAnalyzer\\ArraySpreadAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php', - 'Rector\\DowngradePhp81\\NodeFactory\\ArrayMergeFromArraySpreadFactory' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php', - 'Rector\\DowngradePhp81\\NodeManipulator\\ObjectToResourceReturn' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php', - 'Rector\\DowngradePhp81\\Rector\\Array_\\DowngradeArraySpreadStringKeyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php', - 'Rector\\DowngradePhp81\\Rector\\ClassConst\\DowngradeFinalizePublicClassConstantRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php', - 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeArrayIsListRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php', - 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeEnumExistsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php', - 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeFirstClassCallableSyntaxRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php', - 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNeverTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php', - 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNewInInitializerRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php', - 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradePureIntersectionTypeRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php', - 'Rector\\DowngradePhp81\\Rector\\Instanceof_\\DowngradePhp81ResourceReturnToObjectRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php', - 'Rector\\DowngradePhp81\\Rector\\Property\\DowngradeReadonlyPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php', - 'Rector\\DowngradePhp82\\Rector\\Class_\\DowngradeReadonlyClassRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php', + 'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php', + 'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php', + 'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php', + 'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeThisInClosureRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php', + 'Rector\\DowngradePhp54\\Rector\\FuncCall\\DowngradeIndirectCallByArrayRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php', + 'Rector\\DowngradePhp54\\Rector\\FunctionLike\\DowngradeCallableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php', + 'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php', + 'Rector\\DowngradePhp54\\Rector\\MethodCall\\DowngradeInstanceMethodCallRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php', + 'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php', + 'Rector\\DowngradePhp55\\Rector\\Foreach_\\DowngradeForeachListRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php', + 'Rector\\DowngradePhp55\\Rector\\FuncCall\\DowngradeBoolvalRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php', + 'Rector\\DowngradePhp55\\Rector\\Isset_\\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php', + 'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php', + 'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php', + 'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php', + 'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php', + 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php', + 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php', + 'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php', + 'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php', + 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\Coalesce\\DowngradeNullCoalesceRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php', + 'Rector\\DowngradePhp70\\Rector\\Declare_\\DowngradeStrictTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\Expr\\DowngradeUnnecessarilyParenthesizedExpressionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php', + 'Rector\\DowngradePhp70\\Rector\\Expression\\DowngradeDefineArrayConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php', + 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeDirnameLevelsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php', + 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeSessionStartArrayOptionsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php', + 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeUncallableValueCallToCallUserFuncRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php', + 'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeScalarTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeThrowableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\GroupUse\\SplitGroupedUseImportsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php', + 'Rector\\DowngradePhp70\\Rector\\Instanceof_\\DowngradeInstanceofThrowableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php', + 'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeClosureCallRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php', + 'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeMethodCallOnCloneRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php', + 'Rector\\DowngradePhp70\\Rector\\New_\\DowngradeAnonymousClassRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php', + 'Rector\\DowngradePhp70\\Rector\\Spaceship\\DowngradeSpaceshipRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php', + 'Rector\\DowngradePhp70\\Rector\\TryCatch\\DowngradeCatchThrowableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php', + 'Rector\\DowngradePhp70\\Tokenizer\\WrappedInParenthesesAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php', + 'Rector\\DowngradePhp71\\Rector\\Array_\\SymmetricArrayDestructuringToListRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php', + 'Rector\\DowngradePhp71\\Rector\\ClassConst\\DowngradeClassConstantVisibilityRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php', + 'Rector\\DowngradePhp71\\Rector\\ConstFetch\\DowngradePhp71JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php', + 'Rector\\DowngradePhp71\\Rector\\FuncCall\\DowngradeIsIterableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php', + 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeIterablePseudoTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php', + 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeNullableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php', + 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeVoidTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php', + 'Rector\\DowngradePhp71\\Rector\\List_\\DowngradeKeysInListRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php', + 'Rector\\DowngradePhp71\\Rector\\StaticCall\\DowngradeClosureFromCallableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php', + 'Rector\\DowngradePhp71\\Rector\\String_\\DowngradeNegativeStringOffsetToStrlenRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php', + 'Rector\\DowngradePhp71\\Rector\\TryCatch\\DowngradePipeToMultiCatchExceptionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\BuiltInMethodAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\FunctionExistsFunCallAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\OverrideFromAnonymousClassMethodAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\RegexFuncAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\SealedClassAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeManipulator\\BitwiseFlagCleaner' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php', + 'Rector\\DowngradePhp72\\NodeManipulator\\JsonConstCleaner' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php', + 'Rector\\DowngradePhp72\\PhpDoc\\NativeParamToPhpDocDecorator' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php', + 'Rector\\DowngradePhp72\\Rector\\ClassMethod\\DowngradeParameterTypeWideningRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php', + 'Rector\\DowngradePhp72\\Rector\\ConstFetch\\DowngradePhp72JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php', + 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeJsonDecodeNullAssociativeArgRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php', + 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php', + 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeStreamIsattyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php', + 'Rector\\DowngradePhp72\\Rector\\FunctionLike\\DowngradeObjectTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php', + 'Rector\\DowngradePhp73\\Rector\\ConstFetch\\DowngradePhp73JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php', + 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeArrayKeyFirstLastRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php', + 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeIsCountableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php', + 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeTrailingCommasInFunctionCallsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php', + 'Rector\\DowngradePhp73\\Rector\\FuncCall\\SetCookieOptionsArrayToArgumentsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php', + 'Rector\\DowngradePhp73\\Rector\\List_\\DowngradeListReferenceAssignmentRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php', + 'Rector\\DowngradePhp73\\Rector\\String_\\DowngradeFlexibleHeredocSyntaxRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php', + 'Rector\\DowngradePhp73\\Tokenizer\\FollowedByCommaAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php', + 'Rector\\DowngradePhp74\\Rector\\Array_\\DowngradeArraySpreadRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php', + 'Rector\\DowngradePhp74\\Rector\\ArrowFunction\\ArrowFunctionToAnonymousFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php', + 'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeContravariantArgumentTypeRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php', + 'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeCovariantReturnTypeRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php', + 'Rector\\DowngradePhp74\\Rector\\Coalesce\\DowngradeNullCoalescingOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php', + 'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeArrayMergeCallWithoutArgumentsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php', + 'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeStripTagsCallWithArrayRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php', + 'Rector\\DowngradePhp74\\Rector\\Identical\\DowngradeFreadFwriteFalsyToNegationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php', + 'Rector\\DowngradePhp74\\Rector\\Interface_\\DowngradePreviouslyImplementedInterfaceRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php', + 'Rector\\DowngradePhp74\\Rector\\LNumber\\DowngradeNumericLiteralSeparatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php', + 'Rector\\DowngradePhp74\\Rector\\MethodCall\\DowngradeReflectionGetTypeRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php', + 'Rector\\DowngradePhp74\\Rector\\Property\\DowngradeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php', + 'Rector\\DowngradePhp80\\NodeAnalyzer\\EnumAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php', + 'Rector\\DowngradePhp80\\NodeAnalyzer\\NamedToUnnamedArgs' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php', + 'Rector\\DowngradePhp80\\NodeAnalyzer\\UnnamedArgumentResolver' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php', + 'Rector\\DowngradePhp80\\Rector\\ArrayDimFetch\\DowngradeDereferenceableOperationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php', + 'Rector\\DowngradePhp80\\Rector\\Catch_\\DowngradeNonCapturingCatchesRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassConstFetch\\DowngradeClassOnObjectToGetClassRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeAbstractPrivateMethodInTraitRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeRecursiveDirectoryIteratorHasChildrenRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStaticTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStringReturnTypeOnToStringRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeTrailingCommasInParamUseRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php', + 'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradeAttributeToAnnotationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php', + 'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradePropertyPromotionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php', + 'Rector\\DowngradePhp80\\Rector\\Enum_\\DowngradeEnumToConstantListClassRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php', + 'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeMatchToSwitchRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php', + 'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeThrowExprRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeArrayFilterNullableCallbackRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeNumberFormatNoFourthArgRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrContainsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrEndsWithRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrStartsWithRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php', + 'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeMixedTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php', + 'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeUnionTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php', + 'Rector\\DowngradePhp80\\Rector\\Instanceof_\\DowngradePhp80ResourceReturnToObjectRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php', + 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeNamedArgumentRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php', + 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionClassGetConstantsFilterRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php', + 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionGetAttributesRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php', + 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionPropertyGetDefaultValueRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php', + 'Rector\\DowngradePhp80\\Rector\\New_\\DowngradeArbitraryExpressionsSupportRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php', + 'Rector\\DowngradePhp80\\Rector\\NullsafeMethodCall\\DowngradeNullsafeToTernaryOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php', + 'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeMixedTypeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php', + 'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeUnionTypeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php', + 'Rector\\DowngradePhp80\\Rector\\StaticCall\\DowngradePhpTokenRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php', + 'Rector\\DowngradePhp80\\Reflection\\DefaultParameterValueResolver' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/DefaultParameterValueResolver.php', + 'Rector\\DowngradePhp80\\Reflection\\SimplePhpParameterReflection' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php', + 'Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php', + 'Rector\\DowngradePhp81\\NodeAnalyzer\\ArraySpreadAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php', + 'Rector\\DowngradePhp81\\NodeFactory\\ArrayMergeFromArraySpreadFactory' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php', + 'Rector\\DowngradePhp81\\NodeManipulator\\ObjectToResourceReturn' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php', + 'Rector\\DowngradePhp81\\Rector\\Array_\\DowngradeArraySpreadStringKeyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php', + 'Rector\\DowngradePhp81\\Rector\\ClassConst\\DowngradeFinalizePublicClassConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php', + 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeArrayIsListRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php', + 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeEnumExistsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php', + 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeFirstClassCallableSyntaxRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php', + 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNeverTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php', + 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNewInInitializerRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php', + 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradePureIntersectionTypeRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php', + 'Rector\\DowngradePhp81\\Rector\\Instanceof_\\DowngradePhp81ResourceReturnToObjectRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php', + 'Rector\\DowngradePhp81\\Rector\\Property\\DowngradeReadonlyPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php', + 'Rector\\DowngradePhp82\\Rector\\Class_\\DowngradeReadonlyClassRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php', 'Rector\\EarlyReturn\\NodeFactory\\InvertedIfFactory' => $baseDir . '/rules/EarlyReturn/NodeFactory/InvertedIfFactory.php', 'Rector\\EarlyReturn\\NodeTransformer\\ConditionInverter' => $baseDir . '/rules/EarlyReturn/NodeTransformer/ConditionInverter.php', 'Rector\\EarlyReturn\\Rector\\Foreach_\\ChangeNestedForeachIfsToEarlyContinueRector' => $baseDir . '/rules/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector.php', @@ -2436,6 +2436,7 @@ return array( 'Rector\\PhpAttribute\\UnwrapableAnnotationAnalyzer' => $baseDir . '/packages/PhpAttribute/UnwrapableAnnotationAnalyzer.php', 'Rector\\PhpAttribute\\UseAliasNameMatcher' => $baseDir . '/packages/PhpAttribute/UseAliasNameMatcher.php', 'Rector\\PhpAttribute\\ValueObject\\UseAliasMetadata' => $baseDir . '/packages/PhpAttribute/ValueObject/UseAliasMetadata.php', + 'Rector\\PhpDocDecorator\\PhpDocFromTypeDeclarationDecorator' => $vendorDir . '/rector/rector-downgrade-php/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php', 'Rector\\PostRector\\Application\\PostFileProcessor' => $baseDir . '/packages/PostRector/Application/PostFileProcessor.php', 'Rector\\PostRector\\Collector\\NodesToAddCollector' => $baseDir . '/packages/PostRector/Collector/NodesToAddCollector.php', 'Rector\\PostRector\\Collector\\NodesToRemoveCollector' => $baseDir . '/packages/PostRector/Collector/NodesToRemoveCollector.php', @@ -2557,8 +2558,8 @@ return array( 'Rector\\Restoration\\Rector\\Property\\MakeTypedPropertyNullableIfCheckedRector' => $baseDir . '/rules/Restoration/Rector/Property/MakeTypedPropertyNullableIfCheckedRector.php', 'Rector\\Restoration\\ValueObject\\CompleteImportForPartialAnnotation' => $baseDir . '/rules/Restoration/ValueObject/CompleteImportForPartialAnnotation.php', 'Rector\\Set\\Contract\\SetListInterface' => $baseDir . '/packages/Set/Contract/SetListInterface.php', - 'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => $vendorDir . '/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeLevelSetList.php', - 'Rector\\Set\\ValueObject\\DowngradeSetList' => $vendorDir . '/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeSetList.php', + 'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => $vendorDir . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php', + 'Rector\\Set\\ValueObject\\DowngradeSetList' => $vendorDir . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php', 'Rector\\Set\\ValueObject\\LevelSetList' => $baseDir . '/packages/Set/ValueObject/LevelSetList.php', 'Rector\\Set\\ValueObject\\SetList' => $baseDir . '/packages/Set/ValueObject/SetList.php', 'Rector\\StaticTypeMapper\\Contract\\PhpDocParser\\PhpDocTypeMapperInterface' => $baseDir . '/packages/StaticTypeMapper/Contract/PhpDocParser/PhpDocTypeMapperInterface.php', @@ -2917,6 +2918,7 @@ return array( 'Rector\\TypeDeclaration\\ValueObject\\AddReturnTypeDeclaration' => $baseDir . '/rules/TypeDeclaration/ValueObject/AddReturnTypeDeclaration.php', 'Rector\\TypeDeclaration\\ValueObject\\AssignToVariable' => $baseDir . '/rules/TypeDeclaration/ValueObject/AssignToVariable.php', 'Rector\\TypeDeclaration\\ValueObject\\NestedArrayType' => $baseDir . '/rules/TypeDeclaration/ValueObject/NestedArrayType.php', + 'Rector\\ValueObject\\ClassMethodWillChangeReturnType' => $vendorDir . '/rector/rector-downgrade-php/src/ValueObject/ClassMethodWillChangeReturnType.php', 'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodParamVendorLockResolver' => $baseDir . '/packages/VendorLocker/NodeVendorLocker/ClassMethodParamVendorLockResolver.php', 'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodReturnTypeOverrideGuard' => $baseDir . '/packages/VendorLocker/NodeVendorLocker/ClassMethodReturnTypeOverrideGuard.php', 'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodReturnVendorLockResolver' => $baseDir . '/packages/VendorLocker/NodeVendorLocker/ClassMethodReturnVendorLockResolver.php', diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index 0cea3e4ebeb..326c68007fe 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -11,7 +11,6 @@ return array( 'Symfony\\Polyfill\\Intl\\Normalizer\\' => array($vendorDir . '/symfony/polyfill-intl-normalizer'), 'Rector\\Utils\\' => array($baseDir . '/utils'), 'Rector\\Symfony\\' => array($vendorDir . '/rector/rector-symfony/src'), - 'Rector\\Set\\' => array($vendorDir . '/rector/rector-downgrade-php/packages/Set'), 'Rector\\RectorInstaller\\' => array($vendorDir . '/rector/extension-installer/src'), 'Rector\\RectorGenerator\\' => array($vendorDir . '/rector/rector-generator/src'), 'Rector\\PHPUnit\\' => array($vendorDir . '/rector/rector-phpunit/src'), @@ -20,7 +19,7 @@ return array( 'Rector\\Doctrine\\' => array($vendorDir . '/rector/rector-doctrine/src'), 'Rector\\Core\\' => array($baseDir . '/src'), 'Rector\\CakePHP\\' => array($vendorDir . '/rector/rector-cakephp/src'), - 'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules', $vendorDir . '/rector/rector-downgrade-php/src'), + 'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules', $vendorDir . '/rector/rector-downgrade-php/src', $vendorDir . '/rector/rector-downgrade-php/rules'), 'RectorPrefix202208\\Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'), 'RectorPrefix202208\\Symplify\\SymplifyKernel\\' => array($vendorDir . '/symplify/symplify-kernel/src'), 'RectorPrefix202208\\Symplify\\SmartFileSystem\\' => array($vendorDir . '/symplify/smart-file-system/src'), diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 067b9eb4879..8fa28299f40 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95 +class ComposerAutoloaderInit2b020fc2c32ea758876b724fb0f16b86 { private static $loader; @@ -22,19 +22,19 @@ class ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit2b020fc2c32ea758876b724fb0f16b86', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit2b020fc2c32ea758876b724fb0f16b86', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $includeFiles = \Composer\Autoload\ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::$files; + $includeFiles = \Composer\Autoload\ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::$files; foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire10b4ea0a7ff8ef829e26b5299c6f9e95($fileIdentifier, $file); + composerRequire2b020fc2c32ea758876b724fb0f16b86($fileIdentifier, $file); } return $loader; @@ -46,7 +46,7 @@ class ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95 * @param string $file * @return void */ -function composerRequire10b4ea0a7ff8ef829e26b5299c6f9e95($fileIdentifier, $file) +function composerRequire2b020fc2c32ea758876b724fb0f16b86($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 2274b9613d5..71779556485 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 +class ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86 { public static $files = array ( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', @@ -30,7 +30,6 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 array ( 'Rector\\Utils\\' => 13, 'Rector\\Symfony\\' => 15, - 'Rector\\Set\\' => 11, 'Rector\\RectorInstaller\\' => 23, 'Rector\\RectorGenerator\\' => 23, 'Rector\\PHPUnit\\' => 15, @@ -106,10 +105,6 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 array ( 0 => __DIR__ . '/..' . '/rector/rector-symfony/src', ), - 'Rector\\Set\\' => - array ( - 0 => __DIR__ . '/..' . '/rector/rector-downgrade-php/packages/Set', - ), 'Rector\\RectorInstaller\\' => array ( 0 => __DIR__ . '/..' . '/rector/extension-installer/src', @@ -147,6 +142,7 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 0 => __DIR__ . '/../..' . '/packages', 1 => __DIR__ . '/../..' . '/rules', 2 => __DIR__ . '/..' . '/rector/rector-downgrade-php/src', + 3 => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules', ), 'RectorPrefix202208\\Webmozart\\Assert\\' => array ( @@ -2096,140 +2092,140 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorEmptyAssignRemover' => __DIR__ . '/../..' . '/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php', 'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorImportsMerger' => __DIR__ . '/../..' . '/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php', 'Rector\\DogFood\\Rector\\Closure\\UpgradeRectorConfigRector' => __DIR__ . '/../..' . '/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php', - 'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php', - 'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php', - 'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php', - 'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeThisInClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php', - 'Rector\\DowngradePhp54\\Rector\\FuncCall\\DowngradeIndirectCallByArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php', - 'Rector\\DowngradePhp54\\Rector\\FunctionLike\\DowngradeCallableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php', - 'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php', - 'Rector\\DowngradePhp54\\Rector\\MethodCall\\DowngradeInstanceMethodCallRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php', - 'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php', - 'Rector\\DowngradePhp55\\Rector\\Foreach_\\DowngradeForeachListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php', - 'Rector\\DowngradePhp55\\Rector\\FuncCall\\DowngradeBoolvalRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php', - 'Rector\\DowngradePhp55\\Rector\\Isset_\\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php', - 'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/ArgManipulator.php', - 'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/UnpackedArgList.php', - 'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php', - 'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php', - 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php', - 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php', - 'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php', - 'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php', - 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\Coalesce\\DowngradeNullCoalesceRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php', - 'Rector\\DowngradePhp70\\Rector\\Declare_\\DowngradeStrictTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\Expr\\DowngradeUnnecessarilyParenthesizedExpressionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php', - 'Rector\\DowngradePhp70\\Rector\\Expression\\DowngradeDefineArrayConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php', - 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeDirnameLevelsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php', - 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeSessionStartArrayOptionsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php', - 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeUncallableValueCallToCallUserFuncRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php', - 'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeScalarTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeThrowableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php', - 'Rector\\DowngradePhp70\\Rector\\GroupUse\\SplitGroupedUseImportsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php', - 'Rector\\DowngradePhp70\\Rector\\Instanceof_\\DowngradeInstanceofThrowableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php', - 'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeClosureCallRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php', - 'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeMethodCallOnCloneRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php', - 'Rector\\DowngradePhp70\\Rector\\New_\\DowngradeAnonymousClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php', - 'Rector\\DowngradePhp70\\Rector\\Spaceship\\DowngradeSpaceshipRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php', - 'Rector\\DowngradePhp70\\Rector\\TryCatch\\DowngradeCatchThrowableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php', - 'Rector\\DowngradePhp70\\Tokenizer\\WrappedInParenthesesAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php', - 'Rector\\DowngradePhp71\\Rector\\Array_\\SymmetricArrayDestructuringToListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php', - 'Rector\\DowngradePhp71\\Rector\\ClassConst\\DowngradeClassConstantVisibilityRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php', - 'Rector\\DowngradePhp71\\Rector\\ConstFetch\\DowngradePhp71JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php', - 'Rector\\DowngradePhp71\\Rector\\FuncCall\\DowngradeIsIterableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php', - 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeIterablePseudoTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php', - 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeNullableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php', - 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeVoidTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php', - 'Rector\\DowngradePhp71\\Rector\\List_\\DowngradeKeysInListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php', - 'Rector\\DowngradePhp71\\Rector\\StaticCall\\DowngradeClosureFromCallableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php', - 'Rector\\DowngradePhp71\\Rector\\String_\\DowngradeNegativeStringOffsetToStrlenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php', - 'Rector\\DowngradePhp71\\Rector\\TryCatch\\DowngradePipeToMultiCatchExceptionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\BuiltInMethodAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\FunctionExistsFunCallAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\OverrideFromAnonymousClassMethodAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\RegexFuncAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeAnalyzer\\SealedClassAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php', - 'Rector\\DowngradePhp72\\NodeManipulator\\BitwiseFlagCleaner' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php', - 'Rector\\DowngradePhp72\\NodeManipulator\\JsonConstCleaner' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/JsonConstCleaner.php', - 'Rector\\DowngradePhp72\\PhpDoc\\NativeParamToPhpDocDecorator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php', - 'Rector\\DowngradePhp72\\Rector\\ClassMethod\\DowngradeParameterTypeWideningRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php', - 'Rector\\DowngradePhp72\\Rector\\ConstFetch\\DowngradePhp72JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php', - 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeJsonDecodeNullAssociativeArgRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php', - 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php', - 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeStreamIsattyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php', - 'Rector\\DowngradePhp72\\Rector\\FunctionLike\\DowngradeObjectTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php', - 'Rector\\DowngradePhp73\\Rector\\ConstFetch\\DowngradePhp73JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php', - 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeArrayKeyFirstLastRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php', - 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeIsCountableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php', - 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeTrailingCommasInFunctionCallsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php', - 'Rector\\DowngradePhp73\\Rector\\FuncCall\\SetCookieOptionsArrayToArgumentsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php', - 'Rector\\DowngradePhp73\\Rector\\List_\\DowngradeListReferenceAssignmentRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php', - 'Rector\\DowngradePhp73\\Rector\\String_\\DowngradeFlexibleHeredocSyntaxRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php', - 'Rector\\DowngradePhp73\\Tokenizer\\FollowedByCommaAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php', - 'Rector\\DowngradePhp74\\Rector\\Array_\\DowngradeArraySpreadRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php', - 'Rector\\DowngradePhp74\\Rector\\ArrowFunction\\ArrowFunctionToAnonymousFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php', - 'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeContravariantArgumentTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php', - 'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeCovariantReturnTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php', - 'Rector\\DowngradePhp74\\Rector\\Coalesce\\DowngradeNullCoalescingOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php', - 'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeArrayMergeCallWithoutArgumentsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php', - 'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeStripTagsCallWithArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php', - 'Rector\\DowngradePhp74\\Rector\\Identical\\DowngradeFreadFwriteFalsyToNegationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php', - 'Rector\\DowngradePhp74\\Rector\\Interface_\\DowngradePreviouslyImplementedInterfaceRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php', - 'Rector\\DowngradePhp74\\Rector\\LNumber\\DowngradeNumericLiteralSeparatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php', - 'Rector\\DowngradePhp74\\Rector\\MethodCall\\DowngradeReflectionGetTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php', - 'Rector\\DowngradePhp74\\Rector\\Property\\DowngradeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php', - 'Rector\\DowngradePhp80\\NodeAnalyzer\\EnumAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php', - 'Rector\\DowngradePhp80\\NodeAnalyzer\\NamedToUnnamedArgs' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php', - 'Rector\\DowngradePhp80\\NodeAnalyzer\\UnnamedArgumentResolver' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php', - 'Rector\\DowngradePhp80\\Rector\\ArrayDimFetch\\DowngradeDereferenceableOperationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php', - 'Rector\\DowngradePhp80\\Rector\\Catch_\\DowngradeNonCapturingCatchesRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassConstFetch\\DowngradeClassOnObjectToGetClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeAbstractPrivateMethodInTraitRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeRecursiveDirectoryIteratorHasChildrenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStaticTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStringReturnTypeOnToStringRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php', - 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeTrailingCommasInParamUseRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php', - 'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradeAttributeToAnnotationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php', - 'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradePropertyPromotionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php', - 'Rector\\DowngradePhp80\\Rector\\Enum_\\DowngradeEnumToConstantListClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php', - 'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeMatchToSwitchRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php', - 'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeThrowExprRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeArrayFilterNullableCallbackRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeNumberFormatNoFourthArgRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrContainsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrEndsWithRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php', - 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrStartsWithRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php', - 'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeMixedTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php', - 'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeUnionTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php', - 'Rector\\DowngradePhp80\\Rector\\Instanceof_\\DowngradePhp80ResourceReturnToObjectRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php', - 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeNamedArgumentRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php', - 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionClassGetConstantsFilterRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php', - 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionGetAttributesRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php', - 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionPropertyGetDefaultValueRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php', - 'Rector\\DowngradePhp80\\Rector\\New_\\DowngradeArbitraryExpressionsSupportRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php', - 'Rector\\DowngradePhp80\\Rector\\NullsafeMethodCall\\DowngradeNullsafeToTernaryOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php', - 'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeMixedTypeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php', - 'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeUnionTypeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php', - 'Rector\\DowngradePhp80\\Rector\\StaticCall\\DowngradePhpTokenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php', - 'Rector\\DowngradePhp80\\Reflection\\DefaultParameterValueResolver' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/DefaultParameterValueResolver.php', - 'Rector\\DowngradePhp80\\Reflection\\SimplePhpParameterReflection' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/SimplePhpParameterReflection.php', - 'Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php', - 'Rector\\DowngradePhp81\\NodeAnalyzer\\ArraySpreadAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php', - 'Rector\\DowngradePhp81\\NodeFactory\\ArrayMergeFromArraySpreadFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php', - 'Rector\\DowngradePhp81\\NodeManipulator\\ObjectToResourceReturn' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php', - 'Rector\\DowngradePhp81\\Rector\\Array_\\DowngradeArraySpreadStringKeyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php', - 'Rector\\DowngradePhp81\\Rector\\ClassConst\\DowngradeFinalizePublicClassConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php', - 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeArrayIsListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php', - 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeEnumExistsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php', - 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeFirstClassCallableSyntaxRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php', - 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNeverTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php', - 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNewInInitializerRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php', - 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradePureIntersectionTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php', - 'Rector\\DowngradePhp81\\Rector\\Instanceof_\\DowngradePhp81ResourceReturnToObjectRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php', - 'Rector\\DowngradePhp81\\Rector\\Property\\DowngradeReadonlyPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php', - 'Rector\\DowngradePhp82\\Rector\\Class_\\DowngradeReadonlyClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php', + 'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php', + 'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php', + 'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php', + 'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeThisInClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php', + 'Rector\\DowngradePhp54\\Rector\\FuncCall\\DowngradeIndirectCallByArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php', + 'Rector\\DowngradePhp54\\Rector\\FunctionLike\\DowngradeCallableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php', + 'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php', + 'Rector\\DowngradePhp54\\Rector\\MethodCall\\DowngradeInstanceMethodCallRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php', + 'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php', + 'Rector\\DowngradePhp55\\Rector\\Foreach_\\DowngradeForeachListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php', + 'Rector\\DowngradePhp55\\Rector\\FuncCall\\DowngradeBoolvalRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php', + 'Rector\\DowngradePhp55\\Rector\\Isset_\\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php', + 'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php', + 'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php', + 'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php', + 'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php', + 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php', + 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php', + 'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php', + 'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php', + 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\Coalesce\\DowngradeNullCoalesceRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php', + 'Rector\\DowngradePhp70\\Rector\\Declare_\\DowngradeStrictTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\Expr\\DowngradeUnnecessarilyParenthesizedExpressionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php', + 'Rector\\DowngradePhp70\\Rector\\Expression\\DowngradeDefineArrayConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php', + 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeDirnameLevelsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php', + 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeSessionStartArrayOptionsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php', + 'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeUncallableValueCallToCallUserFuncRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php', + 'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeScalarTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeThrowableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php', + 'Rector\\DowngradePhp70\\Rector\\GroupUse\\SplitGroupedUseImportsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php', + 'Rector\\DowngradePhp70\\Rector\\Instanceof_\\DowngradeInstanceofThrowableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php', + 'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeClosureCallRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php', + 'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeMethodCallOnCloneRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php', + 'Rector\\DowngradePhp70\\Rector\\New_\\DowngradeAnonymousClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php', + 'Rector\\DowngradePhp70\\Rector\\Spaceship\\DowngradeSpaceshipRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php', + 'Rector\\DowngradePhp70\\Rector\\TryCatch\\DowngradeCatchThrowableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php', + 'Rector\\DowngradePhp70\\Tokenizer\\WrappedInParenthesesAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php', + 'Rector\\DowngradePhp71\\Rector\\Array_\\SymmetricArrayDestructuringToListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php', + 'Rector\\DowngradePhp71\\Rector\\ClassConst\\DowngradeClassConstantVisibilityRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php', + 'Rector\\DowngradePhp71\\Rector\\ConstFetch\\DowngradePhp71JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php', + 'Rector\\DowngradePhp71\\Rector\\FuncCall\\DowngradeIsIterableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php', + 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeIterablePseudoTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php', + 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeNullableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php', + 'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeVoidTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php', + 'Rector\\DowngradePhp71\\Rector\\List_\\DowngradeKeysInListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php', + 'Rector\\DowngradePhp71\\Rector\\StaticCall\\DowngradeClosureFromCallableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php', + 'Rector\\DowngradePhp71\\Rector\\String_\\DowngradeNegativeStringOffsetToStrlenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php', + 'Rector\\DowngradePhp71\\Rector\\TryCatch\\DowngradePipeToMultiCatchExceptionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\BuiltInMethodAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\FunctionExistsFunCallAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\OverrideFromAnonymousClassMethodAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\RegexFuncAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeAnalyzer\\SealedClassAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php', + 'Rector\\DowngradePhp72\\NodeManipulator\\BitwiseFlagCleaner' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php', + 'Rector\\DowngradePhp72\\NodeManipulator\\JsonConstCleaner' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php', + 'Rector\\DowngradePhp72\\PhpDoc\\NativeParamToPhpDocDecorator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php', + 'Rector\\DowngradePhp72\\Rector\\ClassMethod\\DowngradeParameterTypeWideningRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php', + 'Rector\\DowngradePhp72\\Rector\\ConstFetch\\DowngradePhp72JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php', + 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeJsonDecodeNullAssociativeArgRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php', + 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php', + 'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeStreamIsattyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php', + 'Rector\\DowngradePhp72\\Rector\\FunctionLike\\DowngradeObjectTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php', + 'Rector\\DowngradePhp73\\Rector\\ConstFetch\\DowngradePhp73JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php', + 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeArrayKeyFirstLastRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php', + 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeIsCountableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php', + 'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeTrailingCommasInFunctionCallsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php', + 'Rector\\DowngradePhp73\\Rector\\FuncCall\\SetCookieOptionsArrayToArgumentsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php', + 'Rector\\DowngradePhp73\\Rector\\List_\\DowngradeListReferenceAssignmentRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php', + 'Rector\\DowngradePhp73\\Rector\\String_\\DowngradeFlexibleHeredocSyntaxRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php', + 'Rector\\DowngradePhp73\\Tokenizer\\FollowedByCommaAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php', + 'Rector\\DowngradePhp74\\Rector\\Array_\\DowngradeArraySpreadRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php', + 'Rector\\DowngradePhp74\\Rector\\ArrowFunction\\ArrowFunctionToAnonymousFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php', + 'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeContravariantArgumentTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php', + 'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeCovariantReturnTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php', + 'Rector\\DowngradePhp74\\Rector\\Coalesce\\DowngradeNullCoalescingOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php', + 'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeArrayMergeCallWithoutArgumentsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php', + 'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeStripTagsCallWithArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php', + 'Rector\\DowngradePhp74\\Rector\\Identical\\DowngradeFreadFwriteFalsyToNegationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php', + 'Rector\\DowngradePhp74\\Rector\\Interface_\\DowngradePreviouslyImplementedInterfaceRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php', + 'Rector\\DowngradePhp74\\Rector\\LNumber\\DowngradeNumericLiteralSeparatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php', + 'Rector\\DowngradePhp74\\Rector\\MethodCall\\DowngradeReflectionGetTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php', + 'Rector\\DowngradePhp74\\Rector\\Property\\DowngradeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php', + 'Rector\\DowngradePhp80\\NodeAnalyzer\\EnumAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php', + 'Rector\\DowngradePhp80\\NodeAnalyzer\\NamedToUnnamedArgs' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php', + 'Rector\\DowngradePhp80\\NodeAnalyzer\\UnnamedArgumentResolver' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php', + 'Rector\\DowngradePhp80\\Rector\\ArrayDimFetch\\DowngradeDereferenceableOperationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php', + 'Rector\\DowngradePhp80\\Rector\\Catch_\\DowngradeNonCapturingCatchesRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassConstFetch\\DowngradeClassOnObjectToGetClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeAbstractPrivateMethodInTraitRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeRecursiveDirectoryIteratorHasChildrenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStaticTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStringReturnTypeOnToStringRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php', + 'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeTrailingCommasInParamUseRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php', + 'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradeAttributeToAnnotationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php', + 'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradePropertyPromotionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php', + 'Rector\\DowngradePhp80\\Rector\\Enum_\\DowngradeEnumToConstantListClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php', + 'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeMatchToSwitchRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php', + 'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeThrowExprRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeArrayFilterNullableCallbackRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeNumberFormatNoFourthArgRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrContainsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrEndsWithRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php', + 'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrStartsWithRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php', + 'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeMixedTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php', + 'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeUnionTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php', + 'Rector\\DowngradePhp80\\Rector\\Instanceof_\\DowngradePhp80ResourceReturnToObjectRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php', + 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeNamedArgumentRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php', + 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionClassGetConstantsFilterRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php', + 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionGetAttributesRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php', + 'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionPropertyGetDefaultValueRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php', + 'Rector\\DowngradePhp80\\Rector\\New_\\DowngradeArbitraryExpressionsSupportRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php', + 'Rector\\DowngradePhp80\\Rector\\NullsafeMethodCall\\DowngradeNullsafeToTernaryOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php', + 'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeMixedTypeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php', + 'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeUnionTypeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php', + 'Rector\\DowngradePhp80\\Rector\\StaticCall\\DowngradePhpTokenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php', + 'Rector\\DowngradePhp80\\Reflection\\DefaultParameterValueResolver' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/DefaultParameterValueResolver.php', + 'Rector\\DowngradePhp80\\Reflection\\SimplePhpParameterReflection' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php', + 'Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php', + 'Rector\\DowngradePhp81\\NodeAnalyzer\\ArraySpreadAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php', + 'Rector\\DowngradePhp81\\NodeFactory\\ArrayMergeFromArraySpreadFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php', + 'Rector\\DowngradePhp81\\NodeManipulator\\ObjectToResourceReturn' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php', + 'Rector\\DowngradePhp81\\Rector\\Array_\\DowngradeArraySpreadStringKeyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php', + 'Rector\\DowngradePhp81\\Rector\\ClassConst\\DowngradeFinalizePublicClassConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php', + 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeArrayIsListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php', + 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeEnumExistsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php', + 'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeFirstClassCallableSyntaxRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php', + 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNeverTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php', + 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNewInInitializerRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php', + 'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradePureIntersectionTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php', + 'Rector\\DowngradePhp81\\Rector\\Instanceof_\\DowngradePhp81ResourceReturnToObjectRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php', + 'Rector\\DowngradePhp81\\Rector\\Property\\DowngradeReadonlyPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php', + 'Rector\\DowngradePhp82\\Rector\\Class_\\DowngradeReadonlyClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php', 'Rector\\EarlyReturn\\NodeFactory\\InvertedIfFactory' => __DIR__ . '/../..' . '/rules/EarlyReturn/NodeFactory/InvertedIfFactory.php', 'Rector\\EarlyReturn\\NodeTransformer\\ConditionInverter' => __DIR__ . '/../..' . '/rules/EarlyReturn/NodeTransformer/ConditionInverter.php', 'Rector\\EarlyReturn\\Rector\\Foreach_\\ChangeNestedForeachIfsToEarlyContinueRector' => __DIR__ . '/../..' . '/rules/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector.php', @@ -2737,6 +2733,7 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 'Rector\\PhpAttribute\\UnwrapableAnnotationAnalyzer' => __DIR__ . '/../..' . '/packages/PhpAttribute/UnwrapableAnnotationAnalyzer.php', 'Rector\\PhpAttribute\\UseAliasNameMatcher' => __DIR__ . '/../..' . '/packages/PhpAttribute/UseAliasNameMatcher.php', 'Rector\\PhpAttribute\\ValueObject\\UseAliasMetadata' => __DIR__ . '/../..' . '/packages/PhpAttribute/ValueObject/UseAliasMetadata.php', + 'Rector\\PhpDocDecorator\\PhpDocFromTypeDeclarationDecorator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php', 'Rector\\PostRector\\Application\\PostFileProcessor' => __DIR__ . '/../..' . '/packages/PostRector/Application/PostFileProcessor.php', 'Rector\\PostRector\\Collector\\NodesToAddCollector' => __DIR__ . '/../..' . '/packages/PostRector/Collector/NodesToAddCollector.php', 'Rector\\PostRector\\Collector\\NodesToRemoveCollector' => __DIR__ . '/../..' . '/packages/PostRector/Collector/NodesToRemoveCollector.php', @@ -2858,8 +2855,8 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 'Rector\\Restoration\\Rector\\Property\\MakeTypedPropertyNullableIfCheckedRector' => __DIR__ . '/../..' . '/rules/Restoration/Rector/Property/MakeTypedPropertyNullableIfCheckedRector.php', 'Rector\\Restoration\\ValueObject\\CompleteImportForPartialAnnotation' => __DIR__ . '/../..' . '/rules/Restoration/ValueObject/CompleteImportForPartialAnnotation.php', 'Rector\\Set\\Contract\\SetListInterface' => __DIR__ . '/../..' . '/packages/Set/Contract/SetListInterface.php', - 'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeLevelSetList.php', - 'Rector\\Set\\ValueObject\\DowngradeSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeSetList.php', + 'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php', + 'Rector\\Set\\ValueObject\\DowngradeSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php', 'Rector\\Set\\ValueObject\\LevelSetList' => __DIR__ . '/../..' . '/packages/Set/ValueObject/LevelSetList.php', 'Rector\\Set\\ValueObject\\SetList' => __DIR__ . '/../..' . '/packages/Set/ValueObject/SetList.php', 'Rector\\StaticTypeMapper\\Contract\\PhpDocParser\\PhpDocTypeMapperInterface' => __DIR__ . '/../..' . '/packages/StaticTypeMapper/Contract/PhpDocParser/PhpDocTypeMapperInterface.php', @@ -3218,6 +3215,7 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 'Rector\\TypeDeclaration\\ValueObject\\AddReturnTypeDeclaration' => __DIR__ . '/../..' . '/rules/TypeDeclaration/ValueObject/AddReturnTypeDeclaration.php', 'Rector\\TypeDeclaration\\ValueObject\\AssignToVariable' => __DIR__ . '/../..' . '/rules/TypeDeclaration/ValueObject/AssignToVariable.php', 'Rector\\TypeDeclaration\\ValueObject\\NestedArrayType' => __DIR__ . '/../..' . '/rules/TypeDeclaration/ValueObject/NestedArrayType.php', + 'Rector\\ValueObject\\ClassMethodWillChangeReturnType' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/ValueObject/ClassMethodWillChangeReturnType.php', 'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodParamVendorLockResolver' => __DIR__ . '/../..' . '/packages/VendorLocker/NodeVendorLocker/ClassMethodParamVendorLockResolver.php', 'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodReturnTypeOverrideGuard' => __DIR__ . '/../..' . '/packages/VendorLocker/NodeVendorLocker/ClassMethodReturnTypeOverrideGuard.php', 'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodReturnVendorLockResolver' => __DIR__ . '/../..' . '/packages/VendorLocker/NodeVendorLocker/ClassMethodReturnVendorLockResolver.php', @@ -3251,9 +3249,9 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index f420fab0514..3e49f0fa16f 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1920,12 +1920,12 @@ "source": { "type": "git", "url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git", - "reference": "7ee4e58f8af4c6485fed261b0a0360a09b9c9d20" + "reference": "076e341bf0aa86b3ac2312b14c9fd5115d332a6f" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/7ee4e58f8af4c6485fed261b0a0360a09b9c9d20", - "reference": "7ee4e58f8af4c6485fed261b0a0360a09b9c9d20", + "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/076e341bf0aa86b3ac2312b14c9fd5115d332a6f", + "reference": "076e341bf0aa86b3ac2312b14c9fd5115d332a6f", "shasum": "" }, "require": { @@ -1949,7 +1949,7 @@ "symplify\/rule-doc-generator": "^11.0", "symplify\/vendor-patches": "^11.0" }, - "time": "2022-07-18T22:23:59+00:00", + "time": "2022-08-11T14:24:10+00:00", "default-branch": true, "type": "rector-extension", "extra": { @@ -1966,8 +1966,10 @@ "installation-source": "dist", "autoload": { "psr-4": { - "Rector\\": "src", - "Rector\\Set\\": "packages\/Set" + "Rector\\": [ + "src", + "rules" + ] } }, "notification-url": "https:\/\/packagist.org\/downloads\/", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index a939d06a8fc..c9b088ad801 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -2,4 +2,4 @@ namespace RectorPrefix202208; -return array('root' => array('name' => 'rector/rector-src', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.13.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '708411c7e45ac85371a99d50f52284971494bede', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'e300eb6c535192decd27a85bc72a9290f0d6b3bd', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.4', 'version' => '2.0.4.0', 'reference' => '8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.7', 'version' => '3.2.7.0', 'reference' => '0af4e3de4df9f1543534beab255ccf459e7a2c99', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.14.0', 'version' => '4.14.0.0', 'reference' => '34bea19b6e03d8153165d8f30bba4c3be86184c1', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.7.0', 'version' => '1.7.0.0', 'reference' => '367a8d9d5f7da2a0136422d27ce8840583926955', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.8.2', 'version' => '1.8.2.0', 'reference' => 'c53312ecc575caf07b0e90dee43883fdf90ca67c', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'reference' => '4a3c437c09075736285d1cabb5c75bf27ed0bc84', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit', 'aliases' => array(), 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'react/cache' => array('pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.4', 'version' => '0.6.4.0', 'reference' => 'a778f3fb828d68caf8a9ab6567fd8342a86f12fe', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => '6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '187fb56f46d424afb6ec4ad089269c72eec2e137', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.9.0', 'version' => '2.9.0.0', 'reference' => '234f8fd1023c9158e2314fa9d7d0e6a83db42910', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise-timer' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => 'aa7a73c74b8d8c0f622f5982ff7b0351bc29e495', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise-timer', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.11.0', 'version' => '1.11.0.0', 'reference' => 'f474156aaab4f09041144fa8b57c7d70aed32a1c', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '7a423506ee1903e89f1e08ec5f0ed430ff784ae9', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.13.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'c2ec06c0b51a41f1469b88539170b94b2bc0b9ef', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-cakephp', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '9781e776f068243ffb025f3d1346723cee7a2143', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-downgrade-php' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '7ee4e58f8af4c6485fed261b0a0360a09b9c9d20', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-generator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '38440b9580b6b1d8859bfb72849753b241a1e39a', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-generator', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '20edb95fcd91239389270534100b2eb9c39cdacc', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '3638a6672dab07562bc4dd1bd0c18ced6763d0c2', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpoffice', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '528d3135a2e565220a7e0b8fc85132e772693026', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpunit', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-src' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.13.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'f88fb132d5a7b27482c33d5e3b668f1f4f02d951', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '4.0.4', 'version' => '4.0.4.0', 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/config' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'a0645dc585d378b73c01115dd7ab9348f7d40c85', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '43fcb5c5966b43c56bcfa481368d90d748936ab8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.1.1', 'version' => '3.1.1.0', 'reference' => '8656c9e7f44435eaf428f2aa7f083c65297fb22f', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '079e336a1880f457b219aecc3d41bef2f1093b0b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/filesystem' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'c780e677cddda78417fa5187a7c6cd2f21110db9', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '39696bff2c2970b3779a5cac7bf9f0b88fc2b709', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/polyfill-ctype' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-grapheme' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '219aa369ceff116e673852dce47c3a41794c14bd', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'f35241f45c30bcd9046af2bb200a7086f70e1d6b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symplify/astral' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '3bf841a98ab1313b900723071ce58cb8281beacb', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../symplify/astral', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/autowire-array-parameter' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '5812405ad38e2538d27a62cc39797fde332653ad', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/composer-json-manipulator' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '5a03e3d9f6d094f6b5278f7bf4234c251a61b634', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/composer-json-manipulator', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '55be52533268a00b8326b7507d3edccf5f6af20d', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-testing' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '13ce0a44e75226d9febbfe4219d4cbee3a1f9625', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/easy-testing', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/package-builder' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '7494e2d0db712770c1201dd26587c8f7989d36b3', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/package-builder', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '20b64e68bd935881edd2d1a3845cfb1763fe20ac', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/skipper' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '4676bf4dfca104420000eee7db2e2dde71b3ae89', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/skipper', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/smart-file-system' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => 'e6ce161392db2086919d893ba58eaae41c1089df', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/smart-file-system', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/symplify-kernel' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '93d65a773fca1f5652d20399306f5d0029af6626', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/symplify-kernel', 'aliases' => array(), 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.9.4', 'version' => '2.9.4.0', 'reference' => '0ed605329b095f5f5fe2db2adc3d1ee80c917294', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', 'aliases' => array(), 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.11.0', 'version' => '1.11.0.0', 'reference' => '11cb2199493b2f8a3b53e7f19068fc6aac760991', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'dev_requirement' => \false))); +return array('root' => array('name' => 'rector/rector-src', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.13.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '708411c7e45ac85371a99d50f52284971494bede', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'e300eb6c535192decd27a85bc72a9290f0d6b3bd', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.4', 'version' => '2.0.4.0', 'reference' => '8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.7', 'version' => '3.2.7.0', 'reference' => '0af4e3de4df9f1543534beab255ccf459e7a2c99', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.14.0', 'version' => '4.14.0.0', 'reference' => '34bea19b6e03d8153165d8f30bba4c3be86184c1', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.7.0', 'version' => '1.7.0.0', 'reference' => '367a8d9d5f7da2a0136422d27ce8840583926955', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.8.2', 'version' => '1.8.2.0', 'reference' => 'c53312ecc575caf07b0e90dee43883fdf90ca67c', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'reference' => '4a3c437c09075736285d1cabb5c75bf27ed0bc84', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit', 'aliases' => array(), 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'react/cache' => array('pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.4', 'version' => '0.6.4.0', 'reference' => 'a778f3fb828d68caf8a9ab6567fd8342a86f12fe', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => '6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '187fb56f46d424afb6ec4ad089269c72eec2e137', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.9.0', 'version' => '2.9.0.0', 'reference' => '234f8fd1023c9158e2314fa9d7d0e6a83db42910', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise-timer' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => 'aa7a73c74b8d8c0f622f5982ff7b0351bc29e495', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise-timer', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.11.0', 'version' => '1.11.0.0', 'reference' => 'f474156aaab4f09041144fa8b57c7d70aed32a1c', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '7a423506ee1903e89f1e08ec5f0ed430ff784ae9', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.13.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'c2ec06c0b51a41f1469b88539170b94b2bc0b9ef', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-cakephp', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '9781e776f068243ffb025f3d1346723cee7a2143', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-downgrade-php' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '076e341bf0aa86b3ac2312b14c9fd5115d332a6f', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-generator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '38440b9580b6b1d8859bfb72849753b241a1e39a', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-generator', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '20edb95fcd91239389270534100b2eb9c39cdacc', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '3638a6672dab07562bc4dd1bd0c18ced6763d0c2', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpoffice', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '528d3135a2e565220a7e0b8fc85132e772693026', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpunit', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-src' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.13.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'f88fb132d5a7b27482c33d5e3b668f1f4f02d951', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '4.0.4', 'version' => '4.0.4.0', 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/config' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'a0645dc585d378b73c01115dd7ab9348f7d40c85', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '43fcb5c5966b43c56bcfa481368d90d748936ab8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.1.1', 'version' => '3.1.1.0', 'reference' => '8656c9e7f44435eaf428f2aa7f083c65297fb22f', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '079e336a1880f457b219aecc3d41bef2f1093b0b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/filesystem' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'c780e677cddda78417fa5187a7c6cd2f21110db9', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '39696bff2c2970b3779a5cac7bf9f0b88fc2b709', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/polyfill-ctype' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-grapheme' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '219aa369ceff116e673852dce47c3a41794c14bd', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'f35241f45c30bcd9046af2bb200a7086f70e1d6b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symplify/astral' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '3bf841a98ab1313b900723071ce58cb8281beacb', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../symplify/astral', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/autowire-array-parameter' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '5812405ad38e2538d27a62cc39797fde332653ad', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/composer-json-manipulator' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '5a03e3d9f6d094f6b5278f7bf4234c251a61b634', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/composer-json-manipulator', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '55be52533268a00b8326b7507d3edccf5f6af20d', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-testing' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '13ce0a44e75226d9febbfe4219d4cbee3a1f9625', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/easy-testing', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/package-builder' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '7494e2d0db712770c1201dd26587c8f7989d36b3', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/package-builder', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '20b64e68bd935881edd2d1a3845cfb1763fe20ac', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/skipper' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '4676bf4dfca104420000eee7db2e2dde71b3ae89', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/skipper', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/smart-file-system' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => 'e6ce161392db2086919d893ba58eaae41c1089df', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/smart-file-system', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/symplify-kernel' => array('pretty_version' => '11.1.2', 'version' => '11.1.2.0', 'reference' => '93d65a773fca1f5652d20399306f5d0029af6626', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/symplify-kernel', 'aliases' => array(), 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.9.4', 'version' => '2.9.4.0', 'reference' => '0ed605329b095f5f5fe2db2adc3d1ee80c917294', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', 'aliases' => array(), 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.11.0', 'version' => '1.11.0.0', 'reference' => '11cb2199493b2f8a3b53e7f19068fc6aac760991', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'dev_requirement' => \false))); diff --git a/vendor/rector/extension-installer/src/GeneratedConfig.php b/vendor/rector/extension-installer/src/GeneratedConfig.php index 94cde175b1c..62a3ea8f111 100644 --- a/vendor/rector/extension-installer/src/GeneratedConfig.php +++ b/vendor/rector/extension-installer/src/GeneratedConfig.php @@ -9,7 +9,7 @@ namespace Rector\RectorInstaller; */ final class GeneratedConfig { - public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c2ec06c'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9781e77'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7ee4e58'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38440b9'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 20edb95'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3638a66'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 528d313'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f88fb13')); + public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c2ec06c'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9781e77'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 076e341'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38440b9'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 20edb95'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3638a66'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 528d313'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f88fb13')); private function __construct() { } diff --git a/vendor/rector/rector-doctrine/src/NodeAnalyzer/AttributeFinder.php b/vendor/rector/rector-doctrine/src/NodeAnalyzer/AttributeFinder.php index 3bc794e66a5..fe83baa972c 100644 --- a/vendor/rector/rector-doctrine/src/NodeAnalyzer/AttributeFinder.php +++ b/vendor/rector/rector-doctrine/src/NodeAnalyzer/AttributeFinder.php @@ -79,10 +79,7 @@ final class AttributeFinder } return null; } - /** - * @return \PhpParser\Node\Expr|null - */ - private function findArgByName(Attribute $attribute, string $argName) + private function findArgByName(Attribute $attribute, string $argName) : ?\PhpParser\Node\Expr { foreach ($attribute->args as $arg) { if ($arg->name === null) { diff --git a/vendor/rector/rector-doctrine/src/NodeAnalyzer/AttrinationFinder.php b/vendor/rector/rector-doctrine/src/NodeAnalyzer/AttrinationFinder.php index fe88e827333..909be664589 100644 --- a/vendor/rector/rector-doctrine/src/NodeAnalyzer/AttrinationFinder.php +++ b/vendor/rector/rector-doctrine/src/NodeAnalyzer/AttrinationFinder.php @@ -35,7 +35,6 @@ final class AttrinationFinder * @api * @param class-string $name * @param \PhpParser\Node\Stmt\Property|\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Param $node - * @return \Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode|\PhpParser\Node\Attribute|null */ public function getByOne($node, string $name) { diff --git a/vendor/rector/rector-doctrine/src/NodeAnalyzer/TargetEntityResolver.php b/vendor/rector/rector-doctrine/src/NodeAnalyzer/TargetEntityResolver.php index 05ecdc6860c..9bc2eca49aa 100644 --- a/vendor/rector/rector-doctrine/src/NodeAnalyzer/TargetEntityResolver.php +++ b/vendor/rector/rector-doctrine/src/NodeAnalyzer/TargetEntityResolver.php @@ -26,10 +26,7 @@ final class TargetEntityResolver $this->nodeNameResolver = $nodeNameResolver; $this->reflectionProvider = $reflectionProvider; } - /** - * @return string|null - */ - public function resolveFromExpr(Expr $targetEntityExpr) + public function resolveFromExpr(Expr $targetEntityExpr) : ?string { if ($targetEntityExpr instanceof ClassConstFetch) { $targetEntity = (string) $this->nodeNameResolver->getName($targetEntityExpr->class); diff --git a/vendor/rector/rector-doctrine/src/NodeManipulator/ColumnPropertyTypeResolver.php b/vendor/rector/rector-doctrine/src/NodeManipulator/ColumnPropertyTypeResolver.php index b196478bb31..6fca021daa7 100644 --- a/vendor/rector/rector-doctrine/src/NodeManipulator/ColumnPropertyTypeResolver.php +++ b/vendor/rector/rector-doctrine/src/NodeManipulator/ColumnPropertyTypeResolver.php @@ -105,10 +105,7 @@ final class ColumnPropertyTypeResolver $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($property); return $this->resolveFromPhpDocInfo($phpDocInfo, $isNullable); } - /** - * @return null|\PHPStan\Type\Type - */ - private function resolveFromPhpDocInfo(PhpDocInfo $phpDocInfo, bool $isNullable) + private function resolveFromPhpDocInfo(PhpDocInfo $phpDocInfo, bool $isNullable) : ?\PHPStan\Type\Type { $doctrineAnnotationTagValueNode = $phpDocInfo->findOneByAnnotationClass(self::COLUMN_CLASS); if (!$doctrineAnnotationTagValueNode instanceof DoctrineAnnotationTagValueNode) { diff --git a/vendor/rector/rector-doctrine/src/NodeManipulator/ToManyRelationPropertyTypeResolver.php b/vendor/rector/rector-doctrine/src/NodeManipulator/ToManyRelationPropertyTypeResolver.php index 56f45b60716..a5dff6fcbb1 100644 --- a/vendor/rector/rector-doctrine/src/NodeManipulator/ToManyRelationPropertyTypeResolver.php +++ b/vendor/rector/rector-doctrine/src/NodeManipulator/ToManyRelationPropertyTypeResolver.php @@ -63,10 +63,7 @@ final class ToManyRelationPropertyTypeResolver } return $this->resolveTypeFromTargetEntity($expr, $property); } - /** - * @return \PHPStan\Type\Type|null - */ - private function processToManyRelation(Property $property, DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) + private function processToManyRelation(Property $property, DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?\PHPStan\Type\Type { $targetEntity = $doctrineAnnotationTagValueNode->getValueWithoutQuotes('targetEntity'); if (!\is_string($targetEntity)) { diff --git a/vendor/rector/rector-doctrine/src/Rector/Class_/ClassAnnotationToNamedArgumentConstructorRector.php b/vendor/rector/rector-doctrine/src/Rector/Class_/ClassAnnotationToNamedArgumentConstructorRector.php index 60148fa52aa..9873ea0efa7 100644 --- a/vendor/rector/rector-doctrine/src/Rector/Class_/ClassAnnotationToNamedArgumentConstructorRector.php +++ b/vendor/rector/rector-doctrine/src/Rector/Class_/ClassAnnotationToNamedArgumentConstructorRector.php @@ -184,10 +184,7 @@ CODE_SAMPLE $assign->expr = new Variable($assignToPropertyFetch->getPropertyName()); } } - /** - * @return \PhpParser\Node\Stmt\Class_|null - */ - private function decorateClassWithAssignClassMethod(Class_ $class) + private function decorateClassWithAssignClassMethod(Class_ $class) : ?\PhpParser\Node\Stmt\Class_ { // complete public properties $constructClassMethod = $this->constructClassMethodFactory->createFromPublicClassProperties($class); diff --git a/vendor/rector/rector-doctrine/src/Rector/Class_/InitializeDefaultEntityCollectionRector.php b/vendor/rector/rector-doctrine/src/Rector/Class_/InitializeDefaultEntityCollectionRector.php index fbf9a3d325a..6d604fb24ca 100644 --- a/vendor/rector/rector-doctrine/src/Rector/Class_/InitializeDefaultEntityCollectionRector.php +++ b/vendor/rector/rector-doctrine/src/Rector/Class_/InitializeDefaultEntityCollectionRector.php @@ -139,10 +139,7 @@ CODE_SAMPLE } return $assigns; } - /** - * @return \PhpParser\Node\Stmt\Class_|null - */ - private function refactorClass(Class_ $class) + private function refactorClass(Class_ $class) : ?\PhpParser\Node\Stmt\Class_ { $toManyPropertyNames = $this->resolveToManyPropertyNames($class); if ($toManyPropertyNames === []) { diff --git a/vendor/rector/rector-doctrine/src/Rector/Class_/LoggableBehaviorRector.php b/vendor/rector/rector-doctrine/src/Rector/Class_/LoggableBehaviorRector.php index 54d6998ce98..2536313e2ba 100644 --- a/vendor/rector/rector-doctrine/src/Rector/Class_/LoggableBehaviorRector.php +++ b/vendor/rector/rector-doctrine/src/Rector/Class_/LoggableBehaviorRector.php @@ -87,10 +87,7 @@ CODE_SAMPLE } return $this->refactorProperty($node); } - /** - * @return \PhpParser\Node\Stmt\Class_|null - */ - private function refactorClass(Class_ $class) + private function refactorClass(Class_ $class) : ?\PhpParser\Node\Stmt\Class_ { // change the node $classPhpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($class); diff --git a/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromColumnTypeRector.php b/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromColumnTypeRector.php index 8926b67f9b2..12371516ad4 100644 --- a/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromColumnTypeRector.php +++ b/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromColumnTypeRector.php @@ -92,9 +92,8 @@ CODE_SAMPLE } /** * @param Property $node - * @return \PhpParser\Node\Stmt\Property|null */ - public function refactor(Node $node) + public function refactor(Node $node) : ?\PhpParser\Node\Stmt\Property { if ($node->type !== null) { return null; diff --git a/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php b/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php index 660961723cf..9a1d21643aa 100644 --- a/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php +++ b/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php @@ -85,9 +85,8 @@ CODE_SAMPLE } /** * @param Property $node - * @return \PhpParser\Node\Stmt\Property|null */ - public function refactor(Node $node) + public function refactor(Node $node) : ?\PhpParser\Node\Stmt\Property { if ($node->type !== null) { return null; diff --git a/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php b/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php index 4a73c14c123..2ad175387b4 100644 --- a/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php +++ b/vendor/rector/rector-doctrine/src/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php @@ -86,9 +86,8 @@ CODE_SAMPLE } /** * @param Property $node - * @return \PhpParser\Node\Stmt\Property|null */ - public function refactor(Node $node) + public function refactor(Node $node) : ?\PhpParser\Node\Stmt\Property { if ($node->type !== null) { return null; diff --git a/vendor/rector/rector-downgrade-php/composer.json b/vendor/rector/rector-downgrade-php/composer.json index b2c9bc3fbc1..adf3bde37dc 100644 --- a/vendor/rector/rector-downgrade-php/composer.json +++ b/vendor/rector/rector-downgrade-php/composer.json @@ -23,13 +23,18 @@ }, "autoload": { "psr-4": { - "Rector\\": "src", - "Rector\\Set\\": "packages\/Set" + "Rector\\": [ + "src", + "rules" + ] } }, "autoload-dev": { "psr-4": { - "Rector\\Tests\\": "tests" + "Rector\\Tests\\": [ + "tests", + "rules-tests" + ] }, "classmap": [ "stubs" @@ -40,7 +45,7 @@ "check-cs": "vendor\/bin\/ecs check --ansi", "fix-cs": "vendor\/bin\/ecs check --fix --ansi", "docs": [ - "vendor\/bin\/rule-doc-generator generate src --output-file docs\/rector_rules_overview.md --ansi", + "vendor\/bin\/rule-doc-generator generate rules --output-file docs\/rector_rules_overview.md --ansi", "vendor\/bin\/ecs check-markdown docs\/rector_rules_overview.md --ansi --fix" ] }, diff --git a/vendor/rector/rector-downgrade-php/config/config.php b/vendor/rector/rector-downgrade-php/config/config.php index 97d43b3f183..8a56c25e496 100644 --- a/vendor/rector/rector-downgrade-php/config/config.php +++ b/vendor/rector/rector-downgrade-php/config/config.php @@ -7,5 +7,6 @@ use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig) : void { $services = $rectorConfig->services(); $services->defaults()->public()->autowire()->autoconfigure(); - $services->load('Rector\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Downgrade*/Rector', __DIR__ . '/../src/*/ValueObject', __DIR__ . '/../src/DowngradePhp80/Reflection/SimplePhpParameterReflection.php']); + $services->load('Rector\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Set', __DIR__ . '/../src/ValueObject']); + $services->load('Rector\\', __DIR__ . '/../rules')->exclude([__DIR__ . '/../rules/Downgrade*/Rector', __DIR__ . '/../rules/*/ValueObject', __DIR__ . '/../rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php']); }; diff --git a/vendor/rector/rector-downgrade-php/docs/rector_rules_overview.md b/vendor/rector/rector-downgrade-php/docs/rector_rules_overview.md index 3d85f55bb83..8acda20738d 100644 --- a/vendor/rector/rector-downgrade-php/docs/rector_rules_overview.md +++ b/vendor/rector/rector-downgrade-php/docs/rector_rules_overview.md @@ -4,7 +4,7 @@ Replace arrow functions with anonymous functions -- class: [`Rector\DowngradePhp74\Rector\ArrowFunction\ArrowFunctionToAnonymousFunctionRector`](../src/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php) +- class: [`Rector\DowngradePhp74\Rector\ArrowFunction\ArrowFunctionToAnonymousFunctionRector`](../rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php) ```diff class SomeClass @@ -26,7 +26,7 @@ Replace arrow functions with anonymous functions Refactor __DIR__ to dirname(__FILE__) -- class: [`Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector`](../src/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php) +- class: [`Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector`](../rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php) ```diff final class SomeClass @@ -45,7 +45,7 @@ Refactor __DIR__ to dirname(__FILE__) Remove "abstract" from private methods in traits and adds an empty function body -- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeAbstractPrivateMethodInTraitRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php) +- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeAbstractPrivateMethodInTraitRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php) ```diff trait SomeTrait @@ -61,7 +61,7 @@ Remove "abstract" from private methods in traits and adds an empty function body Remove anonymous class -- class: [`Rector\DowngradePhp70\Rector\New_\DowngradeAnonymousClassRector`](../src/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php) +- class: [`Rector\DowngradePhp70\Rector\New_\DowngradeAnonymousClassRector`](../rules/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php) ```diff +class Anonymous @@ -90,7 +90,7 @@ Remove anonymous class Downgrade arbitrary expression arguments to `empty()` and `isset()` -- class: [`Rector\DowngradePhp55\Rector\Isset_\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector`](../src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php) +- class: [`Rector\DowngradePhp55\Rector\Isset_\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector`](../rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php) ```diff -if (isset(some_function())) { @@ -105,7 +105,7 @@ Downgrade arbitrary expression arguments to `empty()` and `isset()` Replace arbitrary expressions used with new or instanceof. -- class: [`Rector\DowngradePhp80\Rector\New_\DowngradeArbitraryExpressionsSupportRector`](../src/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php) +- class: [`Rector\DowngradePhp80\Rector\New_\DowngradeArbitraryExpressionsSupportRector`](../rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php) ```diff function getObjectClassName() { @@ -123,7 +123,7 @@ Replace arbitrary expressions used with new or instanceof. Replace argument unpacking by `call_user_func_array()` -- class: [`Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector`](../src/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php) +- class: [`Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector`](../rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php) ```diff class SomeClass @@ -142,7 +142,7 @@ Replace argument unpacking by `call_user_func_array()` Unset nullable callback on array_filter -- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeArrayFilterNullableCallbackRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php) +- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeArrayFilterNullableCallbackRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php) ```diff class SomeClass @@ -162,7 +162,7 @@ Unset nullable callback on array_filter Replace use ARRAY_FILTER_USE_BOTH and ARRAY_FILTER_USE_KEY to loop to filter it -- class: [`Rector\DowngradePhp56\Rector\FuncCall\DowngradeArrayFilterUseConstantRector`](../src/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php) +- class: [`Rector\DowngradePhp56\Rector\FuncCall\DowngradeArrayFilterUseConstantRector`](../rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php) ```diff $arr = ['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4]; @@ -186,7 +186,7 @@ Replace use ARRAY_FILTER_USE_BOTH and ARRAY_FILTER_USE_KEY to loop to filter it Replace `array_is_list()` function -- class: [`Rector\DowngradePhp81\Rector\FuncCall\DowngradeArrayIsListRector`](../src/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php) +- class: [`Rector\DowngradePhp81\Rector\FuncCall\DowngradeArrayIsListRector`](../rules/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php) ```diff -array_is_list([1 => 'apple', 'orange']); @@ -215,7 +215,7 @@ Replace `array_is_list()` function Downgrade `array_key_first()` and `array_key_last()` functions -- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeArrayKeyFirstLastRector`](../src/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php) +- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeArrayKeyFirstLastRector`](../rules/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php) ```diff class SomeClass @@ -235,7 +235,7 @@ Downgrade `array_key_first()` and `array_key_last()` functions Add missing param to `array_merge` and `array_merge_recursive` -- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeArrayMergeCallWithoutArgumentsRector`](../src/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php) +- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeArrayMergeCallWithoutArgumentsRector`](../rules/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php) ```diff class SomeClass @@ -256,7 +256,7 @@ Add missing param to `array_merge` and `array_merge_recursive` Replace array spread with array_merge function -- class: [`Rector\DowngradePhp74\Rector\Array_\DowngradeArraySpreadRector`](../src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php) +- class: [`Rector\DowngradePhp74\Rector\Array_\DowngradeArraySpreadRector`](../rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php) ```diff class SomeClass @@ -283,7 +283,7 @@ Replace array spread with array_merge function Replace array spread with string key to array_merge function -- class: [`Rector\DowngradePhp81\Rector\Array_\DowngradeArraySpreadStringKeyRector`](../src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php) +- class: [`Rector\DowngradePhp81\Rector\Array_\DowngradeArraySpreadStringKeyRector`](../rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php) ```diff $parts = ['a' => 'b']; @@ -301,7 +301,7 @@ Refactor PHP attribute markers to annotations notation :wrench: **configure it!** -- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradeAttributeToAnnotationRector`](../src/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php) +- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradeAttributeToAnnotationRector`](../rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php) ```php use Rector\Config\RectorConfig; @@ -339,7 +339,7 @@ return static function (RectorConfig $rectorConfig): void { Downgrade binary notation for integers -- class: [`Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector`](../src/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php) +- class: [`Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector`](../rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php) ```diff -$a = 0b11111100101; @@ -352,7 +352,7 @@ Downgrade binary notation for integers Replace `boolval()` by type casting to boolean -- class: [`Rector\DowngradePhp55\Rector\FuncCall\DowngradeBoolvalRector`](../src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php) +- class: [`Rector\DowngradePhp55\Rector\FuncCall\DowngradeBoolvalRector`](../rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php) ```diff -$bool = boolval($value); @@ -365,7 +365,7 @@ Replace `boolval()` by type casting to boolean Remove the "callable" param type, add a `@param` tag instead -- class: [`Rector\DowngradePhp54\Rector\FunctionLike\DowngradeCallableTypeDeclarationRector`](../src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp54\Rector\FunctionLike\DowngradeCallableTypeDeclarationRector`](../rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php) ```diff class SomeClass @@ -386,7 +386,7 @@ Remove the "callable" param type, add a `@param` tag instead Make catch clauses catching `Throwable` also catch `Exception` to support exception hierarchies in PHP 5. -- class: [`Rector\DowngradePhp70\Rector\TryCatch\DowngradeCatchThrowableRector`](../src/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php) +- class: [`Rector\DowngradePhp70\Rector\TryCatch\DowngradeCatchThrowableRector`](../rules/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php) ```diff try { @@ -404,7 +404,7 @@ Make catch clauses catching `Throwable` also catch `Exception` to support except Replace ::class constant by string class names -- class: [`Rector\DowngradePhp55\Rector\ClassConstFetch\DowngradeClassConstantToStringRector`](../src/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php) +- class: [`Rector\DowngradePhp55\Rector\ClassConstFetch\DowngradeClassConstantToStringRector`](../rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php) ```diff class AnotherClass @@ -426,7 +426,7 @@ Replace ::class constant by string class names Downgrade class constant visibility -- class: [`Rector\DowngradePhp71\Rector\ClassConst\DowngradeClassConstantVisibilityRector`](../src/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php) +- class: [`Rector\DowngradePhp71\Rector\ClassConst\DowngradeClassConstantVisibilityRector`](../rules/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php) ```diff class SomeClass @@ -446,7 +446,7 @@ Downgrade class constant visibility Change `$object::class` to get_class($object) -- class: [`Rector\DowngradePhp80\Rector\ClassConstFetch\DowngradeClassOnObjectToGetClassRector`](../src/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php) +- class: [`Rector\DowngradePhp80\Rector\ClassConstFetch\DowngradeClassOnObjectToGetClassRector`](../rules/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php) ```diff class SomeClass @@ -465,7 +465,7 @@ Change `$object::class` to get_class($object) Replace `Closure::call()` by `Closure::bindTo()` -- class: [`Rector\DowngradePhp70\Rector\MethodCall\DowngradeClosureCallRector`](../src/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php) +- class: [`Rector\DowngradePhp70\Rector\MethodCall\DowngradeClosureCallRector`](../rules/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php) ```diff -$closure->call($newObj, ...$args); @@ -478,7 +478,7 @@ Replace `Closure::call()` by `Closure::bindTo()` Converts `Closure::fromCallable()` to compatible alternative. -- class: [`Rector\DowngradePhp71\Rector\StaticCall\DowngradeClosureFromCallableRector`](../src/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php) +- class: [`Rector\DowngradePhp71\Rector\StaticCall\DowngradeClosureFromCallableRector`](../rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php) ```diff -\Closure::fromCallable('callable'); @@ -494,7 +494,7 @@ Converts `Closure::fromCallable()` to compatible alternative. Remove contravariant argument type declarations -- class: [`Rector\DowngradePhp74\Rector\ClassMethod\DowngradeContravariantArgumentTypeRector`](../src/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php) +- class: [`Rector\DowngradePhp74\Rector\ClassMethod\DowngradeContravariantArgumentTypeRector`](../rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php) ```diff class ParentType {} @@ -525,7 +525,7 @@ Remove contravariant argument type declarations Make method return same type as parent -- class: [`Rector\DowngradePhp74\Rector\ClassMethod\DowngradeCovariantReturnTypeRector`](../src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php) +- class: [`Rector\DowngradePhp74\Rector\ClassMethod\DowngradeCovariantReturnTypeRector`](../rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php) ```diff class ParentType {} @@ -556,7 +556,7 @@ Make method return same type as parent Change array contant definition via define to const -- class: [`Rector\DowngradePhp70\Rector\Expression\DowngradeDefineArrayConstantRector`](../src/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php) +- class: [`Rector\DowngradePhp70\Rector\Expression\DowngradeDefineArrayConstantRector`](../rules/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php) ```diff -define('ANIMALS', [ @@ -574,7 +574,7 @@ Change array contant definition via define to const Add parentheses around non-dereferenceable expressions. -- class: [`Rector\DowngradePhp80\Rector\ArrayDimFetch\DowngradeDereferenceableOperationRector`](../src/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php) +- class: [`Rector\DowngradePhp80\Rector\ArrayDimFetch\DowngradeDereferenceableOperationRector`](../rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php) ```diff function getFirstChar(string $str, string $suffix = '') @@ -590,7 +590,7 @@ Add parentheses around non-dereferenceable expressions. Replace the 2nd argument of `dirname()` -- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeDirnameLevelsRector`](../src/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php) +- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeDirnameLevelsRector`](../rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php) ```diff -return dirname($path, 2); @@ -603,7 +603,7 @@ Replace the 2nd argument of `dirname()` Downgrade enum to constant list class -- class: [`Rector\DowngradePhp80\Rector\Enum_\DowngradeEnumToConstantListClassRector`](../src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php) +- class: [`Rector\DowngradePhp80\Rector\Enum_\DowngradeEnumToConstantListClassRector`](../rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php) ```diff -enum Direction @@ -623,7 +623,7 @@ Downgrade enum to constant list class Remove exponential assignment operator **= -- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector`](../src/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php) +- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector`](../rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php) ```diff -$a **= 3; @@ -636,7 +636,7 @@ Remove exponential assignment operator **= Changes ** (exp) operator to pow(val, val2) -- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector`](../src/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php) +- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector`](../rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php) ```diff -1**2; @@ -649,7 +649,7 @@ Changes ** (exp) operator to pow(val, val2) Remove final from class constants -- class: [`Rector\DowngradePhp81\Rector\ClassConst\DowngradeFinalizePublicClassConstantRector`](../src/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php) +- class: [`Rector\DowngradePhp81\Rector\ClassConst\DowngradeFinalizePublicClassConstantRector`](../rules/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php) ```diff class SomeClass @@ -665,7 +665,7 @@ Remove final from class constants Replace variadic placeholders usage by `Closure::fromCallable()` -- class: [`Rector\DowngradePhp81\Rector\FuncCall\DowngradeFirstClassCallableSyntaxRector`](../src/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php) +- class: [`Rector\DowngradePhp81\Rector\FuncCall\DowngradeFirstClassCallableSyntaxRector`](../rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php) ```diff -$cb = strlen(...); @@ -678,7 +678,7 @@ Replace variadic placeholders usage by `Closure::fromCallable()` Remove indentation from heredoc/nowdoc -- class: [`Rector\DowngradePhp73\Rector\String_\DowngradeFlexibleHeredocSyntaxRector`](../src/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php) +- class: [`Rector\DowngradePhp73\Rector\String_\DowngradeFlexibleHeredocSyntaxRector`](../rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php) ```diff $query = << list($item1, $item2)) { @@ -714,7 +714,7 @@ Downgrade `list()` support in foreach constructs Changes `fread()` or `fwrite()` compare to false to negation check -- class: [`Rector\DowngradePhp74\Rector\Identical\DowngradeFreadFwriteFalsyToNegationRector`](../src/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php) +- class: [`Rector\DowngradePhp74\Rector\Identical\DowngradeFreadFwriteFalsyToNegationRector`](../rules/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php) ```diff -fread($handle, $length) === false; @@ -729,7 +729,7 @@ Changes `fread()` or `fwrite()` compare to false to negation check Downgrade indirect method call by array variable -- class: [`Rector\DowngradePhp54\Rector\FuncCall\DowngradeIndirectCallByArrayRector`](../src/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php) +- class: [`Rector\DowngradePhp54\Rector\FuncCall\DowngradeIndirectCallByArrayRector`](../rules/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php) ```diff class Hello { @@ -749,7 +749,7 @@ Downgrade indirect method call by array variable Downgrade instance and method call/property access -- class: [`Rector\DowngradePhp54\Rector\MethodCall\DowngradeInstanceMethodCallRector`](../src/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php) +- class: [`Rector\DowngradePhp54\Rector\MethodCall\DowngradeInstanceMethodCallRector`](../rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php) ```diff -echo (new \ReflectionClass('\\stdClass'))->getName(); @@ -763,7 +763,7 @@ Downgrade instance and method call/property access Add `instanceof Exception` check as a fallback to `instanceof Throwable` to support exception hierarchies in PHP 5 -- class: [`Rector\DowngradePhp70\Rector\Instanceof_\DowngradeInstanceofThrowableRector`](../src/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php) +- class: [`Rector\DowngradePhp70\Rector\Instanceof_\DowngradeInstanceofThrowableRector`](../rules/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php) ```diff -return $e instanceof \Throwable; @@ -776,7 +776,7 @@ Add `instanceof Exception` check as a fallback to `instanceof Throwable` to supp Downgrade `is_countable()` to former version -- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeIsCountableRector`](../src/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php) +- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeIsCountableRector`](../rules/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php) ```diff $items = []; @@ -790,7 +790,7 @@ Downgrade `is_countable()` to former version Change is_iterable with array and Traversable object type check -- class: [`Rector\DowngradePhp71\Rector\FuncCall\DowngradeIsIterableRector`](../src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php) +- class: [`Rector\DowngradePhp71\Rector\FuncCall\DowngradeIsIterableRector`](../rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php) ```diff class SomeClass @@ -809,7 +809,7 @@ Change is_iterable with array and Traversable object type check Remove the iterable pseudo type params and returns, add `@param` and `@return` tags instead -- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeIterablePseudoTypeDeclarationRector`](../src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeIterablePseudoTypeDeclarationRector`](../rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php) ```diff class SomeClass @@ -832,7 +832,7 @@ Remove the iterable pseudo type params and returns, add `@param` and `@return` t Downgrade `json_decode()` with null associative argument function -- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradeJsonDecodeNullAssociativeArgRector`](../src/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php) +- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradeJsonDecodeNullAssociativeArgRector`](../rules/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php) ```diff function exactlyNull(string $json) @@ -854,7 +854,7 @@ Downgrade `json_decode()` with null associative argument function Extract keys in list to its own variable assignment -- class: [`Rector\DowngradePhp71\Rector\List_\DowngradeKeysInListRector`](../src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php) +- class: [`Rector\DowngradePhp71\Rector\List_\DowngradeKeysInListRector`](../rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php) ```diff class SomeClass @@ -878,7 +878,7 @@ Extract keys in list to its own variable assignment Convert the list reference assignment to its equivalent PHP 7.2 code -- class: [`Rector\DowngradePhp73\Rector\List_\DowngradeListReferenceAssignmentRector`](../src/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php) +- class: [`Rector\DowngradePhp73\Rector\List_\DowngradeListReferenceAssignmentRector`](../rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php) ```diff class SomeClass @@ -908,7 +908,7 @@ Convert the list reference assignment to its equivalent PHP 7.2 code Downgrade `match()` to `switch()` -- class: [`Rector\DowngradePhp80\Rector\Expression\DowngradeMatchToSwitchRector`](../src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php) +- class: [`Rector\DowngradePhp80\Rector\Expression\DowngradeMatchToSwitchRector`](../rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php) ```diff class SomeClass @@ -942,7 +942,7 @@ Downgrade `match()` to `switch()` Replace (clone `$obj)->call()` to object assign and call -- class: [`Rector\DowngradePhp70\Rector\MethodCall\DowngradeMethodCallOnCloneRector`](../src/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php) +- class: [`Rector\DowngradePhp70\Rector\MethodCall\DowngradeMethodCallOnCloneRector`](../rules/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php) ```diff -(clone $this)->execute(); @@ -956,7 +956,7 @@ Replace (clone `$obj)->call()` to object assign and call Remove the "mixed" param and return type, add a `@param` and `@return` tag instead -- class: [`Rector\DowngradePhp80\Rector\FunctionLike\DowngradeMixedTypeDeclarationRector`](../src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp80\Rector\FunctionLike\DowngradeMixedTypeDeclarationRector`](../rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php) ```diff class SomeClass @@ -978,7 +978,7 @@ Remove the "mixed" param and return type, add a `@param` and `@return` tag inste Removes mixed type property type definition, adding `@var` annotations instead. -- class: [`Rector\DowngradePhp80\Rector\Property\DowngradeMixedTypeTypedPropertyRector`](../src/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php) +- class: [`Rector\DowngradePhp80\Rector\Property\DowngradeMixedTypeTypedPropertyRector`](../rules/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php) ```diff class SomeClass @@ -997,7 +997,7 @@ Removes mixed type property type definition, adding `@var` annotations instead. Remove named argument -- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeNamedArgumentRector`](../src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php) +- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeNamedArgumentRector`](../rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php) ```diff class SomeClass @@ -1020,7 +1020,7 @@ Remove named argument Downgrade negative string offset to strlen -- class: [`Rector\DowngradePhp71\Rector\String_\DowngradeNegativeStringOffsetToStrlenRector`](../src/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php) +- class: [`Rector\DowngradePhp71\Rector\String_\DowngradeNegativeStringOffsetToStrlenRector`](../rules/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php) ```diff -echo 'abcdef'[-2]; @@ -1037,7 +1037,7 @@ Downgrade negative string offset to strlen Remove "never" return type, add a `"@return` never" tag instead -- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradeNeverTypeDeclarationRector`](../src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradeNeverTypeDeclarationRector`](../rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php) ```diff -function someFunction(): never @@ -1055,7 +1055,7 @@ Remove "never" return type, add a `"@return` never" tag instead Replace New in initializers -- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradeNewInInitializerRector`](../src/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php) +- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradeNewInInitializerRector`](../rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php) ```diff class SomeClass @@ -1075,7 +1075,7 @@ Replace New in initializers Downgrade catch () without variable to one -- class: [`Rector\DowngradePhp80\Rector\Catch_\DowngradeNonCapturingCatchesRector`](../src/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php) +- class: [`Rector\DowngradePhp80\Rector\Catch_\DowngradeNonCapturingCatchesRector`](../rules/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php) ```diff class SomeClass @@ -1098,7 +1098,7 @@ Downgrade catch () without variable to one Change null coalesce to isset ternary check -- class: [`Rector\DowngradePhp70\Rector\Coalesce\DowngradeNullCoalesceRector`](../src/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php) +- class: [`Rector\DowngradePhp70\Rector\Coalesce\DowngradeNullCoalesceRector`](../rules/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php) ```diff -$username = $_GET['user'] ?? 'nobody'; @@ -1111,7 +1111,7 @@ Change null coalesce to isset ternary check Remove null coalescing operator ??= -- class: [`Rector\DowngradePhp74\Rector\Coalesce\DowngradeNullCoalescingOperatorRector`](../src/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php) +- class: [`Rector\DowngradePhp74\Rector\Coalesce\DowngradeNullCoalescingOperatorRector`](../rules/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php) ```diff $array = []; @@ -1125,7 +1125,7 @@ Remove null coalescing operator ??= Remove the nullable type params, add `@param` tags instead -- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeNullableTypeDeclarationRector`](../src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeNullableTypeDeclarationRector`](../rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php) ```diff class SomeClass @@ -1147,7 +1147,7 @@ Remove the nullable type params, add `@param` tags instead Change nullsafe operator to ternary operator rector -- class: [`Rector\DowngradePhp80\Rector\NullsafeMethodCall\DowngradeNullsafeToTernaryOperatorRector`](../src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php) +- class: [`Rector\DowngradePhp80\Rector\NullsafeMethodCall\DowngradeNullsafeToTernaryOperatorRector`](../rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php) ```diff -$dateAsString = $booking->getStartDate()?->asDateTimeString(); @@ -1162,7 +1162,7 @@ Change nullsafe operator to ternary operator rector Downgrade number_format arg to fill 4th arg when only 3rd arg filled -- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeNumberFormatNoFourthArgRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php) +- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeNumberFormatNoFourthArgRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php) ```diff class SomeClass @@ -1181,7 +1181,7 @@ Downgrade number_format arg to fill 4th arg when only 3rd arg filled Remove "_" as thousands separator in numbers -- class: [`Rector\DowngradePhp74\Rector\LNumber\DowngradeNumericLiteralSeparatorRector`](../src/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php) +- class: [`Rector\DowngradePhp74\Rector\LNumber\DowngradeNumericLiteralSeparatorRector`](../rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php) ```diff class SomeClass @@ -1202,7 +1202,7 @@ Remove "_" as thousands separator in numbers Remove the "object" param and return type, add a `@param` and `@return` tags instead -- class: [`Rector\DowngradePhp72\Rector\FunctionLike\DowngradeObjectTypeDeclarationRector`](../src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp72\Rector\FunctionLike\DowngradeObjectTypeDeclarationRector`](../rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php) ```diff class SomeClass @@ -1226,7 +1226,7 @@ Change param type to match the lowest type in whole family tree :wrench: **configure it!** -- class: [`Rector\DowngradePhp72\Rector\ClassMethod\DowngradeParameterTypeWideningRector`](../src/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php) +- class: [`Rector\DowngradePhp72\Rector\ClassMethod\DowngradeParameterTypeWideningRector`](../rules/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php) ```php use Rector\Config\RectorConfig; @@ -1266,7 +1266,7 @@ return static function (RectorConfig $rectorConfig): void { Remove "parent" return type, add a `"@return` parent" tag instead -- class: [`Rector\DowngradePhp70\Rector\ClassMethod\DowngradeParentTypeDeclarationRector`](../src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp70\Rector\ClassMethod\DowngradeParentTypeDeclarationRector`](../rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php) ```diff class ParentClass @@ -1292,7 +1292,7 @@ Remove "parent" return type, add a `"@return` parent" tag instead Remove Json constant that available only in php 7.1 -- class: [`Rector\DowngradePhp71\Rector\ConstFetch\DowngradePhp71JsonConstRector`](../src/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php) +- class: [`Rector\DowngradePhp71\Rector\ConstFetch\DowngradePhp71JsonConstRector`](../rules/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php) ```diff -json_encode($content, JSON_UNESCAPED_LINE_TERMINATORS); @@ -1305,7 +1305,7 @@ Remove Json constant that available only in php 7.1 Remove Json constant that available only in php 7.2 -- class: [`Rector\DowngradePhp72\Rector\ConstFetch\DowngradePhp72JsonConstRector`](../src/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php) +- class: [`Rector\DowngradePhp72\Rector\ConstFetch\DowngradePhp72JsonConstRector`](../rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php) ```diff -$inDecoder = new Decoder($connection, true, 512, \JSON_INVALID_UTF8_IGNORE); @@ -1320,7 +1320,7 @@ Remove Json constant that available only in php 7.2 Remove Json constant that available only in php 7.3 -- class: [`Rector\DowngradePhp73\Rector\ConstFetch\DowngradePhp73JsonConstRector`](../src/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php) +- class: [`Rector\DowngradePhp73\Rector\ConstFetch\DowngradePhp73JsonConstRector`](../rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php) ```diff -json_encode($content, JSON_THROW_ON_ERROR); @@ -1333,7 +1333,7 @@ Remove Json constant that available only in php 7.3 change instanceof Object to is_resource -- class: [`Rector\DowngradePhp80\Rector\Instanceof_\DowngradePhp80ResourceReturnToObjectRector`](../src/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php) +- class: [`Rector\DowngradePhp80\Rector\Instanceof_\DowngradePhp80ResourceReturnToObjectRector`](../rules/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php) ```diff class SomeClass @@ -1352,7 +1352,7 @@ change instanceof Object to is_resource change instanceof Object to is_resource -- class: [`Rector\DowngradePhp81\Rector\Instanceof_\DowngradePhp81ResourceReturnToObjectRector`](../src/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php) +- class: [`Rector\DowngradePhp81\Rector\Instanceof_\DowngradePhp81ResourceReturnToObjectRector`](../rules/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php) ```diff class SomeClass @@ -1371,7 +1371,7 @@ change instanceof Object to is_resource `"something()"` will be renamed to `"somethingElse()"` -- class: [`Rector\DowngradePhp80\Rector\StaticCall\DowngradePhpTokenRector`](../src/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php) +- class: [`Rector\DowngradePhp80\Rector\StaticCall\DowngradePhpTokenRector`](../rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php) ```diff -$tokens = \PhpToken::tokenize($code); @@ -1392,7 +1392,7 @@ change instanceof Object to is_resource Downgrade single one | separated to multi catch exception -- class: [`Rector\DowngradePhp71\Rector\TryCatch\DowngradePipeToMultiCatchExceptionRector`](../src/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php) +- class: [`Rector\DowngradePhp71\Rector\TryCatch\DowngradePipeToMultiCatchExceptionRector`](../rules/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php) ```diff try { @@ -1411,7 +1411,7 @@ Downgrade single one | separated to multi catch exception Remove PREG_UNMATCHED_AS_NULL from preg_match and set null value on empty string matched on each match -- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradePregUnmatchedAsNullConstantRector`](../src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php) +- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradePregUnmatchedAsNullConstantRector`](../rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php) ```diff class SomeClass @@ -1435,7 +1435,7 @@ Remove PREG_UNMATCHED_AS_NULL from preg_match and set null value on empty string Downgrade previously implemented interface -- class: [`Rector\DowngradePhp74\Rector\Interface_\DowngradePreviouslyImplementedInterfaceRector`](../src/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php) +- class: [`Rector\DowngradePhp74\Rector\Interface_\DowngradePreviouslyImplementedInterfaceRector`](../rules/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php) ```diff interface ContainerExceptionInterface extends Throwable @@ -1454,7 +1454,7 @@ Downgrade previously implemented interface Change constructor property promotion to property assign -- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector`](../src/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php) +- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector`](../rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php) ```diff class SomeClass @@ -1475,7 +1475,7 @@ Change constructor property promotion to property assign Remove the intersection type params and returns, add `@param/@return` tags instead -- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradePureIntersectionTypeRector`](../src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php) +- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradePureIntersectionTypeRector`](../rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php) ```diff -function someFunction(): Foo&Bar @@ -1493,7 +1493,7 @@ Remove the intersection type params and returns, add `@param/@return` tags inste Remove "readonly" class type, decorate all properties to "readonly" -- class: [`Rector\DowngradePhp82\Rector\Class_\DowngradeReadonlyClassRector`](../src/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php) +- class: [`Rector\DowngradePhp82\Rector\Class_\DowngradeReadonlyClassRector`](../rules/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php) ```diff -final readonly class SomeClass @@ -1515,7 +1515,7 @@ Remove "readonly" class type, decorate all properties to "readonly" Remove "readonly" property type, add a "@readonly" tag instead -- class: [`Rector\DowngradePhp81\Rector\Property\DowngradeReadonlyPropertyRector`](../src/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php) +- class: [`Rector\DowngradePhp81\Rector\Property\DowngradeReadonlyPropertyRector`](../rules/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php) ```diff class SomeClass @@ -1539,7 +1539,7 @@ Remove "readonly" property type, add a "@readonly" tag instead Remove bool type hint on child of RecursiveDirectoryIterator hasChildren allowLinks parameter -- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeRecursiveDirectoryIteratorHasChildrenRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php) +- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeRecursiveDirectoryIteratorHasChildrenRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php) ```diff class RecursiveDirectoryIteratorChild extends \RecursiveDirectoryIterator @@ -1558,7 +1558,7 @@ Remove bool type hint on child of RecursiveDirectoryIterator hasChildren allowLi Downgrade ReflectionClass->getConstants(ReflectionClassConstant::IS_*) -- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionClassGetConstantsFilterRector`](../src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php) +- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionClassGetConstantsFilterRector`](../rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php) ```diff $reflectionClass = new ReflectionClass('SomeClass'); @@ -1579,7 +1579,7 @@ Downgrade ReflectionClass->getConstants(ReflectionClassConstant::IS_*) Remove reflection `getAttributes()` class method code -- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionGetAttributesRector`](../src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php) +- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionGetAttributesRector`](../rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php) ```diff class SomeClass @@ -1602,7 +1602,7 @@ Remove reflection `getAttributes()` class method code Downgrade reflection `$refleciton->getType()` method call -- class: [`Rector\DowngradePhp74\Rector\MethodCall\DowngradeReflectionGetTypeRector`](../src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php) +- class: [`Rector\DowngradePhp74\Rector\MethodCall\DowngradeReflectionGetTypeRector`](../rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php) ```diff class SomeClass @@ -1625,7 +1625,7 @@ Downgrade reflection `$refleciton->getType()` method call Downgrade `ReflectionProperty->getDefaultValue()` -- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionPropertyGetDefaultValueRector`](../src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php) +- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionPropertyGetDefaultValueRector`](../rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php) ```diff class SomeClass @@ -1644,7 +1644,7 @@ Downgrade `ReflectionProperty->getDefaultValue()` Remove the type params and return type, add `@param` and `@return` tags instead -- class: [`Rector\DowngradePhp70\Rector\FunctionLike\DowngradeScalarTypeDeclarationRector`](../src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp70\Rector\FunctionLike\DowngradeScalarTypeDeclarationRector`](../rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php) ```diff class SomeClass @@ -1666,7 +1666,7 @@ Remove the type params and return type, add `@param` and `@return` tags instead Remove "self" return type, add a `"@return` `$this"` tag instead -- class: [`Rector\DowngradePhp70\Rector\ClassMethod\DowngradeSelfTypeDeclarationRector`](../src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp70\Rector\ClassMethod\DowngradeSelfTypeDeclarationRector`](../rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php) ```diff class SomeClass @@ -1688,7 +1688,7 @@ Remove "self" return type, add a `"@return` `$this"` tag instead Move array option of session_start($options) to before statement's `ini_set()` -- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeSessionStartArrayOptionsRector`](../src/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php) +- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeSessionStartArrayOptionsRector`](../rules/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php) ```diff -session_start([ @@ -1704,7 +1704,7 @@ Move array option of session_start($options) to before statement's `ini_set()` Change spaceship with check equal, and ternary to result 0, -1, 1 -- class: [`Rector\DowngradePhp70\Rector\Spaceship\DowngradeSpaceshipRector`](../src/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php) +- class: [`Rector\DowngradePhp70\Rector\Spaceship\DowngradeSpaceshipRector`](../rules/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php) ```diff -return $a <=> $b; @@ -1723,7 +1723,7 @@ Change spaceship with check equal, and ternary to result 0, -1, 1 Remove static from closure -- class: [`Rector\DowngradePhp54\Rector\Closure\DowngradeStaticClosureRector`](../src/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php) +- class: [`Rector\DowngradePhp54\Rector\Closure\DowngradeStaticClosureRector`](../rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php) ```diff final class SomeClass @@ -1744,7 +1744,7 @@ Remove static from closure Remove "static" return and param type, add a `"@param` `$this"` and `"@return` `$this"` tag instead -- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeStaticTypeDeclarationRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeStaticTypeDeclarationRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php) ```diff class SomeClass @@ -1766,7 +1766,7 @@ Remove "static" return and param type, add a `"@param` `$this"` and `"@return` ` Replace `str_contains()` with `strpos()` !== false -- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrContainsRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php) +- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrContainsRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php) ```diff class SomeClass @@ -1785,7 +1785,7 @@ Replace `str_contains()` with `strpos()` !== false Downgrade `str_ends_with()` to `strncmp()` version -- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrEndsWithRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php) +- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrEndsWithRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php) ```diff -str_ends_with($haystack, $needle); @@ -1798,7 +1798,7 @@ Downgrade `str_ends_with()` to `strncmp()` version Downgrade `str_starts_with()` to `strncmp()` version -- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrStartsWithRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php) +- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrStartsWithRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php) ```diff -str_starts_with($haystack, $needle); @@ -1811,7 +1811,7 @@ Downgrade `str_starts_with()` to `strncmp()` version Downgrade `stream_isatty()` function -- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradeStreamIsattyRector`](../src/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php) +- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradeStreamIsattyRector`](../rules/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php) ```diff class SomeClass @@ -1849,7 +1849,7 @@ Downgrade `stream_isatty()` function Remove the declare(strict_types=1) -- class: [`Rector\DowngradePhp70\Rector\Declare_\DowngradeStrictTypeDeclarationRector`](../src/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp70\Rector\Declare_\DowngradeStrictTypeDeclarationRector`](../rules/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php) ```diff -declare(strict_types=1); @@ -1862,7 +1862,7 @@ Remove the declare(strict_types=1) Add "string" return on current `__toString()` method when parent method has string return on `__toString()` method -- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeStringReturnTypeOnToStringRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php) +- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeStringReturnTypeOnToStringRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php) ```diff abstract class ParentClass @@ -1889,7 +1889,7 @@ Add "string" return on current `__toString()` method when parent method has stri Convert 2nd param to `strip_tags` from array to string -- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeStripTagsCallWithArrayRector`](../src/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php) +- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeStripTagsCallWithArrayRector`](../rules/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php) ```diff class SomeClass @@ -1919,7 +1919,7 @@ Convert 2nd param to `strip_tags` from array to string Downgrade `$this->` inside Closure to use assigned `$self` = `$this` before Closure -- class: [`Rector\DowngradePhp54\Rector\Closure\DowngradeThisInClosureRector`](../src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php) +- class: [`Rector\DowngradePhp54\Rector\Closure\DowngradeThisInClosureRector`](../rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php) ```diff class SomeClass @@ -1946,7 +1946,7 @@ Downgrade `$this->` inside Closure to use assigned `$self` = `$this` before Clos Downgrade throw expression -- class: [`Rector\DowngradePhp80\Rector\Expression\DowngradeThrowExprRector`](../src/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php) +- class: [`Rector\DowngradePhp80\Rector\Expression\DowngradeThrowExprRector`](../rules/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php) ```diff -echo $variable ?? throw new RuntimeException(); @@ -1963,7 +1963,7 @@ Downgrade throw expression Replace `Throwable` type hints by PHPDoc tags -- class: [`Rector\DowngradePhp70\Rector\FunctionLike\DowngradeThrowableTypeDeclarationRector`](../src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp70\Rector\FunctionLike\DowngradeThrowableTypeDeclarationRector`](../rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php) ```diff class SomeClass @@ -1986,7 +1986,7 @@ Replace `Throwable` type hints by PHPDoc tags Remove trailing commas in function calls -- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeTrailingCommasInFunctionCallsRector`](../src/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php) +- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeTrailingCommasInFunctionCallsRector`](../rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php) ```diff class SomeClass @@ -2008,7 +2008,7 @@ Remove trailing commas in function calls Remove trailing commas in param or use list -- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeTrailingCommasInParamUseRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php) +- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeTrailingCommasInParamUseRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php) ```diff class SomeClass @@ -2038,7 +2038,7 @@ Remove trailing commas in param or use list Changes property type definition from type definitions to `@var` annotations. -- class: [`Rector\DowngradePhp74\Rector\Property\DowngradeTypedPropertyRector`](../src/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php) +- class: [`Rector\DowngradePhp74\Rector\Property\DowngradeTypedPropertyRector`](../rules/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php) ```diff class SomeClass @@ -2057,7 +2057,7 @@ Changes property type definition from type definitions to `@var` annotations. Downgrade calling a value that is not directly callable in PHP 5 (property, static property, closure, …) to call_user_func. -- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeUncallableValueCallToCallUserFuncRector`](../src/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php) +- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeUncallableValueCallToCallUserFuncRector`](../rules/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php) ```diff final class Foo @@ -2084,7 +2084,7 @@ Downgrade calling a value that is not directly callable in PHP 5 (property, stat Remove the union type params and returns, add `@param/@return` tags instead -- class: [`Rector\DowngradePhp80\Rector\FunctionLike\DowngradeUnionTypeDeclarationRector`](../src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp80\Rector\FunctionLike\DowngradeUnionTypeDeclarationRector`](../rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php) ```diff class SomeClass @@ -2107,7 +2107,7 @@ Remove the union type params and returns, add `@param/@return` tags instead Removes union type property type definition, adding `@var` annotations instead. -- class: [`Rector\DowngradePhp80\Rector\Property\DowngradeUnionTypeTypedPropertyRector`](../src/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php) +- class: [`Rector\DowngradePhp80\Rector\Property\DowngradeUnionTypeTypedPropertyRector`](../rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php) ```diff class SomeClass @@ -2126,7 +2126,7 @@ Removes union type property type definition, adding `@var` annotations instead. Remove parentheses around expressions allowed by Uniform variable syntax RFC where they are not necessary to prevent parse errors on PHP 5. -- class: [`Rector\DowngradePhp70\Rector\Expr\DowngradeUnnecessarilyParenthesizedExpressionRector`](../src/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php) +- class: [`Rector\DowngradePhp70\Rector\Expr\DowngradeUnnecessarilyParenthesizedExpressionRector`](../rules/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php) ```diff -($f)['foo']; @@ -2149,7 +2149,7 @@ Remove parentheses around expressions allowed by Uniform variable syntax RFC whe Replace imports of functions and constants -- class: [`Rector\DowngradePhp56\Rector\Use_\DowngradeUseFunctionRector`](../src/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php) +- class: [`Rector\DowngradePhp56\Rector\Use_\DowngradeUseFunctionRector`](../rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php) ```diff -use function Foo\Bar\baz; @@ -2164,7 +2164,7 @@ Replace imports of functions and constants Remove "void" return type, add a `"@return` void" tag instead -- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeVoidTypeDeclarationRector`](../src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php) +- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeVoidTypeDeclarationRector`](../rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php) ```diff class SomeClass @@ -2185,7 +2185,7 @@ Remove "void" return type, add a `"@return` void" tag instead Convert setcookie option array to arguments -- class: [`Rector\DowngradePhp73\Rector\FuncCall\SetCookieOptionsArrayToArgumentsRector`](../src/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php) +- class: [`Rector\DowngradePhp73\Rector\FuncCall\SetCookieOptionsArrayToArgumentsRector`](../rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php) ```diff -setcookie('name', $value, ['expires' => 360]); @@ -2198,7 +2198,7 @@ Convert setcookie option array to arguments Replace short arrays by long arrays -- class: [`Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector`](../src/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php) +- class: [`Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector`](../rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php) ```diff -$a = [1, 2, 3]; @@ -2211,7 +2211,7 @@ Replace short arrays by long arrays Refactor grouped use imports to standalone lines -- class: [`Rector\DowngradePhp70\Rector\GroupUse\SplitGroupedUseImportsRector`](../src/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php) +- class: [`Rector\DowngradePhp70\Rector\GroupUse\SplitGroupedUseImportsRector`](../rules/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php) ```diff -use SomeNamespace\{ @@ -2228,7 +2228,7 @@ Refactor grouped use imports to standalone lines Downgrade Symmetric array destructuring to `list()` function -- class: [`Rector\DowngradePhp71\Rector\Array_\SymmetricArrayDestructuringToListRector`](../src/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php) +- class: [`Rector\DowngradePhp71\Rector\Array_\SymmetricArrayDestructuringToListRector`](../rules/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php) ```diff -[$id1, $name1] = $data; diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php similarity index 95% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php index 96c6d797345..d3847faa98d 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php @@ -124,8 +124,8 @@ CODE_SAMPLE /** @var PropertyFetch[] $propertyFetches */ $propertyFetches = $this->betterNodeFinder->find($node->stmts, function (Node $subNode) use($closureParentFunctionLike) : bool { // multiple deep Closure may access $this, unless its parent is not Closure - $parent = $this->betterNodeFinder->findParentByTypes($subNode, [ClassMethod::class, Function_::class]); - if ($parent instanceof FunctionLike && $parent !== $closureParentFunctionLike) { + $parentNode = $this->betterNodeFinder->findParentByTypes($subNode, [ClassMethod::class, Function_::class]); + if ($parentNode instanceof FunctionLike && $parentNode !== $closureParentFunctionLike) { return \false; } if (!$subNode instanceof PropertyFetch) { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php similarity index 92% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php index fb7b171d17d..acc2cd6c04e 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php @@ -8,8 +8,8 @@ use PhpParser\Node\Expr\Closure; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PHPStan\Type\CallableType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -21,7 +21,7 @@ final class DowngradeCallableTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php similarity index 95% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php index 55f9d19fde5..db2b5813b1c 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php @@ -12,6 +12,7 @@ use PhpParser\Node\Expr\Variable; use PhpParser\Node\Param; use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt\Return_; +use PHPStan\Analyser\Scope; use PHPStan\Reflection\FunctionReflection; use PHPStan\Reflection\ParametersAcceptorSelector; use PHPStan\ShouldNotHappenException; @@ -114,7 +115,9 @@ CODE_SAMPLE private function getParameterType(FunctionReflection $functionReflection, FuncCall $funcCall, int $position) : ?Type { try { - $parametersAcceptor = ParametersAcceptorSelector::selectFromArgs($funcCall->getAttribute(AttributeKey::SCOPE), $funcCall->getArgs(), $functionReflection->getVariants()); + /** @var Scope $funcCallScope */ + $funcCallScope = $funcCall->getAttribute(AttributeKey::SCOPE); + $parametersAcceptor = ParametersAcceptorSelector::selectFromArgs($funcCallScope, $funcCall->getArgs(), $functionReflection->getVariants()); } catch (ShouldNotHappenException $exception) { return null; } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php similarity index 95% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php index 715e9f53e1e..c15db06d071 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php @@ -21,7 +21,7 @@ use RectorPrefix202208\Webmozart\Assert\Assert; /** * @changelog https://wiki.php.net/rfc/empty_isset_exprs * - * @see Rector\Tests\DowngradePhp55\Rector\Isset_\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector\DowngradeArbitraryExpressionArgsToEmptyAndIssetRectorTest + * @see \Rector\Tests\DowngradePhp55\Rector\Isset_\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector\DowngradeArbitraryExpressionArgsToEmptyAndIssetRectorTest */ final class DowngradeArbitraryExpressionArgsToEmptyAndIssetRector extends AbstractRector { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/ArgManipulator.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/ArgManipulator.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/UnpackedArgList.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/UnpackedArgList.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php similarity index 94% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php index e6a8a82f1be..202e8fb5cc2 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php @@ -6,9 +6,9 @@ namespace Rector\DowngradePhp70\Rector\ClassMethod; use PhpParser\Node; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Reflection\ClassReflection; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; use Rector\Core\Reflection\ReflectionResolver; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Rector\StaticTypeMapper\ValueObject\Type\ParentObjectWithoutClassType; use Rector\StaticTypeMapper\ValueObject\Type\ParentStaticType; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; @@ -20,7 +20,7 @@ final class DowngradeParentTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; /** diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php similarity index 93% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php index c1ce1e1739a..dc31e363d1d 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php @@ -7,9 +7,9 @@ use PhpParser\Node; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Reflection\ClassReflection; use PHPStan\Type\ThisType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; use Rector\Core\Reflection\ReflectionResolver; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -19,7 +19,7 @@ final class DowngradeSelfTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; /** diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php similarity index 91% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php index 43db404c888..9ff8a54a7e8 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php @@ -21,8 +21,8 @@ use PHPStan\Type\FloatType; use PHPStan\Type\IntegerType; use PHPStan\Type\StringType; use PHPStan\Type\Type; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -34,7 +34,7 @@ final class DowngradeScalarTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) @@ -94,7 +94,7 @@ CODE_SAMPLE if ($node->returnType === null) { return null; } - $this->phpDocFromTypeDeclarationDecorator->decorate($node); + $this->phpDocFromTypeDeclarationDecorator->decorateReturn($node); return $node; } /** @@ -114,14 +114,14 @@ CODE_SAMPLE $paramName = $this->getName($param->var); $variable = new Variable($paramName); $paramType = $this->getType($param); - $variableCast = $this->recastVariabletIfScalarType($variable, $paramType); + $variableCast = $this->recastVariableIfScalarType($variable, $paramType); if (!$variableCast instanceof Cast) { return null; } $assign = new Assign($variable, $variableCast); return new Expression($assign); } - private function recastVariabletIfScalarType(Variable $variable, Type $type) : ?Cast + private function recastVariableIfScalarType(Variable $variable, Type $type) : ?Cast { if ($type instanceof StringType) { return new String_($variable); diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php similarity index 92% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php index 07ca39e86bb..de40b883044 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php @@ -8,8 +8,8 @@ use PhpParser\Node\Expr\Closure; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PHPStan\Type\ObjectType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -19,7 +19,7 @@ final class DowngradeThrowableTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php similarity index 93% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php index 5a367ff0102..ceb5864fe99 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php @@ -65,7 +65,7 @@ CODE_SAMPLE /** @var mixed $arg */ $arg = $node->args[0]->value; $funcCall = $this->nodeFactory->createFuncCall('is_array', [$arg]); - $instanceOf = new Instanceof_($arg, new FullyQualified('Traversable')); - return new BooleanOr($funcCall, $instanceOf); + $instanceof = new Instanceof_($arg, new FullyQualified('Traversable')); + return new BooleanOr($funcCall, $instanceof); } } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php similarity index 93% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php index 82f99372232..c7f7f4d1abf 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PHPStan\Type\IterableType; use PHPStan\Type\MixedType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -22,7 +22,7 @@ final class DowngradeIterablePseudoTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php similarity index 94% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php index 43952d60481..acf70c26762 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Param; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Exception\ShouldNotHappenException; use Rector\Core\NodeAnalyzer\ParamAnalyzer; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -28,7 +28,7 @@ final class DowngradeNullableTypeDeclarationRector extends AbstractRector private $phpDocTypeChanger; /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; /** @@ -85,7 +85,7 @@ CODE_SAMPLE } } if ($node->returnType instanceof NullableType) { - $this->phpDocFromTypeDeclarationDecorator->decorate($node); + $this->phpDocFromTypeDeclarationDecorator->decorateReturn($node); $hasChanged = \true; } if ($hasChanged) { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php similarity index 91% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php index af1c7e28f06..cc1d8c8df08 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php @@ -8,8 +8,8 @@ use PhpParser\Node\Expr\Closure; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PHPStan\Type\VoidType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -21,7 +21,7 @@ final class DowngradeVoidTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php similarity index 88% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php index 7f984c4d97a..b08577fa506 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php @@ -89,36 +89,36 @@ CODE_SAMPLE */ public function refactor(Node $node) : ?Node { - $parent = $node->getAttribute(AttributeKey::PARENT_NODE); - if (!$parent instanceof Node) { + $parentNode = $node->getAttribute(AttributeKey::PARENT_NODE); + if (!$parentNode instanceof Node) { return null; } - $parentExpression = $parent->getAttribute(AttributeKey::PARENT_NODE); + $parentExpression = $parentNode->getAttribute(AttributeKey::PARENT_NODE); if (!$parentExpression instanceof Node) { return null; } - $assignExpressions = $this->processExtractToItsOwnVariable($node, $parent, $parentExpression); + $assignExpressions = $this->processExtractToItsOwnVariable($node, $parentNode, $parentExpression); if ($assignExpressions === []) { return null; } - if ($parent instanceof Assign) { + if ($parentNode instanceof Assign) { $this->mirrorComments($assignExpressions[0], $parentExpression); $this->nodesToAddCollector->addNodesBeforeNode($assignExpressions, $node); $this->removeNode($parentExpression); return $node; } - if ($parent instanceof Foreach_) { - $defaultValueVar = $this->inflectorSingularResolver->resolve((string) $this->getName($parent->expr)); - $scope = $parent->getAttribute(AttributeKey::SCOPE); + if ($parentNode instanceof Foreach_) { + $defaultValueVar = $this->inflectorSingularResolver->resolve((string) $this->getName($parentNode->expr)); + $scope = $parentNode->getAttribute(AttributeKey::SCOPE); $newValueVar = $this->variableNaming->createCountedValueName($defaultValueVar, $scope); - $parent->valueVar = new Variable($newValueVar); - $stmts = $parent->stmts; + $parentNode->valueVar = new Variable($newValueVar); + $stmts = $parentNode->stmts; if ($stmts === []) { - $parent->stmts = $assignExpressions; + $parentNode->stmts = $assignExpressions; } else { - $this->nodesToAddCollector->addNodesBeforeNode($assignExpressions, $parent->stmts[0]); + $this->nodesToAddCollector->addNodesBeforeNode($assignExpressions, $parentNode->stmts[0]); } - return $parent->valueVar; + return $parentNode->valueVar; } return null; } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php similarity index 94% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php index 102d2607969..dc70e89dc0b 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php @@ -4,7 +4,6 @@ declare (strict_types=1); namespace Rector\DowngradePhp72\NodeAnalyzer; use PhpParser\Node\Arg; -use PhpParser\Node\Expr; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Stmt\If_; use Rector\Core\PhpParser\Node\BetterNodeFinder; @@ -33,10 +32,10 @@ final class FunctionExistsFunCallAnalyzer $this->nodeNameResolver = $nodeNameResolver; $this->valueResolver = $valueResolver; } - public function detect(Expr $expr, string $functionName) : bool + public function detect(FuncCall $funcCall, string $functionName) : bool { /** @var If_|null $firstParentIf */ - $firstParentIf = $this->betterNodeFinder->findParentType($expr, If_::class); + $firstParentIf = $this->betterNodeFinder->findParentType($funcCall, If_::class); if (!$firstParentIf instanceof If_) { return \false; } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php similarity index 96% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php index a68137c85d8..fddde2329b3 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php @@ -7,6 +7,7 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassLike; use PhpParser\Node\Stmt\ClassMethod; +use PHPStan\Reflection\ClassMemberAccessAnswerer; use PHPStan\Reflection\ClassReflection; use PHPStan\Reflection\Php\PhpMethodReflection; use PHPStan\Reflection\ReflectionProvider; @@ -69,6 +70,7 @@ final class OverrideFromAnonymousClassMethodAnalyzer if (!$classReflection->hasMethod($methodName)) { return null; } + /** @var ClassMemberAccessAnswerer $scope */ $scope = $classMethod->getAttribute(AttributeKey::SCOPE); $extendedMethodReflection = $classReflection->getMethod($methodName, $scope); if (!$extendedMethodReflection instanceof PhpMethodReflection) { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/JsonConstCleaner.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php similarity index 94% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/JsonConstCleaner.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php index 880b53b17c0..22034e71fae 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/JsonConstCleaner.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php @@ -33,7 +33,6 @@ final class JsonConstCleaner /** * @param string[] $constants * @param \PhpParser\Node\Expr\ConstFetch|\PhpParser\Node\Expr\BinaryOp\BitwiseOr $node - * @return \PhpParser\Node\Expr\ConstFetch|\PhpParser\Node\Expr|null */ public function clean($node, array $constants) { @@ -73,8 +72,8 @@ final class JsonConstCleaner if (!$this->nodeNameResolver->isNames($constFetch, $constants)) { return null; } - $parent = $constFetch->getAttribute(AttributeKey::PARENT_NODE); - if ($parent instanceof BitwiseOr) { + $parentNode = $constFetch->getAttribute(AttributeKey::PARENT_NODE); + if ($parentNode instanceof BitwiseOr) { return null; } if ($this->hasDefinedCheck($constFetch, $constants)) { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php similarity index 81% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php index 3bf4136ba18..b773edf237f 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php @@ -7,6 +7,7 @@ use PhpParser\Node\Expr; use PhpParser\Node\Param; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Type\NullType; +use PHPStan\Type\Type; use PHPStan\Type\TypeCombinator; use PHPStan\Type\UnionType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; @@ -57,11 +58,8 @@ final class NativeParamToPhpDocDecorator $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($classMethod); $paramName = $this->nodeNameResolver->getName($param); $mappedCurrentParamType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type); - // add default null type - if ($this->isParamNullable($param) && !TypeCombinator::containsNull($mappedCurrentParamType)) { - $mappedCurrentParamType = new UnionType([$mappedCurrentParamType, new NullType()]); - } - $this->phpDocTypeChanger->changeParamType($phpDocInfo, $mappedCurrentParamType, $param, $paramName); + $correctedNullableParamType = $this->correctNullableType($param, $mappedCurrentParamType); + $this->phpDocTypeChanger->changeParamType($phpDocInfo, $correctedNullableParamType, $param, $paramName); } private function isParamNullable(Param $param) : bool { @@ -70,4 +68,18 @@ final class NativeParamToPhpDocDecorator } return $this->valueResolver->isNull($param->default); } + /** + * @return \PHPStan\Type\UnionType|\PHPStan\Type\Type + */ + private function correctNullableType(Param $param, Type $paramType) + { + if (!$this->isParamNullable($param)) { + return $paramType; + } + if (TypeCombinator::containsNull($paramType)) { + return $paramType; + } + // add default null type + return new UnionType([$paramType, new NullType()]); + } } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php similarity index 88% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php index 5dda07b4412..afea176afda 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php @@ -162,33 +162,33 @@ CODE_SAMPLE $replaceEmptyStringToNull = $this->nodeFactory->createFuncCall('array_walk_recursive', $arguments); return $this->processReplace($funcCall, $replaceEmptyStringToNull); } - private function processReplace(FuncCall $funcCall, FuncCall $replaceEmptystringToNull) : FuncCall + private function processReplace(FuncCall $funcCall, FuncCall $replaceEmptyStringToNull) : FuncCall { - $parent = $funcCall->getAttribute(AttributeKey::PARENT_NODE); - if ($parent instanceof Expression) { - $this->nodesToAddCollector->addNodeAfterNode($replaceEmptystringToNull, $funcCall); + $parentNode = $funcCall->getAttribute(AttributeKey::PARENT_NODE); + if ($parentNode instanceof Expression) { + $this->nodesToAddCollector->addNodeAfterNode($replaceEmptyStringToNull, $funcCall); return $funcCall; } - if ($parent instanceof If_ && $parent->cond === $funcCall) { - return $this->processInIf($parent, $funcCall, $replaceEmptystringToNull); + if ($parentNode instanceof If_ && $parentNode->cond === $funcCall) { + return $this->processInIf($parentNode, $funcCall, $replaceEmptyStringToNull); } - if (!$parent instanceof Node) { + if (!$parentNode instanceof Node) { throw new NotImplementedException(); } - $if = $parent->getAttribute(AttributeKey::PARENT_NODE); - if ($parent instanceof BooleanNot) { - return $this->processInIf($if, $funcCall, $replaceEmptystringToNull); + $parentParentNode = $parentNode->getAttribute(AttributeKey::PARENT_NODE); + if ($parentNode instanceof BooleanNot && $parentParentNode instanceof If_) { + return $this->processInIf($parentParentNode, $funcCall, $replaceEmptyStringToNull); } - if ($parent instanceof Assign && $parent->expr === $funcCall) { - return $this->processInAssign($parent, $funcCall, $replaceEmptystringToNull); + if ($parentNode instanceof Assign && $parentNode->expr === $funcCall) { + return $this->processInAssign($parentNode, $funcCall, $replaceEmptyStringToNull); } - if (!$parent instanceof Identical) { + if (!$parentNode instanceof Identical) { throw new NotImplementedYetException(); } - if (!$if instanceof If_) { + if (!$parentParentNode instanceof If_) { throw new NotImplementedYetException(); } - return $this->processInIf($if, $funcCall, $replaceEmptystringToNull); + return $this->processInIf($parentParentNode, $funcCall, $replaceEmptyStringToNull); } private function processInAssign(Assign $assign, FuncCall $funcCall, FuncCall $replaceEmptyStringToNull) : FuncCall { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php similarity index 92% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php index f92501609b7..83625953bbc 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php @@ -8,8 +8,8 @@ use PhpParser\Node\Expr\Closure; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PHPStan\Type\ObjectWithoutClassType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -19,7 +19,7 @@ final class DowngradeObjectTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp72/snippet/isatty_closure.php.inc b/vendor/rector/rector-downgrade-php/rules/DowngradePhp72/snippet/isatty_closure.php.inc similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp72/snippet/isatty_closure.php.inc rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp72/snippet/isatty_closure.php.inc diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php similarity index 97% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php index 91b742debd5..f3d0b2c29ec 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php @@ -5,6 +5,7 @@ namespace Rector\DowngradePhp74\Rector\Array_; use PhpParser\Node; use PhpParser\Node\Expr\Array_; +use PHPStan\Analyser\MutatingScope; use PHPStan\Analyser\Scope; use Rector\Core\Rector\AbstractScopeAwareRector; use Rector\DowngradePhp81\NodeAnalyzer\ArraySpreadAnalyzer; @@ -89,6 +90,7 @@ CODE_SAMPLE } return $this->arraySpreadAnalyzer->isArrayWithUnpack($subNode); }); + /** @var MutatingScope $scope */ return $this->arrayMergeFromArraySpreadFactory->createFromArray($node, $scope, $this->file, $shouldIncrement); } } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php similarity index 98% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php index 3a8aa42d9ec..ac158c499cd 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php @@ -10,6 +10,7 @@ use PhpParser\Node\Name; use PhpParser\Node\NullableType; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\UnionType; +use PHPStan\Reflection\ClassMemberAccessAnswerer; use PHPStan\Reflection\ClassReflection; use PHPStan\Reflection\Php\PhpMethodReflection; use PHPStan\Type\MixedType; @@ -188,6 +189,7 @@ CODE_SAMPLE continue; } $classMethodScope = $classMethod->getAttribute(AttributeKey::SCOPE); + /** @var ClassMemberAccessAnswerer $classMethodScope */ $parameterMethodReflection = $parentClassAndInterface->getMethod($methodName, $classMethodScope); if (!$parameterMethodReflection instanceof PhpMethodReflection) { continue; diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php similarity index 87% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php index e4cca265cad..b55b4f036be 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php @@ -67,17 +67,17 @@ CODE_SAMPLE if (!$this->isObjectType($node->var, new ObjectType('ReflectionProperty'))) { return null; } - $parent = $node->getAttribute(AttributeKey::PARENT_NODE); - if ($parent instanceof Instanceof_) { + $parentNode = $node->getAttribute(AttributeKey::PARENT_NODE); + if ($parentNode instanceof Instanceof_) { return null; } $args = [new Arg($node->var), new Arg(new String_('getType'))]; $ternary = new Ternary($this->nodeFactory->createFuncCall('method_exists', $args), $node, $this->nodeFactory->createNull()); - $parent = $node->getAttribute(AttributeKey::PARENT_NODE); - if (!$parent instanceof Ternary) { + $parentNode = $node->getAttribute(AttributeKey::PARENT_NODE); + if (!$parentNode instanceof Ternary) { return $ternary; } - if (!$this->nodeComparator->areNodesEqual($parent, $ternary)) { + if (!$this->nodeComparator->areNodesEqual($parentNode, $ternary)) { return $ternary; } return null; diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php similarity index 94% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php index 6db8eec3a9c..07c96e5475e 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php @@ -69,7 +69,7 @@ CODE_SAMPLE if (!$classMethod->isPrivate()) { return \true; } - $parent = $classMethod->getAttribute(AttributeKey::PARENT_NODE); - return !$parent instanceof Trait_; + $parentNode = $classMethod->getAttribute(AttributeKey::PARENT_NODE); + return !$parentNode instanceof Trait_; } } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php similarity index 93% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php index c36d430a5d1..2a9aa47d58b 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php @@ -7,9 +7,9 @@ use PhpParser\Node; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Reflection\ClassReflection; use PHPStan\Type\StaticType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; use Rector\Core\Reflection\ReflectionResolver; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -19,7 +19,7 @@ final class DowngradeStaticTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; /** diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php similarity index 96% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php index 20766af6bf7..c785c72e321 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php @@ -103,12 +103,12 @@ CODE_SAMPLE } return $this->cleanTrailingComma($node, $args); } - private function processUses(Closure $node) : void + private function processUses(Closure $node) : ?Node { if ($node->uses === []) { - return; + return null; } - $this->cleanTrailingComma($node, $node->uses); + return $this->cleanTrailingComma($node, $node->uses); } /** * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure $node diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php similarity index 97% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php index 58e21fae743..626b99ccad4 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php @@ -75,7 +75,6 @@ CODE_SAMPLE } /** * @param Enum_|ClassMethod $node - * @return \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\ClassMethod|null */ public function refactor(Node $node) { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php similarity index 98% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php index 9b7b3519401..607a83d0391 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php @@ -118,7 +118,6 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Stmt\Echo_|\PhpParser\Node\Stmt\Expression|\PhpParser\Node\Stmt\Return_ $node - * @return \PhpParser\Node\Stmt\Echo_|\PhpParser\Node\Stmt\Expression|\PhpParser\Node\Stmt\Return_|null */ private function refactorInArrowFunction(ArrowFunction $arrowFunction, Match_ $match, $node) { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php similarity index 98% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php index 0ebcc9ba232..b7a1b580784 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php @@ -78,7 +78,6 @@ CODE_SAMPLE } /** * @param FuncCall $node - * @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\Ternary|null */ public function refactor(Node $node) { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php similarity index 92% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php index 2410873682e..e28af19aa64 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\Closure; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PHPStan\Type\MixedType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -20,7 +20,7 @@ final class DowngradeMixedTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php similarity index 90% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php index 06a1a94d097..bd5e9eaded2 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\Closure; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PhpParser\Node\UnionType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -20,7 +20,7 @@ final class DowngradeUnionTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) @@ -79,7 +79,7 @@ CODE_SAMPLE } return null; } - $this->phpDocFromTypeDeclarationDecorator->decorate($node); + $this->phpDocFromTypeDeclarationDecorator->decorateReturn($node); return $node; } } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php similarity index 97% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php index c74b4d17133..3959974d165 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php @@ -89,8 +89,7 @@ CODE_SAMPLE if ($this->shouldSkip($args)) { return null; } - $this->removeNamedArguments($node, $args); - return $node; + return $this->removeNamedArguments($node, $args); } /** * @param Arg[] $args diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php similarity index 91% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php index 11efc2de29e..1b5d4d268e8 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php @@ -69,11 +69,11 @@ CODE_SAMPLE } $args = [new Arg($node->var), new Arg(new String_('getAttributes'))]; $ternary = new Ternary($this->nodeFactory->createFuncCall('method_exists', $args), $node, new Array_([])); - $parent = $node->getAttribute(AttributeKey::PARENT_NODE); - if (!$parent instanceof Ternary) { + $parentNode = $node->getAttribute(AttributeKey::PARENT_NODE); + if (!$parentNode instanceof Ternary) { return $ternary; } - if (!$this->nodeComparator->areNodesEqual($parent, $ternary)) { + if (!$this->nodeComparator->areNodesEqual($parentNode, $ternary)) { return $ternary; } return null; diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php similarity index 96% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php index adb2cce6a58..701df2dcd48 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php @@ -11,6 +11,7 @@ use PhpParser\Node\Expr\NullsafePropertyFetch; use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Expr\Variable; +use PHPStan\Analyser\MutatingScope; use PHPStan\Analyser\Scope; use Rector\Core\Rector\AbstractScopeAwareRector; use Rector\Naming\Naming\VariableNaming; @@ -54,6 +55,7 @@ CODE_SAMPLE */ public function refactorWithScope(Node $node, Scope $scope) : Ternary { + /** @var MutatingScope $scope */ $tempVarName = $this->variableNaming->resolveFromNodeWithScopeCountAndFallbackName($node->var, $scope, '_'); $variable = new Variable($tempVarName); $called = $node instanceof NullsafeMethodCall ? new MethodCall($variable, $node->name, $node->args) : new PropertyFetch($variable, $node->name); diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/DefaultParameterValueResolver.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/DefaultParameterValueResolver.php similarity index 95% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/DefaultParameterValueResolver.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/DefaultParameterValueResolver.php index 0e886e57e23..43a93c056e5 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/DefaultParameterValueResolver.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/DefaultParameterValueResolver.php @@ -16,10 +16,7 @@ use PHPStan\Type\VerbosityLevel; use Rector\Core\Exception\ShouldNotHappenException; final class DefaultParameterValueResolver { - /** - * @return \PhpParser\Node\Expr|null - */ - public function resolveFromParameterReflection(ParameterReflection $parameterReflection) + public function resolveFromParameterReflection(ParameterReflection $parameterReflection) : ?\PhpParser\Node\Expr { $defaultValueType = $parameterReflection->getDefaultValue(); if (!$defaultValueType instanceof Type) { diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/SimplePhpParameterReflection.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/SimplePhpParameterReflection.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php similarity index 88% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php index 9951be6cab1..830daab3011 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php @@ -12,6 +12,7 @@ use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Name; +use PHPStan\Analyser\MutatingScope; use PHPStan\Analyser\Scope; use PHPStan\Type\ArrayType; use PHPStan\Type\IterableType; @@ -70,7 +71,7 @@ final class ArrayMergeFromArraySpreadFactory $this->nodeNameResolver = $nodeNameResolver; $this->arraySpreadAnalyzer = $arraySpreadAnalyzer; } - public function createFromArray(Array_ $array, Scope $scope, File $file, ?bool $shouldIncrement = null) : ?Node + public function createFromArray(Array_ $array, MutatingScope $mutatingScope, File $file, ?bool $shouldIncrement = null) : ?Node { if (!$this->arraySpreadAnalyzer->isArrayWithUnpack($array)) { return null; @@ -85,8 +86,8 @@ final class ArrayMergeFromArraySpreadFactory return $this->arraySpreadAnalyzer->isArrayWithUnpack($subNode); }); } - $newArrayItems = $this->disolveArrayItems($array, $scope, $file); - return $this->createArrayMergeFuncCall($newArrayItems, $scope); + $newArrayItems = $this->disolveArrayItems($array, $mutatingScope, $file); + return $this->createArrayMergeFuncCall($newArrayItems, $mutatingScope); } /** * Iterate all array items: @@ -96,7 +97,7 @@ final class ArrayMergeFromArraySpreadFactory * to be added once the next spread is found, or at the end * @return ArrayItem[] */ - private function disolveArrayItems(Array_ $array, Scope $scope, File $file) : array + private function disolveArrayItems(Array_ $array, MutatingScope $mutatingScope, File $file) : array { $newItems = []; $accumulatedItems = []; @@ -105,7 +106,7 @@ final class ArrayMergeFromArraySpreadFactory // Spread operator found if (!$item->value instanceof Variable) { // If it is a not variable, transform it to a variable - $item->value = $this->createVariableFromNonVariable($array, $item, $position, $scope, $file); + $item->value = $this->createVariableFromNonVariable($array, $item, $position, $mutatingScope, $file); } if ($accumulatedItems !== []) { // If previous items were in the new array, add them first @@ -129,13 +130,13 @@ final class ArrayMergeFromArraySpreadFactory /** * @param ArrayItem[] $arrayItems */ - private function createArrayMergeFuncCall(array $arrayItems, Scope $scope) : FuncCall + private function createArrayMergeFuncCall(array $arrayItems, MutatingScope $mutatingScope) : FuncCall { - $args = \array_map(function (ArrayItem $arrayItem) use($scope) : Arg { + $args = \array_map(function (ArrayItem $arrayItem) use($mutatingScope) : Arg { if ($arrayItem->unpack) { // Do not unpack anymore $arrayItem->unpack = \false; - return $this->createArgFromSpreadArrayItem($scope, $arrayItem); + return $this->createArgFromSpreadArrayItem($mutatingScope, $arrayItem); } return new Arg($arrayItem); }, $arrayItems); @@ -148,7 +149,7 @@ final class ArrayMergeFromArraySpreadFactory * as to invoke it only once and avoid potential bugs, * such as a method executing some side-effect */ - private function createVariableFromNonVariable(Array_ $array, ArrayItem $arrayItem, int $position, Scope $scope, File $file) : Variable + private function createVariableFromNonVariable(Array_ $array, ArrayItem $arrayItem, int $position, MutatingScope $mutatingScope, File $file) : Variable { // The variable name will be item0Unpacked, item1Unpacked, etc, // depending on their position. @@ -157,7 +158,7 @@ final class ArrayMergeFromArraySpreadFactory $smartFileInfo = $file->getSmartFileInfo(); $realPath = $smartFileInfo->getRealPath(); $position = $this->lastPositionCurrentFile[$realPath] ?? $position; - $variableName = $this->variableNaming->resolveFromNodeWithScopeCountAndFallbackName($array, $scope, 'item' . $position . 'Unpacked'); + $variableName = $this->variableNaming->resolveFromNodeWithScopeCountAndFallbackName($array, $mutatingScope, 'item' . $position . 'Unpacked'); if ($this->shouldIncrement) { $this->lastPositionCurrentFile[$realPath] = ++$position; } @@ -175,7 +176,7 @@ final class ArrayMergeFromArraySpreadFactory $array = new Array_($items); return new ArrayItem($array); } - private function createArgFromSpreadArrayItem(Scope $nodeScope, ArrayItem $arrayItem) : Arg + private function createArgFromSpreadArrayItem(MutatingScope $mutatingScope, ArrayItem $arrayItem) : Arg { // By now every item is a variable /** @var Variable $variable */ @@ -183,12 +184,12 @@ final class ArrayMergeFromArraySpreadFactory $variableName = $this->nodeNameResolver->getName($variable) ?? ''; // If the variable is not in scope, it's one we just added. // Then get the type from the attribute - if ($nodeScope->hasVariableType($variableName)->yes()) { - $type = $nodeScope->getVariableType($variableName); + if ($mutatingScope->hasVariableType($variableName)->yes()) { + $type = $mutatingScope->getVariableType($variableName); } else { $originalNode = $arrayItem->getAttribute(AttributeKey::ORIGINAL_NODE); if ($originalNode instanceof ArrayItem) { - $type = $nodeScope->getType($originalNode->value); + $type = $mutatingScope->getType($originalNode->value); } else { throw new ShouldNotHappenException(); } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php similarity index 97% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php index 439190c1c94..895c2b0a2f3 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php @@ -6,6 +6,7 @@ namespace Rector\DowngradePhp81\Rector\Array_; use PhpParser\Node; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\ArrayItem; +use PHPStan\Analyser\MutatingScope; use PHPStan\Analyser\Scope; use PHPStan\Type\ArrayType; use PHPStan\Type\IntegerType; @@ -67,6 +68,7 @@ CODE_SAMPLE if ($this->shouldSkipArray($node)) { return null; } + /** @var MutatingScope $scope */ return $this->arrayMergeFromArraySpreadFactory->createFromArray($node, $scope, $this->file); } private function shouldSkipArray(Array_ $array) : bool diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php similarity index 91% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php index 6b2432c89a7..7137b75246c 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php @@ -8,8 +8,8 @@ use PhpParser\Node\Expr\Closure; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PHPStan\Type\NeverType; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -21,7 +21,7 @@ final class DowngradeNeverTypeDeclarationRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php similarity index 90% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php index 8b117d367b4..33d76ba5342 100644 --- a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php +++ b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\Closure; use PhpParser\Node\IntersectionType; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; -use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator; use Rector\Core\Rector\AbstractRector; +use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** @@ -22,7 +22,7 @@ final class DowngradePureIntersectionTypeRector extends AbstractRector { /** * @readonly - * @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator + * @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator */ private $phpDocFromTypeDeclarationDecorator; public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator) @@ -72,7 +72,7 @@ CODE_SAMPLE } return null; } - $this->phpDocFromTypeDeclarationDecorator->decorate($node); + $this->phpDocFromTypeDeclarationDecorator->decorateReturn($node); return $node; } } diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/snippet/array_is_list_closure.php.inc b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/snippet/array_is_list_closure.php.inc similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/snippet/array_is_list_closure.php.inc rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/snippet/array_is_list_closure.php.inc diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp81/snippet/enum_exists_closure.php.inc b/vendor/rector/rector-downgrade-php/rules/DowngradePhp81/snippet/enum_exists_closure.php.inc similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp81/snippet/enum_exists_closure.php.inc rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp81/snippet/enum_exists_closure.php.inc diff --git a/vendor/rector/rector-downgrade-php/src/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php similarity index 100% rename from vendor/rector/rector-downgrade-php/src/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php rename to vendor/rector/rector-downgrade-php/rules/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php diff --git a/vendor/rector/rector-downgrade-php/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php b/vendor/rector/rector-downgrade-php/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php new file mode 100644 index 00000000000..e81eedccc43 --- /dev/null +++ b/vendor/rector/rector-downgrade-php/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php @@ -0,0 +1,257 @@ +staticTypeMapper = $staticTypeMapper; + $this->phpDocInfoFactory = $phpDocInfoFactory; + $this->nodeNameResolver = $nodeNameResolver; + $this->phpDocTypeChanger = $phpDocTypeChanger; + $this->betterNodeFinder = $betterNodeFinder; + $this->phpAttributeGroupFactory = $phpAttributeGroupFactory; + $this->reflectionResolver = $reflectionResolver; + $this->phpAttributeAnalyzer = $phpAttributeAnalyzer; + $this->phpVersionProvider = $phpVersionProvider; + $this->classMethodWillChangeReturnTypes = [ + // @todo how to make list complete? is the method list needed or can we use just class names? + new ClassMethodWillChangeReturnType('ArrayAccess', 'offsetGet'), + new ClassMethodWillChangeReturnType('ArrayAccess', 'getIterator'), + ]; + } + /** + * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|\PhpParser\Node\Expr\ArrowFunction $functionLike + */ + public function decorateReturn($functionLike) : void + { + if ($functionLike->returnType === null) { + return; + } + $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($functionLike); + $returnTagValueNode = $phpDocInfo->getReturnTagValue(); + $returnType = $returnTagValueNode instanceof ReturnTagValueNode ? $this->staticTypeMapper->mapPHPStanPhpDocTypeToPHPStanType($returnTagValueNode, $functionLike->returnType) : $this->staticTypeMapper->mapPhpParserNodePHPStanType($functionLike->returnType); + // if nullable is supported, downgrade to that one + if ($this->isNullableSupportedAndPossible($returnType)) { + $returnTypeNode = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($returnType, TypeKind::RETURN); + $functionLike->returnType = $returnTypeNode; + return; + } + $this->phpDocTypeChanger->changeReturnType($phpDocInfo, $returnType); + $functionLike->returnType = null; + if (!$functionLike instanceof ClassMethod) { + return; + } + $classLike = $this->betterNodeFinder->findParentByTypes($functionLike, [Class_::class, Interface_::class]); + if (!$classLike instanceof ClassLike) { + return; + } + if (!$this->isRequireReturnTypeWillChange($classLike, $functionLike)) { + return; + } + $functionLike->attrGroups[] = $this->phpAttributeGroupFactory->createFromClass('ReturnTypeWillChange'); + } + /** + * @param array> $requiredTypes + * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|\PhpParser\Node\Expr\ArrowFunction $functionLike + */ + public function decorateParam(Param $param, $functionLike, array $requiredTypes) : void + { + if ($param->type === null) { + return; + } + $type = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type); + if (!$this->isMatchingType($type, $requiredTypes)) { + return; + } + if ($this->isNullableSupportedAndPossible($type)) { + $param->type = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($type, TypeKind::PARAM); + return; + } + $this->moveParamTypeToParamDoc($functionLike, $param, $type); + } + /** + * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|\PhpParser\Node\Expr\ArrowFunction $functionLike + */ + public function decorateParamWithSpecificType(Param $param, $functionLike, Type $requireType) : void + { + if ($param->type === null) { + return; + } + if (!$this->isTypeMatch($param->type, $requireType)) { + return; + } + $type = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type); + if ($this->isNullableSupportedAndPossible($type)) { + $param->type = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($type, TypeKind::PARAM); + return; + } + $this->moveParamTypeToParamDoc($functionLike, $param, $type); + } + /** + * @return bool True if node was changed + * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|\PhpParser\Node\Expr\ArrowFunction $functionLike + */ + public function decorateReturnWithSpecificType($functionLike, Type $requireType) : bool + { + if ($functionLike->returnType === null) { + return \false; + } + if (!$this->isTypeMatch($functionLike->returnType, $requireType)) { + return \false; + } + $this->decorateReturn($functionLike); + return \true; + } + private function isRequireReturnTypeWillChange(ClassLike $classLike, ClassMethod $classMethod) : bool + { + $className = $this->nodeNameResolver->getName($classLike); + if (!\is_string($className)) { + return \false; + } + $methodName = $classMethod->name->toString(); + $classReflection = $this->reflectionResolver->resolveClassAndAnonymousClass($classLike); + if ($classReflection->isAnonymous()) { + return \false; + } + // support for will return change type in case of removed return doc type + // @see https://php.watch/versions/8.1/ReturnTypeWillChange + foreach ($this->classMethodWillChangeReturnTypes as $classMethodWillChangeReturnType) { + if ($classMethodWillChangeReturnType->getMethodName() !== $methodName) { + continue; + } + if (!$classReflection->isSubclassOf($classMethodWillChangeReturnType->getClassName())) { + continue; + } + if ($this->phpAttributeAnalyzer->hasPhpAttribute($classMethod, 'ReturnTypeWillChange')) { + continue; + } + return \true; + } + return \false; + } + /** + * @param \PhpParser\Node\ComplexType|\PhpParser\Node\Identifier|\PhpParser\Node\Name $typeNode + */ + private function isTypeMatch($typeNode, Type $requireType) : bool + { + $returnType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($typeNode); + // cover nullable union types + if ($returnType instanceof UnionType) { + $returnType = TypeCombinator::removeNull($returnType); + } + if ($returnType instanceof ObjectType) { + return $returnType->equals($requireType); + } + return \get_class($returnType) === \get_class($requireType); + } + /** + * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|\PhpParser\Node\Expr\ArrowFunction $functionLike + */ + private function moveParamTypeToParamDoc($functionLike, Param $param, Type $type) : void + { + $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($functionLike); + $paramName = $this->nodeNameResolver->getName($param); + $this->phpDocTypeChanger->changeParamType($phpDocInfo, $type, $param, $paramName); + $param->type = null; + } + /** + * @param array> $requiredTypes + */ + private function isMatchingType(Type $type, array $requiredTypes) : bool + { + return \in_array(\get_class($type), $requiredTypes, \true); + } + private function isNullableSupportedAndPossible(Type $type) : bool + { + if (!$this->phpVersionProvider->isAtLeastPhpVersion(PhpVersionFeature::NULLABLE_TYPE)) { + return \false; + } + if (!$type instanceof UnionType) { + return \false; + } + return TypeCombinator::containsNull($type); + } +} diff --git a/vendor/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeLevelSetList.php b/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php similarity index 99% rename from vendor/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeLevelSetList.php rename to vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php index ebbb47c9bbe..7f633152e56 100644 --- a/vendor/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeLevelSetList.php +++ b/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php @@ -4,6 +4,9 @@ declare (strict_types=1); namespace Rector\Set\ValueObject; use Rector\Set\Contract\SetListInterface; +/** + * @api + */ final class DowngradeLevelSetList implements SetListInterface { /** diff --git a/vendor/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeSetList.php b/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php similarity index 98% rename from vendor/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeSetList.php rename to vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php index 8cda7fb7c58..5172251f49f 100644 --- a/vendor/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeSetList.php +++ b/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php @@ -4,6 +4,9 @@ declare (strict_types=1); namespace Rector\Set\ValueObject; use Rector\Set\Contract\SetListInterface; +/** + * @api + */ final class DowngradeSetList implements SetListInterface { /** diff --git a/vendor/rector/rector-downgrade-php/src/ValueObject/ClassMethodWillChangeReturnType.php b/vendor/rector/rector-downgrade-php/src/ValueObject/ClassMethodWillChangeReturnType.php new file mode 100644 index 00000000000..cf06953710b --- /dev/null +++ b/vendor/rector/rector-downgrade-php/src/ValueObject/ClassMethodWillChangeReturnType.php @@ -0,0 +1,31 @@ +className = $className; + $this->methodName = $methodName; + } + public function getClassName() : string + { + return $this->className; + } + public function getMethodName() : string + { + return $this->methodName; + } +} diff --git a/vendor/rector/rector-laravel/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php b/vendor/rector/rector-laravel/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php index 062b63174b0..ee25b4774b9 100644 --- a/vendor/rector/rector-laravel/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php +++ b/vendor/rector/rector-laravel/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php @@ -96,7 +96,6 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall $node - * @return \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|null */ private function processArgumentOnPosition($node, Expr $argExpr, int $argumentPosition) { diff --git a/vendor/rector/rector-phpoffice/src/Rector/StaticCall/AddRemovedDefaultValuesRector.php b/vendor/rector/rector-phpoffice/src/Rector/StaticCall/AddRemovedDefaultValuesRector.php index a41495945ab..2aa412a9559 100644 --- a/vendor/rector/rector-phpoffice/src/Rector/StaticCall/AddRemovedDefaultValuesRector.php +++ b/vendor/rector/rector-phpoffice/src/Rector/StaticCall/AddRemovedDefaultValuesRector.php @@ -56,7 +56,6 @@ CODE_SAMPLE } /** * @param StaticCall|MethodCall $node - * @return null|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall */ public function refactor(Node $node) { diff --git a/vendor/rector/rector-phpunit/src/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector.php b/vendor/rector/rector-phpunit/src/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector.php index 4c8224b0a3c..9f434a972fa 100644 --- a/vendor/rector/rector-phpunit/src/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector.php +++ b/vendor/rector/rector-phpunit/src/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector.php @@ -104,7 +104,6 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $call - * @return \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|null */ private function processAssertEqualsIgnoringCase($call) { @@ -126,7 +125,6 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $call - * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null */ private function processAssertEqualsCanonicalizing($call) { @@ -150,7 +148,6 @@ CODE_SAMPLE } /** * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $call - * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null */ private function processAssertEqualsWithDelta($call) { diff --git a/vendor/rector/rector-phpunit/src/Rector/MethodCall/AssertFalseStrposToContainsRector.php b/vendor/rector/rector-phpunit/src/Rector/MethodCall/AssertFalseStrposToContainsRector.php index 797b70deea3..26183f9aae8 100644 --- a/vendor/rector/rector-phpunit/src/Rector/MethodCall/AssertFalseStrposToContainsRector.php +++ b/vendor/rector/rector-phpunit/src/Rector/MethodCall/AssertFalseStrposToContainsRector.php @@ -71,7 +71,6 @@ final class AssertFalseStrposToContainsRector extends AbstractRector } /** * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node - * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null */ private function changeArgumentsOrder($node) { diff --git a/vendor/rector/rector-symfony/src/NodeAnalyzer/RouteRequiredParamNameToTypesResolver.php b/vendor/rector/rector-symfony/src/NodeAnalyzer/RouteRequiredParamNameToTypesResolver.php index 8d566114cdb..ef3a57b28b9 100644 --- a/vendor/rector/rector-symfony/src/NodeAnalyzer/RouteRequiredParamNameToTypesResolver.php +++ b/vendor/rector/rector-symfony/src/NodeAnalyzer/RouteRequiredParamNameToTypesResolver.php @@ -56,7 +56,6 @@ final class RouteRequiredParamNameToTypesResolver } /** * @return array - * @param \Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode|\PhpParser\Node\Attribute|null $routeAttrination */ private function resolveParamsToRegexes($routeAttrination) : array { diff --git a/vendor/rector/rector-symfony/src/NodeFactory/ThisRenderFactory.php b/vendor/rector/rector-symfony/src/NodeFactory/ThisRenderFactory.php index e43f1ad6691..7c60e47357d 100644 --- a/vendor/rector/rector-symfony/src/NodeFactory/ThisRenderFactory.php +++ b/vendor/rector/rector-symfony/src/NodeFactory/ThisRenderFactory.php @@ -124,10 +124,7 @@ final class ThisRenderFactory } return null; } - /** - * @return string|null - */ - private function resolveTemplate(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) + private function resolveTemplate(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?string { $templateParameter = $doctrineAnnotationTagValueNode->getValue('template'); if (\is_string($templateParameter)) { diff --git a/vendor/rector/rector-symfony/src/Rector/BinaryOp/ResponseStatusCodeRector.php b/vendor/rector/rector-symfony/src/Rector/BinaryOp/ResponseStatusCodeRector.php index a282d28c8cb..a7dcb29c884 100644 --- a/vendor/rector/rector-symfony/src/Rector/BinaryOp/ResponseStatusCodeRector.php +++ b/vendor/rector/rector-symfony/src/Rector/BinaryOp/ResponseStatusCodeRector.php @@ -97,10 +97,7 @@ CODE_SAMPLE } return $this->processBinaryOp($node); } - /** - * @return \PhpParser\Node\Expr\CallLike|null - */ - private function processMethodCall(MethodCall $methodCall) + private function processMethodCall(MethodCall $methodCall) : ?\PhpParser\Node\Expr\CallLike { if ($this->isName($methodCall->name, 'assert*')) { return $this->processAssertMethodCall($methodCall); @@ -151,10 +148,7 @@ CODE_SAMPLE } return $this->nodeFactory->createClassConstFetch($this->responseObjectType->getClassName(), SymfonyResponseConstantMap::CODE_TO_CONST[$lNumber->value]); } - /** - * @return \PhpParser\Node\Expr\MethodCall|null - */ - private function processAssertMethodCall(MethodCall $methodCall) + private function processAssertMethodCall(MethodCall $methodCall) : ?\PhpParser\Node\Expr\MethodCall { $args = $methodCall->getArgs(); if (!isset($args[1])) { @@ -166,20 +160,14 @@ CODE_SAMPLE } return $this->literalCallLikeConstFetchReplacer->replaceArgOnPosition($methodCall, 0, 'Symfony\\Component\\HttpFoundation\\Response', SymfonyResponseConstantMap::CODE_TO_CONST); } - /** - * @return \PhpParser\Node\Expr\MethodCall|null - */ - private function processRedirectMethodCall(MethodCall $methodCall) + private function processRedirectMethodCall(MethodCall $methodCall) : ?\PhpParser\Node\Expr\MethodCall { if (!$this->controllerAnalyzer->isController($methodCall->var)) { return null; } return $this->literalCallLikeConstFetchReplacer->replaceArgOnPosition($methodCall, 1, 'Symfony\\Component\\HttpFoundation\\Response', SymfonyResponseConstantMap::CODE_TO_CONST); } - /** - * @return \PhpParser\Node\Expr\New_|null - */ - private function processNew(New_ $new) + private function processNew(New_ $new) : ?\PhpParser\Node\Expr\New_ { if (!$this->isObjectType($new->class, $this->responseObjectType)) { return null; diff --git a/vendor/rector/rector-symfony/src/Rector/ClassMethod/GetRequestRector.php b/vendor/rector/rector-symfony/src/Rector/ClassMethod/GetRequestRector.php index d37d2e048f9..2208ceb2316 100644 --- a/vendor/rector/rector-symfony/src/Rector/ClassMethod/GetRequestRector.php +++ b/vendor/rector/rector-symfony/src/Rector/ClassMethod/GetRequestRector.php @@ -185,10 +185,7 @@ CODE_SAMPLE } return $this->requestVariableAndParamName; } - /** - * @return null|\PhpParser\Node\Stmt\ClassMethod - */ - private function refactorClassMethod(ClassMethod $classMethod) + private function refactorClassMethod(ClassMethod $classMethod) : ?\PhpParser\Node\Stmt\ClassMethod { $this->requestVariableAndParamName = $this->resolveUniqueName($classMethod, 'request'); if (!$this->isActionWithGetRequestInBody($classMethod)) { diff --git a/vendor/rector/rector-symfony/src/Rector/MethodCall/AuthorizationCheckerIsGrantedExtractorRector.php b/vendor/rector/rector-symfony/src/Rector/MethodCall/AuthorizationCheckerIsGrantedExtractorRector.php index 7e43a20a39f..0ec513a2b9f 100644 --- a/vendor/rector/rector-symfony/src/Rector/MethodCall/AuthorizationCheckerIsGrantedExtractorRector.php +++ b/vendor/rector/rector-symfony/src/Rector/MethodCall/AuthorizationCheckerIsGrantedExtractorRector.php @@ -50,7 +50,6 @@ CODE_SAMPLE } /** * @param MethodCall $node - * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\BinaryOp\BooleanOr|null */ public function refactor(Node $node) { @@ -80,7 +79,6 @@ CODE_SAMPLE } /** * @param Arg[] $args - * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\BinaryOp\BooleanOr|null */ private function processExtractIsGranted(MethodCall $methodCall, Array_ $array, array $args) { diff --git a/vendor/rector/rector-symfony/src/Rector/MethodCall/CascadeValidationFormBuilderRector.php b/vendor/rector/rector-symfony/src/Rector/MethodCall/CascadeValidationFormBuilderRector.php index 55559917ea8..624dae86d32 100644 --- a/vendor/rector/rector-symfony/src/Rector/MethodCall/CascadeValidationFormBuilderRector.php +++ b/vendor/rector/rector-symfony/src/Rector/MethodCall/CascadeValidationFormBuilderRector.php @@ -150,10 +150,7 @@ CODE_SAMPLE $new = new New_(new FullyQualified('Symfony\\Component\\Validator\\Constraints\\Valid')); return new Array_([new ArrayItem($new)]); } - /** - * @return null|\PhpParser\Node\Expr\ArrayItem - */ - private function refactorArrayItem(ArrayItem $arrayItem) + private function refactorArrayItem(ArrayItem $arrayItem) : ?\PhpParser\Node\Expr\ArrayItem { if (!$arrayItem->key instanceof Expr) { return null; diff --git a/vendor/rector/rector-symfony/src/Rector/MethodCall/LiteralGetToRequestClassConstantRector.php b/vendor/rector/rector-symfony/src/Rector/MethodCall/LiteralGetToRequestClassConstantRector.php index 494e24821ab..6d087d0c468 100644 --- a/vendor/rector/rector-symfony/src/Rector/MethodCall/LiteralGetToRequestClassConstantRector.php +++ b/vendor/rector/rector-symfony/src/Rector/MethodCall/LiteralGetToRequestClassConstantRector.php @@ -87,10 +87,7 @@ CODE_SAMPLE } return $this->literalCallLikeConstFetchReplacer->replaceArgOnPosition($node, 0, 'Symfony\\Component\\HttpFoundation\\Request', SymfonyRequestConstantMap::METHOD_TO_CONST); } - /** - * @return \PhpParser\Node\Expr\StaticCall|null - */ - private function refactorStaticCall(StaticCall $staticCall) + private function refactorStaticCall(StaticCall $staticCall) : ?\PhpParser\Node\Expr\StaticCall { if (!$this->isObjectType($staticCall->class, new ObjectType('Symfony\\Component\\HttpFoundation\\Request'))) { return null; @@ -100,10 +97,7 @@ CODE_SAMPLE } return $this->literalCallLikeConstFetchReplacer->replaceArgOnPosition($staticCall, 1, 'Symfony\\Component\\HttpFoundation\\Request', SymfonyRequestConstantMap::METHOD_TO_CONST); } - /** - * @return \PhpParser\Node\Expr\MethodCall|null - */ - private function refactorClientMethodCall(MethodCall $methodCall) + private function refactorClientMethodCall(MethodCall $methodCall) : ?\PhpParser\Node\Expr\MethodCall { if (!$this->isName($methodCall->name, 'request')) { return null; diff --git a/vendor/symfony/config/Definition/BaseNode.php b/vendor/symfony/config/Definition/BaseNode.php index 10aa234dc7d..449b3cbb5b2 100644 --- a/vendor/symfony/config/Definition/BaseNode.php +++ b/vendor/symfony/config/Definition/BaseNode.php @@ -149,7 +149,6 @@ abstract class BaseNode implements NodeInterface } /** * Retrieves the example configuration for this node. - * @return string|mixed[]|null */ public function getExample() { diff --git a/vendor/symfony/config/Definition/Builder/NodeDefinition.php b/vendor/symfony/config/Definition/Builder/NodeDefinition.php index fc27c3ce918..19e482db86a 100644 --- a/vendor/symfony/config/Definition/Builder/NodeDefinition.php +++ b/vendor/symfony/config/Definition/Builder/NodeDefinition.php @@ -82,7 +82,6 @@ abstract class NodeDefinition implements NodeParentInterface } /** * Returns the parent node. - * @return \Symfony\Component\Config\Definition\Builder\NodeParentInterface|\Symfony\Component\Config\Definition\Builder\NodeBuilder|\Symfony\Component\Config\Definition\Builder\NodeDefinition|\Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition|\Symfony\Component\Config\Definition\Builder\VariableNodeDefinition|null */ public function end() { diff --git a/vendor/symfony/console/Input/ArgvInput.php b/vendor/symfony/console/Input/ArgvInput.php index 9e7500b0cce..b341bfce51e 100644 --- a/vendor/symfony/console/Input/ArgvInput.php +++ b/vendor/symfony/console/Input/ArgvInput.php @@ -292,7 +292,6 @@ class ArgvInput extends Input /** * {@inheritdoc} * @param string|mixed[] $values - * @param string|bool|int|float|mixed[]|null $default * @return mixed */ public function getParameterOption($values, $default = \false, bool $onlyParams = \false) diff --git a/vendor/symfony/console/Input/ArrayInput.php b/vendor/symfony/console/Input/ArrayInput.php index 8ca8bde6b65..18fdb08028e 100644 --- a/vendor/symfony/console/Input/ArrayInput.php +++ b/vendor/symfony/console/Input/ArrayInput.php @@ -68,7 +68,6 @@ class ArrayInput extends Input /** * {@inheritdoc} * @param string|mixed[] $values - * @param string|bool|int|float|mixed[]|null $default * @return mixed */ public function getParameterOption($values, $default = \false, bool $onlyParams = \false) diff --git a/vendor/symfony/console/Input/InputArgument.php b/vendor/symfony/console/Input/InputArgument.php index a6def788c74..47d4a49c1a5 100644 --- a/vendor/symfony/console/Input/InputArgument.php +++ b/vendor/symfony/console/Input/InputArgument.php @@ -115,7 +115,6 @@ class InputArgument } /** * Returns the default value. - * @return string|bool|int|float|mixed[]|null */ public function getDefault() { diff --git a/vendor/symfony/console/Input/InputOption.php b/vendor/symfony/console/Input/InputOption.php index f2fc97669c3..346af937c00 100644 --- a/vendor/symfony/console/Input/InputOption.php +++ b/vendor/symfony/console/Input/InputOption.php @@ -191,7 +191,6 @@ class InputOption } /** * Returns the default value. - * @return string|bool|int|float|mixed[]|null */ public function getDefault() { diff --git a/vendor/symfony/console/Question/Question.php b/vendor/symfony/console/Question/Question.php index 5d68ad0db28..cf39d73fc3e 100644 --- a/vendor/symfony/console/Question/Question.php +++ b/vendor/symfony/console/Question/Question.php @@ -77,7 +77,6 @@ class Question } /** * Returns the default answer. - * @return string|bool|int|float|null */ public function getDefault() { diff --git a/vendor/symfony/dependency-injection/Attribute/Autoconfigure.php b/vendor/symfony/dependency-injection/Attribute/Autoconfigure.php index 0f7f0d481ce..1c14335ab7f 100644 --- a/vendor/symfony/dependency-injection/Attribute/Autoconfigure.php +++ b/vendor/symfony/dependency-injection/Attribute/Autoconfigure.php @@ -54,10 +54,6 @@ class Autoconfigure * @var mixed[]|string|null */ public $configurator = null; - /** - * @param bool|string|null $lazy - * @param mixed[]|string|null $configurator - */ public function __construct(?array $tags = null, ?array $calls = null, ?array $bind = null, $lazy = null, ?bool $public = null, ?bool $shared = null, ?bool $autowire = null, ?array $properties = null, $configurator = null) { $this->tags = $tags; diff --git a/vendor/symfony/dependency-injection/Compiler/PriorityTaggedServiceTrait.php b/vendor/symfony/dependency-injection/Compiler/PriorityTaggedServiceTrait.php index 121d7297dbe..86d06ecbcaa 100644 --- a/vendor/symfony/dependency-injection/Compiler/PriorityTaggedServiceTrait.php +++ b/vendor/symfony/dependency-injection/Compiler/PriorityTaggedServiceTrait.php @@ -107,9 +107,6 @@ trait PriorityTaggedServiceTrait */ class PriorityTaggedServiceUtil { - /** - * @return string|int|null - */ public static function getDefault(ContainerBuilder $container, string $serviceId, string $class, string $defaultMethod, string $tagName, ?string $indexAttribute, bool $checkTaggedItem) { if (!($r = $container->getReflectionClass($class)) || !$checkTaggedItem && !$r->hasMethod($defaultMethod)) { diff --git a/vendor/symfony/dependency-injection/Container.php b/vendor/symfony/dependency-injection/Container.php index 28f1cb28bcd..92306add305 100644 --- a/vendor/symfony/dependency-injection/Container.php +++ b/vendor/symfony/dependency-injection/Container.php @@ -113,9 +113,6 @@ class Container implements ContainerInterface, ResetInterface { return $this->parameterBag->has($name); } - /** - * @param mixed[]|bool|string|int|float|\UnitEnum|null $value - */ public function setParameter(string $name, $value) { $this->parameterBag->set($name, $value); diff --git a/vendor/symfony/dependency-injection/ContainerInterface.php b/vendor/symfony/dependency-injection/ContainerInterface.php index 0f91935da83..4d593b78630 100644 --- a/vendor/symfony/dependency-injection/ContainerInterface.php +++ b/vendor/symfony/dependency-injection/ContainerInterface.php @@ -47,8 +47,5 @@ interface ContainerInterface extends PsrContainerInterface */ public function getParameter(string $name); public function hasParameter(string $name) : bool; - /** - * @param mixed[]|bool|string|int|float|\UnitEnum|null $value - */ public function setParameter(string $name, $value); } diff --git a/vendor/symfony/dependency-injection/Definition.php b/vendor/symfony/dependency-injection/Definition.php index ee91ecf6a2c..77ad22fa3b7 100644 --- a/vendor/symfony/dependency-injection/Definition.php +++ b/vendor/symfony/dependency-injection/Definition.php @@ -670,7 +670,6 @@ class Definition } /** * Gets the configurator to call after the service is fully initialized. - * @return string|mixed[]|null */ public function getConfigurator() { diff --git a/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php b/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php index 35609b2cd23..0225f566e9b 100644 --- a/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php +++ b/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php @@ -243,7 +243,6 @@ class YamlFileLoader extends FileLoader } /** * @throws InvalidArgumentException When tags are invalid - * @param mixed[]|string|null $service */ private function parseDefinition(string $id, $service, string $file, array $defaults, bool $return = \false, bool $trackBindings = \true) { diff --git a/vendor/symfony/dependency-injection/ParameterBag/ContainerBag.php b/vendor/symfony/dependency-injection/ParameterBag/ContainerBag.php index bc1afe2a1da..c87d054691c 100644 --- a/vendor/symfony/dependency-injection/ParameterBag/ContainerBag.php +++ b/vendor/symfony/dependency-injection/ParameterBag/ContainerBag.php @@ -33,7 +33,6 @@ class ContainerBag extends FrozenParameterBag implements ContainerBagInterface } /** * {@inheritdoc} - * @return mixed[]|bool|string|int|float|\UnitEnum|null */ public function get(string $name) { diff --git a/vendor/symfony/dependency-injection/ParameterBag/EnvPlaceholderParameterBag.php b/vendor/symfony/dependency-injection/ParameterBag/EnvPlaceholderParameterBag.php index 01110a1a0e3..1e6e33c416c 100644 --- a/vendor/symfony/dependency-injection/ParameterBag/EnvPlaceholderParameterBag.php +++ b/vendor/symfony/dependency-injection/ParameterBag/EnvPlaceholderParameterBag.php @@ -39,7 +39,6 @@ class EnvPlaceholderParameterBag extends ParameterBag private static $counter = 0; /** * {@inheritdoc} - * @return mixed[]|bool|string|int|float|null */ public function get(string $name) { diff --git a/vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php b/vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php index 2a13baa9a16..05bb562bcd4 100644 --- a/vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php +++ b/vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php @@ -47,7 +47,6 @@ class FrozenParameterBag extends ParameterBag } /** * {@inheritdoc} - * @param mixed[]|bool|string|int|float|\UnitEnum|null $value */ public function set(string $name, $value) { diff --git a/vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php b/vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php index c4ac241c49b..ac250a1b90c 100644 --- a/vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php +++ b/vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php @@ -51,7 +51,6 @@ class ParameterBag implements ParameterBagInterface } /** * {@inheritdoc} - * @return mixed[]|bool|string|int|float|\UnitEnum|null */ public function get(string $name) { @@ -86,7 +85,6 @@ class ParameterBag implements ParameterBagInterface } /** * {@inheritdoc} - * @param mixed[]|bool|string|int|float|\UnitEnum|null $value */ public function set(string $name, $value) { diff --git a/vendor/symfony/dependency-injection/ParameterBag/ParameterBagInterface.php b/vendor/symfony/dependency-injection/ParameterBag/ParameterBagInterface.php index 6b39af829c0..01991ee24aa 100644 --- a/vendor/symfony/dependency-injection/ParameterBag/ParameterBagInterface.php +++ b/vendor/symfony/dependency-injection/ParameterBag/ParameterBagInterface.php @@ -39,7 +39,6 @@ interface ParameterBagInterface * Gets a service container parameter. * * @throws ParameterNotFoundException if the parameter is not defined - * @return mixed[]|bool|string|int|float|\UnitEnum|null */ public function get(string $name); /** @@ -50,7 +49,6 @@ interface ParameterBagInterface * Sets a service container parameter. * * @throws LogicException if the parameter cannot be set - * @param mixed[]|bool|string|int|float|\UnitEnum|null $value */ public function set(string $name, $value); /** diff --git a/vendor/symfony/polyfill-mbstring/bootstrap80.php b/vendor/symfony/polyfill-mbstring/bootstrap80.php index 777b44981a1..f68f9a1a3ce 100644 --- a/vendor/symfony/polyfill-mbstring/bootstrap80.php +++ b/vendor/symfony/polyfill-mbstring/bootstrap80.php @@ -13,8 +13,6 @@ use Symfony\Polyfill\Mbstring as p; if (!function_exists('mb_convert_encoding')) { /** - * @param mixed[]|string|null $string - * @param mixed[]|string|null $from_encoding * @return mixed[]|string|true */ function mb_convert_encoding($string, ?string $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); } @@ -53,21 +51,16 @@ if (!function_exists('mb_encoding_aliases')) { function mb_encoding_aliases(?string $encoding): array { return p\Mbstring::mb_encoding_aliases((string) $encoding); } } if (!function_exists('mb_check_encoding')) { - /** - * @param mixed[]|string|null $value - */ function mb_check_encoding($value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); } } if (!function_exists('mb_detect_encoding')) { /** - * @param mixed[]|string|null $encodings * @return string|true */ function mb_detect_encoding(?string $string, $encodings = null, ?bool $strict = false) { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); } } if (!function_exists('mb_detect_order')) { /** - * @param mixed[]|string|null $encoding * @return mixed[]|bool */ function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); } @@ -92,7 +85,6 @@ if (!function_exists('mb_strtoupper')) { } if (!function_exists('mb_substitute_character')) { /** - * @param string|int|null $substitute_character * @return string|int|bool */ function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); } @@ -172,7 +164,6 @@ if (!function_exists('mb_http_input')) { if (!function_exists('mb_convert_variables')) { /** - * @param mixed[]|string|null $from_encoding * @return string|true * @param mixed $var * @param mixed ...$vars diff --git a/vendor/symplify/astral/src/NodeTraverser/SimpleCallableNodeTraverser.php b/vendor/symplify/astral/src/NodeTraverser/SimpleCallableNodeTraverser.php index dc7ebdd4bb4..044f1d72b71 100644 --- a/vendor/symplify/astral/src/NodeTraverser/SimpleCallableNodeTraverser.php +++ b/vendor/symplify/astral/src/NodeTraverser/SimpleCallableNodeTraverser.php @@ -13,7 +13,7 @@ final class SimpleCallableNodeTraverser { /** * @param callable(Node $node): (int|Node|null) $callable - * @param \PhpParser\Node|mixed[]|null $nodes + * @param Node|Node[]|null $nodes */ public function traverseNodesWithCallable($nodes, callable $callable) : void { diff --git a/vendor/symplify/astral/src/NodeVisitor/CallableNodeVisitor.php b/vendor/symplify/astral/src/NodeVisitor/CallableNodeVisitor.php index 734374e9446..87595c09cad 100644 --- a/vendor/symplify/astral/src/NodeVisitor/CallableNodeVisitor.php +++ b/vendor/symplify/astral/src/NodeVisitor/CallableNodeVisitor.php @@ -21,9 +21,6 @@ final class CallableNodeVisitor extends NodeVisitorAbstract { $this->callable = $callable; } - /** - * @return int|\PhpParser\Node|null - */ public function enterNode(Node $node) { $originalNode = $node; diff --git a/vendor/symplify/astral/src/PhpDocParser/Contract/PhpDocNodeVisitorInterface.php b/vendor/symplify/astral/src/PhpDocParser/Contract/PhpDocNodeVisitorInterface.php index f0d9bff39fc..2e41df2ecf3 100644 --- a/vendor/symplify/astral/src/PhpDocParser/Contract/PhpDocNodeVisitorInterface.php +++ b/vendor/symplify/astral/src/PhpDocParser/Contract/PhpDocNodeVisitorInterface.php @@ -10,9 +10,6 @@ use PHPStan\PhpDocParser\Ast\Node; interface PhpDocNodeVisitorInterface { public function beforeTraverse(Node $node) : void; - /** - * @return int|\PHPStan\PhpDocParser\Ast\Node|null - */ public function enterNode(Node $node); /** * @return null|int|\PhpParser\Node|Node[] Replacement node (or special return) diff --git a/vendor/symplify/astral/src/PhpDocParser/PhpDocNodeVisitor/AbstractPhpDocNodeVisitor.php b/vendor/symplify/astral/src/PhpDocParser/PhpDocNodeVisitor/AbstractPhpDocNodeVisitor.php index 1bf94b3445d..1ac3419a25f 100644 --- a/vendor/symplify/astral/src/PhpDocParser/PhpDocNodeVisitor/AbstractPhpDocNodeVisitor.php +++ b/vendor/symplify/astral/src/PhpDocParser/PhpDocNodeVisitor/AbstractPhpDocNodeVisitor.php @@ -13,9 +13,6 @@ abstract class AbstractPhpDocNodeVisitor implements PhpDocNodeVisitorInterface public function beforeTraverse(Node $node) : void { } - /** - * @return int|\PHPStan\PhpDocParser\Ast\Node|null - */ public function enterNode(Node $node) { return null; diff --git a/vendor/symplify/astral/src/PhpDocParser/PhpDocNodeVisitor/CallablePhpDocNodeVisitor.php b/vendor/symplify/astral/src/PhpDocParser/PhpDocNodeVisitor/CallablePhpDocNodeVisitor.php index 47c03cc8f3b..a4ab8957c87 100644 --- a/vendor/symplify/astral/src/PhpDocParser/PhpDocNodeVisitor/CallablePhpDocNodeVisitor.php +++ b/vendor/symplify/astral/src/PhpDocParser/PhpDocNodeVisitor/CallablePhpDocNodeVisitor.php @@ -22,9 +22,6 @@ final class CallablePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor $this->docContent = $docContent; $this->callable = $callable; } - /** - * @return int|\PHPStan\PhpDocParser\Ast\Node|null - */ public function enterNode(Node $node) { $callable = $this->callable; diff --git a/vendor/symplify/astral/src/Reflection/ReflectionParser.php b/vendor/symplify/astral/src/Reflection/ReflectionParser.php index 0f487b666fb..be4a4c6515f 100644 --- a/vendor/symplify/astral/src/Reflection/ReflectionParser.php +++ b/vendor/symplify/astral/src/Reflection/ReflectionParser.php @@ -77,10 +77,7 @@ final class ReflectionParser } return $this->parseFilenameToClass($fileName); } - /** - * @return \PhpParser\Node\Stmt\ClassLike|null - */ - private function parseFilenameToClass(string $fileName) + private function parseFilenameToClass(string $fileName) : ?\PhpParser\Node\Stmt\ClassLike { if (isset($this->classesByFilename[$fileName])) { return $this->classesByFilename[$fileName]; diff --git a/vendor/symplify/easy-parallel/src/CpuCoreCountProvider.php b/vendor/symplify/easy-parallel/src/CpuCoreCountProvider.php index 15ebe35a9b3..3ac0e0f8cb3 100644 --- a/vendor/symplify/easy-parallel/src/CpuCoreCountProvider.php +++ b/vendor/symplify/easy-parallel/src/CpuCoreCountProvider.php @@ -43,10 +43,7 @@ final class CpuCoreCountProvider } return $coreCount; } - /** - * @return int|null - */ - private function resolveFromProcCpuinfo() + private function resolveFromProcCpuinfo() : ?int { if (!\is_file('/proc/cpuinfo')) { return null;