From 9beb1da3c0bd6810d0bba7eb55d0676a5b1217d7 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 13 Mar 2021 15:07:31 +0100 Subject: [PATCH] Move fixture requirement from command line to a test case (#5832) --- .github/workflows/code_analysis.yaml | 4 - .github/workflows/weekly_pull_requests.yaml | 6 +- composer.json | 2 + config/set/doctrine-repository-as-service.php | 3 - .../ValueObject/PropertyMetadata.php | 4 +- .../PHPUnit/AbstractRectorTestCase.php | 5 +- phpstan.neon | 1 + .../ArgumentAdderRectorTest.php | 3 + ...ArgumentDefaultValueReplacerRectorTest.php | 3 + .../Symfony28Test.php | 3 + .../SwapFuncCallArgumentsRectorTest.php | 3 + .../Rector/RectorOrder/RectorOrderTest.php | 3 + ...itShortClassNameUseStatementRectorTest.php | 3 + .../ArrayToFluentCallRectorTest.php | 3 + .../ModalToGetSetRectorTest.php | 3 + ...UsesStaticCallToUseStatementRectorTest.php | 3 + .../ChangeSnakedFixtureNameToPascalTest.php | 3 + ...onSingularMethodCallToPluralRectorTest.php | 3 + .../ChangeDiffForHumansArgsRectorTest.php | 3 + ...rrayThisCallToThisMethodCallRectorTest.php | 3 + ...ThisArrayToAnonymousFunctionRectorTest.php | 3 + .../CombinedAssignRectorTest.php | 3 + ...plitListAssignToSeparateLineRectorTest.php | 3 + .../SimplifyEmptyArrayCheckRectorTest.php | 3 + .../SimplifyDeMorganBinaryRectorTest.php | 3 + .../Php8Test.php | 3 + .../ThrowWithPreviousExceptionRectorTest.php | 3 + .../DateTimeToDateTimeInterfaceRectorTest.php | 3 + .../Php74Test.php | 3 + .../CompleteDynamicPropertiesRectorTest.php | 3 + ...ypeCompleteDynamicPropertiesRectorTest.php | 3 + .../JoinStringConcatRectorTest.php | 3 + ...enticalOverEqualWithSameTypeRectorTest.php | 3 + .../InlineIfToExplicitIfRectorTest.php | 3 + ...orRepeatedCountToOwnVariableRectorTest.php | 3 + .../ForToForeachRectorTest.php | 3 + ...msAssignToEmptyArrayToAssignRectorTest.php | 3 + .../ForeachToInArrayRectorTest.php | 3 + ...SimplifyForeachToArrayFilterRectorTest.php | 3 + .../SimplifyForeachToCoalescingRectorTest.php | 3 + ...nusedForeachValueToArrayKeysRectorTest.php | 3 + .../AddPregQuoteDelimiterRectorTest.php | 3 + ...ysAndInArrayToArrayKeyExistsRectorTest.php | 3 + ...ergeOfNonArraysToSimpleArrayRectorTest.php | 3 + ...ChangeArrayPushToArrayAssignRectorTest.php | 3 + .../CompactToVariablesRectorTest.php | 3 + ...AndArrayKeysToArrayKeyExistsRectorTest.php | 3 + .../IntvalToTypeCastRectorTest.php | 3 + ...AWithStringWithThirdArgumentRectorTest.php | 3 + .../RemoveSoleValueSprintfRectorTest.php | 3 + .../SetTypeToCastRectorTest.php | 3 + .../SimplifyFuncGetArgsCountRectorTest.php | 3 + .../SimplifyInArrayValuesRectorTest.php | 3 + .../SimplifyRegexPatternRectorTest.php | 3 + .../SimplifyStrposLowerRectorTest.php | 3 + .../SingleInArrayToCompareRectorTest.php | 3 + .../UnwrapSprintfOneArgumentRectorTest.php | 3 + ...rueConditionSetInConstructorRectorTest.php | 3 + ...anNotIdenticalToNotIdenticalRectorTest.php | 3 + ...ypeControlToUseExclusiveTypeRectorTest.php | 3 + .../GetClassToInstanceOfRectorTest.php | 3 + .../SimplifyArraySearchRectorTest.php | 3 + .../SimplifyBoolIdenticalTrueRectorTest.php | 3 + .../SimplifyConditionsRectorTest.php | 3 + ...enZeroToIdenticalEmptyStringRectorTest.php | 3 + .../CombineIfRector/CombineIfRectorTest.php | 3 + ...reReturnsToNullCoalesceQueueRectorTest.php | 3 + .../ExplicitBoolCompareRectorTest.php | 3 + .../ShortenElseIfRectorTest.php | 3 + .../SimplifyIfElseToTernaryRectorTest.php | 3 + ...plifyIfIssetToNullCoalescingRectorTest.php | 3 + .../SimplifyIfNotNullReturnRectorTest.php | 3 + .../SimplifyIfReturnBoolRectorTest.php | 3 + ...olutizeRequireAndIncludePathRectorTest.php | 3 + ...opertyObjectToPropertyExistsRectorTest.php | 3 + .../Php74Test.php | 3 + .../AndAssignsToSeparateLinesRectorTest.php | 3 + .../LogicalToBooleanRectorTest.php | 3 + .../FixClassCaseSensitivityNameRectorTest.php | 3 + .../NewStaticToNewSelfRectorTest.php | 3 + .../CommonNotEqualRectorTest.php | 3 + .../SimplifyUselessVariableRectorTest.php | 3 + .../SingularSwitchToIfRectorTest.php | 3 + ...TernaryThenValueToCoalescingRectorTest.php | 3 + .../SimplifyDuplicatedTernaryRectorTest.php | 3 + .../SimplifyTautologyTernaryRectorTest.php | 3 + .../SwitchNegatedTernaryRectorTest.php | 3 + ...UnnecessaryTernaryExpressionRectorTest.php | 3 + .../ParamTypeToAssertTypeRectorTest.php | 3 + ...tMethodCallInsideIfConditionRectorTest.php | 3 + .../VarInlineAnnotationToAssertRectorTest.php | 3 + ...ableDeclarationNearReferenceRectorTest.php | 3 + ...lJsonStringToJsonEncodeArrayRectorTest.php | 3 + .../PHPStormVarAnnotationRectorTest.php | 3 + .../SplitDoubleAssignRectorTest.php | 3 + ...tchExceptionNameMatchingTypeRectorTest.php | 3 + ...roupedConstantsAndPropertiesRectorTest.php | 3 + .../VarConstantCommentRectorTest.php | 3 + ...MethodVisibilitySameAsParentRectorTest.php | 3 + ...SkipParentConstructOverrideInPHP72Test.php | 3 + .../NewlineBeforeNewAssignSetRectorTest.php | 3 + ...eturnArrayClassMethodToYieldRectorTest.php | 3 + .../UnSpreadOperatorRectorTest.php | 3 + ...lassMethodToArrayClassMethodRectorTest.php | 3 + ...dArrayDefaultToArrayPropertyRectorTest.php | 3 + .../EncapsedStringsToSprintfRectorTest.php | 3 + ...ncapsedVariableInCurlyBracesRectorTest.php | 3 + .../CallUserFuncCallToVariadicRectorTest.php | 3 + .../ConsistentImplodeRectorTest.php | 3 + .../ConsistentPregDelimiterRectorTest.php | 3 + ...tArrayToEmptyArrayComparisonRectorTest.php | 3 + .../AutoImportTest.php | 3 + .../PreslashSimpleFunctionRectorTest.php | 3 + .../StrictArraySearchRectorTest.php | 3 + ...ionCompareFuncCallToConstantRectorTest.php | 3 + ...seFunctionNamingToUnderscoreRectorTest.php | 3 + .../NullableCompareToNullRectorTest.php | 3 + .../FollowRequireByDirRectorTest.php | 3 + .../PreferThisOrSelfMethodCallRectorTest.php | 3 + ...ableForSprintfInSymfonyStyleRectorTest.php | 3 + .../DocBlockRectorTest.php | 3 + .../NonNamespacedTest.php | 3 + .../Php80Test.php | 3 + .../FixtureSharedShortName.php} | 0 .../UseIncrementAssignRectorTest.php | 3 + .../PostIncDecToPreIncDecRectorTest.php | 3 + ...ddFalseDefaultToBoolPropertyRectorTest.php | 3 + ...assConstantToClassConstFetchRectorTest.php | 3 + .../SymplifyQuoteEscapeRectorTest.php | 3 + ...eywordForClassNameResolutionRectorTest.php | 3 + .../BinarySwitchToIfElseRectorTest.php | 3 + ...yConditionVariableAssignmentRectorTest.php | 3 + .../RemoveUnusedAliasRectorTest.php | 3 + .../SplitGroupedUseImportsRectorTest.php | 3 + .../RemoveDuplicatedArrayKeyRectorTest.php | 3 + ...veAssignOfVoidReturnFunctionRectorTest.php | 3 + .../RemoveDoubleAssignRectorTest.php | 3 + .../RemoveUnusedAssignVariableRectorTest.php | 3 + .../RemoveUnusedVariableAssignRectorTest.php | 3 + .../RemoveDuplicatedInstanceOfRectorTest.php | 3 + .../RemoveAndTrueRectorTest.php | 3 + .../RecastingRemovalRectorTest.php | 3 + .../OpenSourceRectorTest.php | 3 + .../RemoveUnusedClassConstantRectorTest.php | 3 + .../RemoveUnusedPrivateConstantRectorTest.php | 3 + .../RemoveDeadConstructorRector/Php80Test.php | 3 + .../RemoveDeadConstructorRectorTest.php | 3 + ...moveDeadRecursiveClassMethodRectorTest.php | 3 + .../RemoveDelegatingParentCallRectorTest.php | 3 + .../Php80Test.php | 3 + .../RemoveEmptyClassMethodRectorTest.php | 3 + .../Php80Test.php | 3 + ...RemoveUnusedConstructorParamRectorTest.php | 3 + .../OpenSourceRectorTest.php | 3 + .../RemoveUnusedParameterRector/Php80Test.php | 3 + .../RemoveUnusedParameterRectorTest.php | 3 + .../RemoveUnusedPrivateMethodRectorTest.php | 3 + .../OpenSourceRectorTest.php | 3 + .../RemoveUnusedPublicMethodRectorTest.php | 3 + .../RemoveEmptyAbstractClassRectorTest.php | 3 + ...trineEntityMethodAndPropertyRectorTest.php | 3 + .../RemoveConcatAutocastRectorTest.php | 3 + .../RemoveDeadStmtRectorTest.php | 6 ++ .../SimplifyMirrorAssignRectorTest.php | 3 + .../RemoveDeadIfForeachForRectorTest.php | 3 + .../RemoveDeadLoopRectorTest.php | 3 + .../RemoveUnusedForeachKeyRectorTest.php | 3 + .../RemoveCodeAfterReturnRectorTest.php | 3 + .../RemoveDeadReturnRectorTest.php | 3 + .../RemoveDuplicatedIfReturnRectorTest.php | 3 + .../RemoveOverriddenValuesRectorTest.php | 3 + .../RemoveUnusedFunctionRectorTest.php | 3 + .../RemoveAlwaysTrueIfConditionRectorTest.php | 3 + .../RemoveDeadInstanceOfRectorTest.php | 3 + ...edNonEmptyArrayBeforeForeachRectorTest.php | 3 + ...implifyIfElseWithSameContentRectorTest.php | 3 + ...reCompatibleIfFunctionExistsRectorTest.php | 3 + ...FutureCompatibleIfPhpVersionRectorTest.php | 3 + .../RemoveDefaultArgumentValueRectorTest.php | 3 + .../RemoveEmptyMethodCallRector/Php74Test.php | 3 + .../RemoveEmptyMethodCallRectorTest.php | 3 + ...emoveDeadZeroAndOneOperationRectorTest.php | 3 + ...terOnlyPropertyAndMethodCallRectorTest.php | 3 + .../RemoveUnusedPrivatePropertyRectorTest.php | 3 + ...veNullPropertyInitializationRectorTest.php | 3 + ...veNullPropertyInitializationRectorTest.php | 3 + ...moveDeadConditionAboveReturnRectorTest.php | 3 + ...emoveParentCallWithoutParentRectorTest.php | 3 + .../RemoveUnreachableStatementRectorTest.php | 3 + ...RemoveDuplicatedCaseInSwitchRectorTest.php | 3 + ...ToBooleanOrFalseToBooleanAndRectorTest.php | 3 + .../RemoveDeadTryCatchRectorTest.php | 3 + .../RemoveAnnotationRectorTest.php | 3 + ...moveNonExistingVarAnnotationRectorTest.php | 3 + .../RemoveUselessVarTagRectorTest.php | 3 + .../NormalToFluentRectorTest.php | 3 + .../ReturnThisRemoveRectorTest.php | 3 + ...MethodCallToNormalMethodCallRectorTest.php | 3 + ...odCallToStandaloneMethodCallRectorTest.php | 3 + ...MethodCallToStandaloneAssignRectorTest.php | 3 + ...ntChainMethodCallToNonFluentRectorTest.php | 3 + .../DefluentReturnMethodCallRectorTest.php | 3 + ...MethodCallToNormalMethodCallRectorTest.php | 3 + ...ntChainMethodCallToNonFluentRectorTest.php | 3 + .../AddMethodParentCallRectorTest.php | 3 + ...ectionToConstructorInjectionRectorTest.php | 3 + ...arentingToAbstractDependencyRectorTest.php | 3 + ...arentingToAbstractDependencyRectorTest.php | 3 + ...InjectToConstructorInjectionRectorTest.php | 3 + .../Php74Test.php | 3 + .../TagValueNodesTest.php | 3 + .../do_not_change_other_methods.php.inc | 2 +- .../Fixture/fixture.php.inc | 2 +- ...tityRepositoryParentCallToDIRectorTest.php | 3 + .../AddEntityIdByConditionRectorTest.php | 3 + ...tryGetManagerToEntityManagerRectorTest.php | 3 + ...positoryFromEntityAnnotationRectorTest.php | 3 + ...liasToClassConstantReferenceRectorTest.php | 3 + ...imePropertyDateTimeInterfaceRectorTest.php | 3 + ...ullabilityInSyncWithPropertyRectorTest.php | 3 + ...alizeDefaultEntityCollectionRectorTest.php | 3 + ...DefaultInEntityToConstructorRectorTest.php | 3 + ...DefaultClassAnnotationValuesRectorTest.php | 3 + .../DoctrineRepositoryAsServiceTest.php | 34 ------- .../Fixture/PostController.php | 48 ---------- .../Source/Entity/Post.php | 9 -- .../Source/EntityManagerClass.php | 9 -- .../Source/RandomClass.php | 9 -- .../Source/Repository/PostRepository.php | 9 -- .../Source/SymfonyController.php | 9 -- .../config/configured_rule.php | 16 ---- ...metersArrayToArrayCollectionRectorTest.php | 3 + ...igIntEntityPropertyToIntTypeRectorTest.php | 3 + ...DefaultTypesOnEntityPropertyRectorTest.php | 3 + ...ineCollectionDocTypeInEntityRectorTest.php | 3 + ...aultPropertyAnnotationValuesRectorTest.php | 3 + .../DoctrineRepositoryAsServiceSetTest.php | 3 + ..._methods_service_entity_repository.php.inc | 6 +- ...te_query_service_entity_repository.php.inc | 2 +- ...d_one_by_service_entity_repository.php.inc | 2 +- .../Fixture/first_post_repository.php.inc | 13 +-- .../Fixture/post_controller.php.inc | 44 +++++++++ ...password_service_entity_repository.php.inc | 2 +- .../Fixture/skip_test_case.php.inc | 2 +- .../Fixture/skip_without_parent_class.php.inc | 4 +- .../Fixture/some_entity_repository.php.inc | 3 + .../some_service_entity_repository.php.inc | 2 +- .../Source/Entity/Post.php | 9 ++ .../Source/EntityManagerClass.php | 9 ++ .../Source/EntityRepositoryClass.php | 2 +- .../Source/RandomClass.php | 9 ++ .../Source/Repository/PostRepository.php | 9 ++ .../Source/SymfonyController.php | 9 ++ .../BlameableBehaviorRectorTest.php | 3 + .../LoggableBehaviorRectorTest.php | 3 + .../SluggableBehaviorRectorTest.php | 3 + .../SoftDeletableBehaviorRectorTest.php | 3 + .../TimestampableBehaviorRectorTest.php | 3 + .../TreeBehaviorRectorTest.php | 3 + .../DowngradeTypeDeclarationRectorTest.php | 3 + ...tricArrayDestructuringToListRectorTest.php | 3 + ...gradeClassConstantVisibilityRectorTest.php | 3 + ...terablePseudoTypeDeclarationRectorTest.php | 3 + ...gradeNullableTypeDeclarationRectorTest.php | 3 + ...DowngradeVoidTypeDeclarationRectorTest.php | 3 + ...NegativeStringOffsetToStrlenRectorTest.php | 3 + ...adePipeToMultiCatchExceptionRectorTest.php | 3 + ...wngradeParameterTypeWideningRectorTest.php | 3 + ...wngradeObjectTypeDeclarationRectorTest.php | 3 + ...railingCommasInFunctionCallsRectorTest.php | 3 + ...ookieOptionsArrayToArgumentsRectorTest.php | 3 + ...gradeListReferenceAssignmentRectorTest.php | 3 + .../DowngradeFlexibleHeredocSyntaxTest.php | 3 + .../DowngradeArraySpreadRectorTest.php | 3 + ...wFunctionToAnonymousFunctionRectorTest.php | 3 + ...adeContravariantArgumentTypeRectorTest.php | 3 + ...DowngradeCovariantReturnTypeRectorTest.php | 3 + ...DowngradeSelfTypeDeclarationRectorTest.php | 3 + ...ngradeNullCoalescingOperatorRectorTest.php | 3 + ...rayMergeCallWithoutArgumentsRectorTest.php | 3 + ...ngradeStripTagsCallWithArrayRectorTest.php | 3 + ...deFreadFwriteFalsyToNegationRectorTest.php | 3 + ...gradeNumericLiteralSeparatorRectorTest.php | 3 + .../DowngradeTypedPropertyRectorTest.php | 3 + ...DowngradeNonCapturingCatchesRectorTest.php | 3 + ...gradeClassOnObjectToGetClassRectorTest.php | 3 + ...radeTrailingCommasInParamUseRectorTest.php | 3 + .../DowngradePropertyPromotionRectorTest.php | 3 + .../DowngradeMatchToSwitchRectorTest.php | 3 + ...owngradeMixedTypeDeclarationRectorTest.php | 3 + ...wngradeStaticTypeDeclarationRectorTest.php | 3 + ...owngradeUnionTypeDeclarationRectorTest.php | 3 + ...adeNullsafeToTernaryOperatorRectorTest.php | 3 + ...ngradeUnionTypeTypedPropertyRectorTest.php | 3 + ...tedForeachIfsToEarlyContinueRectorTest.php | 3 + .../ReturnAfterToEarlyOnBreakRectorTest.php | 3 + .../ChangeAndIfToEarlyReturnRectorTest.php | 3 + ...ElseValueAssignToEarlyReturnRectorTest.php | 3 + ...ChangeNestedIfsToEarlyReturnRectorTest.php | 3 + ...eOrIfContinueToMultiContinueRectorTest.php | 3 + ...hangeOrIfReturnToEarlyReturnRectorTest.php | 3 + .../RemoveAlwaysElseRectorTest.php | 3 + .../PreparedValueToEarlyReturnRectorTest.php | 3 + ...ReturnBinaryAndToEarlyReturnRectorTest.php | 3 + .../ReturnBinaryOrToEarlyReturnRectorTest.php | 3 + ...ricsPHPStormMethodAnnotationRectorTest.php | 3 + ...rrayAccessToStandaloneAssignRectorTest.php | 3 + ...ParentBootToModelClassMethodRectorTest.php | 3 + ...oleOutputFalseToConsoleTestsRectorTest.php | 3 + ...yDeferToDeferrableProviderToRectorTest.php | 3 + .../HelperFuncCallToFacadeClassRectorTest.php | 3 + ...ueryWhereDateValueWithCarbonRectorTest.php | 3 + .../AddGuardToLoginEventRectorTest.php | 3 + ...assedToParameterIterableTypeRectorTest.php | 3 + .../MinutesToSecondsInCacheRectorTest.php | 3 + ...direct301ToPermanentRedirectRectorTest.php | 3 + ...equestStaticValidateToInjectRectorTest.php | 3 + .../MockeryToProphecyRectorTest.php | 3 + .../MockeryToProphecyRectorTest.php | 3 + .../MysqlAssignToMysqliRectorTest.php | 3 + .../MysqlFuncCallToMysqliRectorTest.php | 3 + ...MysqlPConnectToMysqliConnectRectorTest.php | 3 + ...MysqlQueryMysqlErrorWithLinkRectorTest.php | 3 + rules-tests/MysqlToMysqli/SetTest.php | 3 + .../Php74Test.php | 3 + ...eToMatchMethodCallReturnTypeRectorTest.php | 3 + ...rClassMethodNameStartWithGetRectorTest.php | 3 + ...erClassMethodNameStartWithIsRectorTest.php | 3 + .../Php80Test.php | 3 + .../RenameParamToMatchTypeRectorTest.php | 3 + ...RenameVariableToMatchNewTypeRectorTest.php | 3 + .../Php74Test.php | 3 + .../Php80Test.php | 3 + .../RenamePropertyToMatchTypeRectorTest.php | 3 + ...eVariableToMatchExprVariableRectorTest.php | 3 + ...eToMatchMethodCallReturnTypeRectorTest.php | 3 + ...yRespectIsHasWasMethodNamingRectorTest.php | 3 + ...scoreToCamelCasePropertyNameRectorTest.php | 3 + ...ToCamelCaseLocalVariableNameRectorTest.php | 3 + ...scoreToCamelCaseVariableNameRectorTest.php | 3 + ...NameFromComponentConstructorRectorTest.php | 3 + ...ssignToExplicitVariableArrayRectorTest.php | 3 + ...nslateClassMethodToVariadicsRectorTest.php | 3 + ...PutContentsToFileSystemWriteRectorTest.php | 3 + ...ToNetteUtilsJsonDecodeEncodeRectorTest.php | 3 + ...gFunctionToNetteUtilsStringsRectorTest.php | 3 + ...hFunctionToNetteUtilsStringsRectorTest.php | 3 + ...nFunctionToNetteUtilsStringsRectorTest.php | 3 + ...hFunctionToNetteUtilsStringsRectorTest.php | 3 + ...hFunctionToNetteUtilsStringsRectorTest.php | 3 + ...meNumberWithDateTimeConstantRectorTest.php | 3 + ...xtrasDatePickerToDateControlRectorTest.php | 3 + .../BuilderExpandToHelperExpandRectorTest.php | 3 + ...ByTypeToConstructorInjectionRectorTest.php | 3 + .../Php74Test.php | 3 + ...ArgumentTrueToAddMultiUploadRectorTest.php | 3 + ...gicHtmlCallToAppendAttributeRectorTest.php | 3 + ...InGetConfigCompilerExtensionRectorTest.php | 3 + ...kieDefaultArgumentToCoalesceRectorTest.php | 3 + ...lassWithArgumentToSetFactoryRectorTest.php | 3 + .../StrposToStringsContainsRectorTest.php | 3 + ...ateMagicalControlArrayAccessRectorTest.php | 3 + ...ssToAnnotatedControlVariableRectorTest.php | 3 + ...trolToGetComponentMethodCallRectorTest.php | 3 + ...trolToAddComponentMethodCallRectorTest.php | 3 + .../AutoImportTest.php | 3 + ...eGetComponentAssignAnnotatedRectorTest.php | 3 + ...plateSetFileToTemplateRenderRectorTest.php | 3 + ...eInjectToExistingConstructorRectorTest.php | 3 + .../SubstrMinusToStringEndsWithRectorTest.php | 3 + ...ntNamesInGetSubscribedEventsRectorTest.php | 3 + ...eMagicPropertyWithEventClassRectorTest.php | 3 + ...tteTesterClassToPHPUnitClassRectorTest.php | 3 + ...eEventNamesInEventSubscriberRectorTest.php | 3 + ...rListToControllerAnnotationsRectorTest.php | 3 + ...teControlToSymfonyControllerRectorTest.php | 3 + ...teFactoryInterfaceFileSystemRectorTest.php | 3 + ...RequestGetHeaderToHeadersGetRectorTest.php | 3 + ...tGetParameterToAttributesGetRectorTest.php | 3 + .../NetteFormToSymfonyFormRectorTest.php | 3 + .../WrapTransParameterNameRectorTest.php | 3 + ...ClassConstantsByIntegerValueRectorTest.php | 3 + .../OrderConstantsByVisibilityRectorTest.php | 3 + ...derFirstLevelClassStatementsRectorTest.php | 3 + .../OrderMethodsByVisibilityRectorTest.php | 3 + .../OrderPrivateMethodsByUseRectorTest.php | 3 + .../OrderPropertiesByVisibilityRectorTest.php | 3 + ...hangeConditionalGetConditionRectorTest.php | 3 + ...hangeConditionalReturnedCellRectorTest.php | 3 + ...hangeConditionalSetConditionRectorTest.php | 3 + ...teStyleArrayToApplyFromArrayRectorTest.php | 3 + .../GetDefaultStyleToGetParentRectorTest.php | 3 + .../IncreaseColumnIndexRectorTest.php | 3 + ...emoveSetTempDirOnExcelWriterRectorTest.php | 3 + .../AddRemovedDefaultValuesRectorTest.php | 3 + .../CellStaticToCoordinateRectorTest.php | 3 + .../ChangeChartRendererRectorTest.php | 3 + .../ChangeDataTypeForValueRectorTest.php | 3 + .../ChangeIOFactoryArgumentRectorTest.php | 3 + .../ChangePdfWriterRectorTest.php | 3 + ...archLocationToRegisterReaderRectorTest.php | 3 + ...mAssertionToNonAssertingTestRectorTest.php | 3 + .../ExceptionAnnotationRectorTest.php | 3 + .../RemoveEmptyTestMethodRectorTest.php | 3 + .../TryCatchToExpectExceptionRectorTest.php | 3 + .../AddProphecyTraitRectorTest.php | 3 + .../AddSeeTestAnnotationRectorTest.php | 3 + .../ArrayArgumentToDataProviderRectorTest.php | 3 + ...ctClassMethodToSetUpTestCaseRectorTest.php | 3 + ...RemoveDataProviderTestPrefixRectorTest.php | 3 + .../TestListenerToHooksRectorTest.php | 3 + .../SimplifyForeachInstanceOfRectorTest.php | 3 + ...ssertCompareToSpecificMethodRectorTest.php | 3 + ...rtComparisonToSpecificMethodRectorTest.php | 3 + ...rameterToSpecificMethodsTypeRectorTest.php | 3 + .../AssertEqualsToSameRectorTest.php | 3 + .../AssertFalseStrposToContainsRectorTest.php | 3 + .../AssertInstanceOfComparisonRectorTest.php | 3 + .../AssertIssetToSpecificMethodRectorTest.php | 3 + .../AssertNotOperatorRectorTest.php | 3 + .../AssertPropertyExistsRectorTest.php | 3 + .../AssertRegExpRectorTest.php | 3 + ...sertResourceToClosedResourceRectorTest.php | 3 + ...SameBoolNullToSpecificMethodRectorTest.php | 3 + ...meTrueFalseToAssertTrueFalseRectorTest.php | 3 + ...InternalTypeToSpecificMethodRectorTest.php | 3 + ...ertTrueFalseToSpecificMethodRectorTest.php | 3 + .../CreateMockToCreateStubRectorTest.php | 3 + .../DelegateExceptionArgumentsRectorTest.php | 3 + .../ExplicitPhpErrorApiRectorTest.php | 3 + ...ckBuilderGetMockToCreateMockRectorTest.php | 3 + .../RemoveExpectAnyFromMockRectorTest.php | 3 + ...rtArraySubsetWithDmsPolyfillRectorTest.php | 3 + .../SpecificAssertContainsRectorTest.php | 3 + ...ssertContainsWithoutIdentityRectorTest.php | 3 + .../SpecificAssertInternalTypeRectorTest.php | 3 + .../UseSpecificWillMethodRectorTest.php | 3 + .../WithConsecutiveArgToArrayRectorTest.php | 3 + .../GetMockRector/GetMockRectorTest.php | 3 + ...espaceByPSR4ComposerAutoloadRectorTest.php | 3 + .../VarToPublicPropertyRectorTest.php | 3 + .../ContinueToBreakInSwitchRectorTest.php | 3 + ...ameFileConstantToDirConstantRectorTest.php | 3 + .../TernaryToElvisRectorTest.php | 3 + .../RemoveZeroBreakContinueRectorTest.php | 3 + .../RemoveReferenceFromCallRectorTest.php | 3 + .../ClassConstantToSelfClassRectorTest.php | 3 + .../PregReplaceEModifierRectorTest.php | 3 + .../ImportClassNameRectorTest.php | 3 + ...ringClassNameToClassConstantRectorTest.php | 3 + .../PowToExpRector/PowToExpRectorTest.php | 3 + ...ultValueForUndefinedVariableRectorTest.php | 3 + .../Php74Test.php | 3 + .../ListSplitStringRectorTest.php | 3 + .../ListSwapArrayOrderRectorTest.php | 3 + ...eakNotInLoopOrSwitchToReturnRectorTest.php | 3 + .../Php4ConstructorRectorTest.php | 3 + .../CallUserMethodRectorTest.php | 3 + .../EregToPregMatchRectorTest.php | 3 + .../MultiDirnameRectorTest.php | 3 + ...ableToVariableOnFunctionCallRectorTest.php | 3 + .../RandomFunctionRectorTest.php | 3 + ...enameMktimeWithoutArgsToTimeRectorTest.php | 3 + .../ExceptionHandlerTypehintRectorTest.php | 3 + .../IfToSpaceshipRectorTest.php | 3 + .../EmptyListRector/EmptyListRectorTest.php | 3 + ...llOnStaticMethodToStaticCallRectorTest.php | 3 + ...allOnNonStaticToInstanceCallRectorTest.php | 3 + .../ReduceMultipleDefaultSwitchRectorTest.php | 3 + .../TernaryToNullCoalescingRectorTest.php | 3 + .../TernaryToSpaceshipRectorTest.php | 3 + ...bleVariableNameInCurlyBracesRectorTest.php | 3 + .../AssignArrayToStringRectorTest.php | 3 + ...naryOpBetweenNumberAndStringRectorTest.php | 3 + .../IsIterableRector/IsIterableRectorTest.php | 3 + .../PublicConstantVisibilityRectorTest.php | 3 + .../CountOnNullRectorTest.php | 3 + .../CountOnNullRectorWithPHP73Test.php | 3 + .../RemoveExtraParametersRectorTest.php | 3 + .../ListToArrayDestructRectorTest.php | 3 + .../ReservedObjectRectorTest.php | 3 + .../MultiExceptionCatchRectorTest.php | 3 + .../ListEachRector/ListEachRectorTest.php | 3 + ...eFunctionToAnonymousFunctionRectorTest.php | 3 + .../GetClassOnNullRectorTest.php | 3 + .../GetClassOnNullRector/PostImportTest.php | 3 + .../IsObjectOnIncompleteClassRectorTest.php | 3 + .../ParseStrWithResultArgumentRectorTest.php | 3 + .../StringifyDefineRectorTest.php | 3 + .../StringsAssertNakedRectorTest.php | 3 + .../UnsetCastRector/UnsetCastRectorTest.php | 3 + .../WhileEachToForeachRectorTest.php | 3 + .../IsCountableRectorTest.php | 3 + .../IsCountableRector/PolyfillRectorTest.php | 3 + .../SensitiveConstantNameRectorTest.php | 3 + .../ArrayKeyFirstLastRectorTest.php | 3 + .../JsonThrowOnErrorRectorTest.php | 3 + .../RegexDashEscapeRectorTest.php | 3 + .../SensitiveDefineRectorTest.php | 3 + .../SetcookieRector/SetCookieRectorTest.php | 3 + .../StringifyStrNeedlesRectorTest.php | 3 + .../SensitiveHereNowDocRectorTest.php | 3 + .../NullCoalescingOperatorRectorTest.php | 3 + .../ClosureToArrowFunctionRectorTest.php | 3 + .../RealToFloatTypeCastRectorTest.php | 3 + .../ArrayKeyExistsOnPropertyRectorTest.php | 3 + ...raySpreadInsteadOfArrayMergeRectorTest.php | 3 + .../FilterVarToAddSlashesRectorTest.php | 3 + .../GetCalledClassToStaticClassRectorTest.php | 3 + ...rposEncodingArgumentPositionRectorTest.php | 3 + .../ReservedFnFunctionRectorTest.php | 3 + .../AddLiteralSeparatorToNumberRectorTest.php | 3 + ...lectionTypeToStringToGetNameRectorTest.php | 3 + ...ltNullToNullableTypePropertyRectorTest.php | 3 + .../ClassLikeTypesOnlyTest.php | 3 + .../DoctrineTypedPropertyRectorTest.php | 3 + .../TypedPropertyRector/ImportedTest.php | 3 + .../TypedPropertyRectorTest.php | 3 + .../UnionTypedPropertyRectorTest.php | 3 + .../ExportToReflectionFunctionRectorTest.php | 3 + .../RemoveUnusedVariableInCatchRectorTest.php | 3 + ...alPrivateToPrivateVisibilityRectorTest.php | 3 + ...ionalParametersAfterRequiredRectorTest.php | 3 + .../SetStateToStaticRectorTest.php | 3 + .../AnnotationToAttributeRectorTest.php | 3 + ...mportedAnnotationToAttributeRectorTest.php | 3 + ...AssignToConstructorPromotionRectorTest.php | 3 + .../StringableForToStringRectorTest.php | 3 + .../ClassOnObjectRectorTest.php | 3 + .../TokenGetAllToObjectRectorTest.php | 3 + .../UnionTypesRector/UnionTypesRectorTest.php | 3 + .../StrEndsWithRectorTest.php | 3 + .../StrStartsWithRectorTest.php | 3 + .../NullsafeOperatorRectorTest.php | 3 + .../StrContainsRectorTest.php | 3 + .../ChangeSwitchToMatchRectorTest.php | 3 + .../GetDebugTypeRectorTest.php | 3 + .../RenameSpecFileToTestFileRectorTest.php | 3 + .../PhpSpecToPHPUnitRectorTest.php | 3 +- .../PrivatizeLocalClassConstantRectorTest.php | 3 + ...eGlobalVariablesToPropertiesRectorTest.php | 3 + ...eOnlyUsedByChildrenProtectedRectorTest.php | 3 + .../OpenSourceRectorTest.php | 3 + .../PrivatizeFinalClassMethodRectorTest.php | 3 + .../Php8Test.php | 3 + .../PrivatizeLocalOnlyMethodRectorTest.php | 3 + ...hangeLocalPropertyToVariableRectorTest.php | 3 + ...leWithDefaultValueToConstantRectorTest.php | 3 + ...nalizeClassesWithoutChildrenRectorTest.php | 3 + ...dClassesWithChildrenAbstractRectorTest.php | 3 + ...peatedLiteralToClassConstantRectorTest.php | 3 + ...ivatizeLocalGetterToPropertyRectorTest.php | 3 + ...placeStringWithClassConstantRectorTest.php | 3 + ...tyWithDefaultValueToConstantRectorTest.php | 3 + .../PrivatizeFinalClassPropertyRectorTest.php | 3 + .../OpenSourceRectorTest.php | 3 + ...calPropertyToPrivatePropertyRectorTest.php | 3 + .../ArgumentRemoverRectorTest.php | 3 + .../RemoveInterfacesRectorTest.php | 3 + .../RemoveParentRectorTest.php | 3 + .../RemoveTraitRectorTest.php | 3 + ...alledStaticMethodToNonStaticRectorTest.php | 3 + .../DesiredClassTypeToDynamicRectorTest.php | 3 + ...nitStaticToKernelTestCaseGetRectorTest.php | 3 + .../PassFactoryToEntityRectorTest.php | 3 + .../StaticTypeToSetterInjectionRectorTest.php | 3 + ...ertyClassMethodTypeToDynamicRectorTest.php | 3 + ...siredStaticCallTypeToDynamicRectorTest.php | 3 + ...icPropertyFetchTypeToDynamicRectorTest.php | 3 + .../RenameClassConstFetchRectorTest.php | 3 + .../RenameAnnotationRectorTest.php | 3 + .../RenameConstantRectorTest.php | 3 + .../Fixture/DateTime.php | 7 -- ...xture3.php.inc => namespace_split.php.inc} | 0 ...fixture.php.inc => phpunit_rename.php.inc} | 0 ....php.inc => phpunit_special_class.php.inc} | 0 ...hp.inc => phpunit_test_case_split.php.inc} | 0 ...inc => try_skipping_single_return.php.inc} | 0 .../PseudoNamespaceToNamespaceRectorTest.php | 3 + .../RenameFunctionAutoImportRectorTest.php | 3 + .../RenameFunctionRectorTest.php | 3 + .../RenameMethodRectorTest.php | 3 + .../AutoImportNamesPhp74Test.php | 3 + .../RenameClassRector/AutoImportNamesTest.php | 3 + .../RenameClassRectorTest.php | 3 + .../RenameClassRector/RenameNonPhpTest.php | 3 + .../{Fixture => Source}/DuplicatedClass.php | 0 .../RenameNamespaceRectorTest.php | 3 + .../RenamePropertyRectorTest.php | 3 + .../RenameStaticMethodRectorTest.php | 3 + .../RenameStringRectorTest.php | 3 + ...assConstantReferenceToStringRectorTest.php | 3 + ...ileNameByClassNameFileSystemRectorTest.php | 3 + ...erParamFromClassMethodReturnRectorTest.php | 3 + .../RemoveFinalFromEntityRectorTest.php | 3 + ...teImportForPartialAnnotationRectorTest.php | 3 + ...mpleteMissingDependencyInNewRectorTest.php | 3 + ...pedPropertyNullableIfCheckedRectorTest.php | 3 + .../RestoreFullyQualifiedNameRectorTest.php | 3 + .../ResponseStatusCodeRectorTest.php | 3 + .../ActionSuffixRemoverRectorTest.php | 3 + ...ormalizeAutowireMethodNamingRectorTest.php | 3 + ...RemoveServiceFromSensioRouteRectorTest.php | 3 + ...ioRouteAnnotationWithSymfonyRectorTest.php | 3 + ...mplateAnnotationToThisRenderRectorTest.php | 3 + ...leLoaderInExtensionAndKernelRectorTest.php | 3 + ...entListenerToEventSubscriberRectorTest.php | 3 + .../MakeCommandLazyRectorTest.php | 3 + .../MakeCommandLazyRector/Php80Test.php | 3 + ...ameterToConstructorInjectionRectorTest.php | 3 + .../GetToConstructorInjectionRectorTest.php | 3 + .../SimpleFunctionAndFilterRectorTest.php | 3 + ...dMessageToEqualsResponseCodeRectorTest.php | 3 + .../AddFlashRector/AddFlashRectorTest.php | 3 + .../RedirectToRouteRectorTest.php | 3 + .../ParseFileRector/ParseFileRectorTest.php | 3 + ...xceptionToErrorEventConstantRectorTest.php | 3 + .../FormTypeGetParentRectorTest.php | 3 + .../GetRequestRector/GetRequestRectorTest.php | 3 + ...dAnnotationToRouteAnnotationRectorTest.php | 3 + .../RemoveDefaultGetBlockPrefixRectorTest.php | 3 + ...CascadeValidationFormBuilderRectorTest.php | 3 + ...ptionNameFromTypeToEntryTypeRectorTest.php | 3 + ...ngCollectionOptionToConstantRectorTest.php | 3 + ...FormTypeInstanceToClassConstRectorTest.php | 3 + .../OptionNameRector/OptionNameRectorTest.php | 3 + .../ReadOnlyOptionToAttributeRectorTest.php | 3 + .../StringFormTypeToClassRectorTest.php | 3 + .../WithContainerTest.php | 3 + .../ConsoleExecuteReturnIntRectorTest.php | 3 + .../ConstraintUrlOptionRectorTest.php | 3 + ...nerBuilderCompileEnvArgumentRectorTest.php | 3 + ...nerGetToConstructorInjectionRectorTest.php | 3 + .../FormIsValidRectorTest.php | 3 + ...keDispatchFirstArgumentEventRectorTest.php | 3 + .../ProcessBuilderGetProcessRectorTest.php | 3 + ...implifyWebTestCaseAssertionsRectorTest.php | 3 + ...VarDumperTestTraitMethodArgsRectorTest.php | 3 + .../RootNodeTreeBuilderRectorTest.php | 3 + ...StringToArrayArgumentProcessRectorTest.php | 3 + .../ProcessBuilderInstanceRectorTest.php | 3 + ...ndlerToLogoutEventSubscriberRectorTest.php | 3 + ...ndlerToLogoutEventSubscriberRectorTest.php | 3 + ...onAliasSetPrivateToSetPublicRectorTest.php | 3 + .../FormBuilderSetDataMapperRectorTest.php | 3 + ...ctorEnableMagicCallExtractorRectorTest.php | 3 + ...ilderEnableAnnotationMappingRectorTest.php | 3 + ...cessorCreationBooleanToFlagsRectorTest.php | 3 + ...opertyPathMapperToDataMapperRectorTest.php | 3 + ...eResponseCreateToNewInstanceRectorTest.php | 3 + .../DimFetchAssignToMethodCallRectorTest.php | 3 + .../GetAndSetToMethodCallRectorTest.php | 3 + .../PropertyAssignToMethodCallRectorTest.php | 3 + .../PropertyFetchToMethodCallRectorTest.php | 3 + .../ClassConstFetchToValueRectorTest.php | 3 + .../SingleToManyMethodRectorTest.php | 3 + .../WrapReturnRector/WrapReturnRectorTest.php | 3 + .../AddInterfaceByTraitRectorTest.php | 3 + .../ChangeSingletonToServiceRectorTest.php | 3 + .../MergeInterfacesRectorTest.php | 3 + .../ParentClassToTraitsRectorTest.php | 3 + .../MethodCallToReturnRectorTest.php | 3 + .../FunctionToStaticMethodRectorTest.php | 3 + ...ArgumentFuncCallToMethodCallRectorTest.php | 3 + .../FunctionCallToConstantRectorTest.php | 3 + .../FuncCallToMethodCallRectorTest.php | 3 + .../FuncCallToNewRectorTest.php | 3 + .../FuncCallToStaticCallRectorTest.php | 3 + .../UnsetAndIssetToMethodCallRectorTest.php | 3 + ...llableInMethodCallToVariableRectorTest.php | 3 + ...otherMethodCallWithArgumentsRectorTest.php | 3 + .../MethodCallToPropertyFetchRectorTest.php | 3 + .../MethodCallToStaticCallRectorTest.php | 3 + ...laceParentCallByPropertyCallRectorTest.php | 3 + ...GetterToConstructorInjectionRectorTest.php | 3 + ...iableMethodCallToServiceCallRectorTest.php | 3 + .../NewArgToMethodCallRectorTest.php | 3 + .../NewToConstructorInjectionRectorTest.php | 3 + .../Php80Test.php | 3 + .../NewToMethodCallRectorTest.php | 3 + .../NewToStaticCallRectorTest.php | 3 + .../StaticCallToFuncCallRectorTest.php | 3 + .../StaticCallToMethodCallRectorTest.php | 3 + .../StaticCallToNewRectorTest.php | 3 + .../StringToClassConstantRectorTest.php | 3 + .../ToStringToMethodCallRectorTest.php | 3 + .../AddArrayParamDocTypeRectorTest.php | 3 + .../AddArrayReturnDocTypeRectorTest.php | 3 + ...thodCallBasedStrictParamTypeRectorTest.php | 3 + .../AddParamTypeDeclarationRectorTest.php | 3 + .../AddParamTypeFromCallersRectorTest.php | 3 + .../AddReturnTypeDeclarationRectorTest.php | 3 + ...dVoidReturnTypeWhereNoReturnRectorTest.php | 3 + ...mTypeFromStrictTypedPropertyRectorTest.php | 3 + .../ReturnTypeFromReturnNewRectorTest.php | 3 + .../Php80Test.php | 3 + ...eturnTypeFromStrictTypedCallRectorTest.php | 3 + ...nTypeFromStrictTypedPropertyRectorTest.php | 3 + .../AddClosureReturnTypeRectorTest.php | 3 + .../ParamTypeDeclarationRectorTest.php | 3 + ...ertyTypeParamTypeDeclarationRectorTest.php | 3 + ...nionTypeParamTypeDeclarationRectorTest.php | 3 + .../CorrectionTest.php | 3 + .../InheritanceTest.php | 3 + .../Php80RectorTest.php | 3 + .../ReturnTypeDeclarationRectorTest.php | 3 + ...ullableArgumentToScalarTypedRectorTest.php | 3 + .../CompleteVarDocTypePropertyRectorTest.php | 3 + .../Php74Test.php | 3 + .../PropertyTypeDeclarationRectorTest.php | 3 + ...ropertyFromStrictConstructorRectorTest.php | 3 + .../ChangeConstantVisibilityRectorTest.php | 3 + .../ChangeMethodVisibilityRectorTest.php | 3 + .../ChangePropertyVisibilityRectorTest.php | 3 + .../NodeFactory/RepositoryNodeFactory.php | 7 +- ...ceEntityRepositoryParentCallToDIRector.php | 20 ++++- ...ositoryCallsByRepositoryPropertyRector.php | 62 ++++++++++++- .../NodeAnalyzer/EntityObjectTypeResolver.php | 78 ++++++++++++++-- ...epositoryFromParentToConstructorRector.php | 44 ++++----- .../ClassDependencyManipulator.php | 17 ++++ .../ClassInsertManipulator.php | 4 + .../ClassMethodAssignManipulator.php | 19 +++- .../Common/Persistence/ObjectManager.php | 4 +- stubs/Doctrine/ORM/EntityRepository.php | 2 +- tests/Exclusion/ExclusionManagerTest.php | 3 + .../CommentPreservingTest.php | 3 + .../config/phpstan-extensions.neon | 2 +- ...olverReturnTypeAbstractRectorExtension.php | 6 +- .../NameResolverReturnTypeExtension.php | 6 +- ...equireRectorCategoryByGetNodeTypesRule.php | 14 ++- ....php => GetNameMethodCallTypeResolver.php} | 2 +- .../config/configured_rule.neon | 2 + .../Command/ValidateFixtureSuffixCommand.php | 90 ------------------- 733 files changed, 2385 insertions(+), 328 deletions(-) rename rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/{Fixture/SharedShortName.php => Source/FixtureSharedShortName.php} (100%) delete mode 100644 rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php delete mode 100644 rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/PostController.php delete mode 100644 rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Source/Entity/Post.php delete mode 100644 rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Source/EntityManagerClass.php delete mode 100644 rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Source/RandomClass.php delete mode 100644 rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Source/Repository/PostRepository.php delete mode 100644 rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Source/SymfonyController.php delete mode 100644 rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/config/configured_rule.php rename rules-tests/DoctrineCodeQuality/{Rector/DoctrineRepositoryAsService => Set/DoctrineRepositoryAsServiceSet}/Fixture/first_post_repository.php.inc (61%) create mode 100644 rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/post_controller.php.inc rename rules-tests/DoctrineCodeQuality/{Rector/DoctrineRepositoryAsService => Set/DoctrineRepositoryAsServiceSet}/Fixture/skip_test_case.php.inc (80%) rename rules-tests/DoctrineCodeQuality/{Rector/DoctrineRepositoryAsService => Set/DoctrineRepositoryAsServiceSet}/Fixture/skip_without_parent_class.php.inc (70%) create mode 100644 rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Source/Entity/Post.php create mode 100644 rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Source/EntityManagerClass.php rename rules-tests/DoctrineCodeQuality/{Rector/DoctrineRepositoryAsService => Set/DoctrineRepositoryAsServiceSet}/Source/EntityRepositoryClass.php (55%) create mode 100644 rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Source/RandomClass.php create mode 100644 rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Source/Repository/PostRepository.php create mode 100644 rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Source/SymfonyController.php delete mode 100644 rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/DateTime.php rename rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/{fixture3.php.inc => namespace_split.php.inc} (100%) rename rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/{fixture.php.inc => phpunit_rename.php.inc} (100%) rename rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/{fixture2.php.inc => phpunit_special_class.php.inc} (100%) rename rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/{fixture6.php.inc => phpunit_test_case_split.php.inc} (100%) rename rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/{fixture5.php.inc => try_skipping_single_return.php.inc} (100%) rename rules-tests/Renaming/Rector/Name/RenameClassRector/{Fixture => Source}/DuplicatedClass.php (100%) rename utils/phpstan-extensions/src/TypeResolver/{MethodCallTypeResolver.php => GetNameMethodCallTypeResolver.php} (97%) delete mode 100644 utils/project-validator/src/Command/ValidateFixtureSuffixCommand.php diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 72b1904d484..6fb3e6fa727 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -13,10 +13,6 @@ jobs: name: 'Composer Validate' run: composer validate --strict - - - name: Validate Fixtures - run: bin/rector validate-fixture-suffix --ansi - # make sure skipped files have "skip_" prefix - name: Validate Fixtures skip file prefix diff --git a/.github/workflows/weekly_pull_requests.yaml b/.github/workflows/weekly_pull_requests.yaml index d082bdad0a7..c9a6e719ad3 100644 --- a/.github/workflows/weekly_pull_requests.yaml +++ b/.github/workflows/weekly_pull_requests.yaml @@ -37,11 +37,9 @@ jobs: php-version: 7.4 coverage: none - - - run: composer install --no-progress --ansi + - uses: "ramsey/composer-install@v1" - - - run: ${{ matrix.actions.run }} + - run: ${{ matrix.actions.run }} # see https://github.com/peter-evans/create-pull-request - diff --git a/composer.json b/composer.json index b88a9b53d35..f4855e00eb9 100644 --- a/composer.json +++ b/composer.json @@ -109,6 +109,8 @@ ], "files": [ "vendor/nette/forms/src/Forms/Controls/SubmitButton.php", + "rules-tests/Renaming/Rector/Name/RenameClassRector/Source/DuplicatedClass.php", + "rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/FixtureSharedShortName.php", "rules-tests/Restoration/Rector/Use_/RestoreFullyQualifiedNameRector/Source/ShortClassOnly.php", "rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/AnotherClass.php", "rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/Foo.php", diff --git a/config/set/doctrine-repository-as-service.php b/config/set/doctrine-repository-as-service.php index 32835836638..f3cecc98bb0 100644 --- a/config/set/doctrine-repository-as-service.php +++ b/config/set/doctrine-repository-as-service.php @@ -116,7 +116,4 @@ return static function (ContainerConfigurator $containerConfigurator): void { 'Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository', ], ]]); - - $services->set(RemoveRepositoryFromEntityAnnotationRector::class); - $services->set(ReplaceParentRepositoryCallsByRepositoryPropertyRector::class); }; diff --git a/packages/PostRector/ValueObject/PropertyMetadata.php b/packages/PostRector/ValueObject/PropertyMetadata.php index 5f23ba7d6b1..b3d42592c2c 100644 --- a/packages/PostRector/ValueObject/PropertyMetadata.php +++ b/packages/PostRector/ValueObject/PropertyMetadata.php @@ -23,11 +23,11 @@ final class PropertyMetadata */ private $flags; - public function __construct(string $name, ?Type $type, int $falgs) + public function __construct(string $name, ?Type $type, int $flags) { $this->name = $name; $this->type = $type; - $this->flags = $falgs; + $this->flags = $flags; } public function getName(): string diff --git a/packages/Testing/PHPUnit/AbstractRectorTestCase.php b/packages/Testing/PHPUnit/AbstractRectorTestCase.php index 7a07193a477..79d46d2a9cf 100644 --- a/packages/Testing/PHPUnit/AbstractRectorTestCase.php +++ b/packages/Testing/PHPUnit/AbstractRectorTestCase.php @@ -138,9 +138,12 @@ abstract class AbstractRectorTestCase extends AbstractKernelTestCase return ''; } + /** + * @return Iterator + */ protected function yieldFilesFromDirectory(string $directory, string $suffix = '*.php.inc'): Iterator { - return StaticFixtureFinder::yieldDirectory($directory, $suffix); + return StaticFixtureFinder::yieldDirectoryExclusively($directory, $suffix); } /** diff --git a/phpstan.neon b/phpstan.neon index 71de630b8de..1a798f3f7d5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -624,3 +624,4 @@ parameters: - src/HttpKernel/RectorKernel.php - '#Content of method "getIfNextReturn\(\)" is duplicated with method "getIfNextReturn\(\)" in "Rector\\EarlyReturn\\Rector\\If_\\ChangeAndIfToEarlyReturnRector" class\. Use unique content or service instead#' + - '#Content of method "hasMethodParameter\(\)" is duplicated with method "hasMethodParameter\(\)" in "Rector\\Core\\NodeManipulator\\ClassDependencyManipulator" class\. Use unique content or service instead#' diff --git a/rules-tests/Arguments/Rector/ClassMethod/ArgumentAdderRector/ArgumentAdderRectorTest.php b/rules-tests/Arguments/Rector/ClassMethod/ArgumentAdderRector/ArgumentAdderRectorTest.php index 36618e14d12..ca092877c5b 100644 --- a/rules-tests/Arguments/Rector/ClassMethod/ArgumentAdderRector/ArgumentAdderRectorTest.php +++ b/rules-tests/Arguments/Rector/ClassMethod/ArgumentAdderRector/ArgumentAdderRectorTest.php @@ -18,6 +18,9 @@ final class ArgumentAdderRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Arguments/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/ArgumentDefaultValueReplacerRectorTest.php b/rules-tests/Arguments/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/ArgumentDefaultValueReplacerRectorTest.php index b2ca1c8ff42..82a8b7866c3 100644 --- a/rules-tests/Arguments/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/ArgumentDefaultValueReplacerRectorTest.php +++ b/rules-tests/Arguments/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/ArgumentDefaultValueReplacerRectorTest.php @@ -18,6 +18,9 @@ final class ArgumentDefaultValueReplacerRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Arguments/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/Symfony28Test.php b/rules-tests/Arguments/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/Symfony28Test.php index 3cedd2cdc27..6978226447e 100644 --- a/rules-tests/Arguments/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/Symfony28Test.php +++ b/rules-tests/Arguments/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/Symfony28Test.php @@ -21,6 +21,9 @@ final class Symfony28Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureSymfony28'); diff --git a/rules-tests/Arguments/Rector/FuncCall/SwapFuncCallArgumentsRector/SwapFuncCallArgumentsRectorTest.php b/rules-tests/Arguments/Rector/FuncCall/SwapFuncCallArgumentsRector/SwapFuncCallArgumentsRectorTest.php index 812fa4b516b..a66c56e0a2e 100644 --- a/rules-tests/Arguments/Rector/FuncCall/SwapFuncCallArgumentsRector/SwapFuncCallArgumentsRectorTest.php +++ b/rules-tests/Arguments/Rector/FuncCall/SwapFuncCallArgumentsRector/SwapFuncCallArgumentsRectorTest.php @@ -18,6 +18,9 @@ final class SwapFuncCallArgumentsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Arguments/Rector/RectorOrder/RectorOrderTest.php b/rules-tests/Arguments/Rector/RectorOrder/RectorOrderTest.php index 39c2766c4fe..e0ea8b5a95b 100644 --- a/rules-tests/Arguments/Rector/RectorOrder/RectorOrderTest.php +++ b/rules-tests/Arguments/Rector/RectorOrder/RectorOrderTest.php @@ -21,6 +21,9 @@ final class RectorOrderTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CakePHP/Rector/FileWithoutNamespace/ImplicitShortClassNameUseStatementRector/ImplicitShortClassNameUseStatementRectorTest.php b/rules-tests/CakePHP/Rector/FileWithoutNamespace/ImplicitShortClassNameUseStatementRector/ImplicitShortClassNameUseStatementRectorTest.php index 52fdd8aa35d..1df8c4b9af1 100644 --- a/rules-tests/CakePHP/Rector/FileWithoutNamespace/ImplicitShortClassNameUseStatementRector/ImplicitShortClassNameUseStatementRectorTest.php +++ b/rules-tests/CakePHP/Rector/FileWithoutNamespace/ImplicitShortClassNameUseStatementRector/ImplicitShortClassNameUseStatementRectorTest.php @@ -19,6 +19,9 @@ final class ImplicitShortClassNameUseStatementRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CakePHP/Rector/MethodCall/ArrayToFluentCallRector/ArrayToFluentCallRectorTest.php b/rules-tests/CakePHP/Rector/MethodCall/ArrayToFluentCallRector/ArrayToFluentCallRectorTest.php index 48ad6c936bd..61214746509 100644 --- a/rules-tests/CakePHP/Rector/MethodCall/ArrayToFluentCallRector/ArrayToFluentCallRectorTest.php +++ b/rules-tests/CakePHP/Rector/MethodCall/ArrayToFluentCallRector/ArrayToFluentCallRectorTest.php @@ -18,6 +18,9 @@ final class ArrayToFluentCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CakePHP/Rector/MethodCall/ModalToGetSetRector/ModalToGetSetRectorTest.php b/rules-tests/CakePHP/Rector/MethodCall/ModalToGetSetRector/ModalToGetSetRectorTest.php index 4642af0101a..9ab50afa65a 100644 --- a/rules-tests/CakePHP/Rector/MethodCall/ModalToGetSetRector/ModalToGetSetRectorTest.php +++ b/rules-tests/CakePHP/Rector/MethodCall/ModalToGetSetRector/ModalToGetSetRectorTest.php @@ -18,6 +18,9 @@ final class ModalToGetSetRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CakePHP/Rector/Namespace_/AppUsesStaticCallToUseStatementRector/AppUsesStaticCallToUseStatementRectorTest.php b/rules-tests/CakePHP/Rector/Namespace_/AppUsesStaticCallToUseStatementRector/AppUsesStaticCallToUseStatementRectorTest.php index eadd9333966..629cb8581dc 100644 --- a/rules-tests/CakePHP/Rector/Namespace_/AppUsesStaticCallToUseStatementRector/AppUsesStaticCallToUseStatementRectorTest.php +++ b/rules-tests/CakePHP/Rector/Namespace_/AppUsesStaticCallToUseStatementRector/AppUsesStaticCallToUseStatementRectorTest.php @@ -19,6 +19,9 @@ final class AppUsesStaticCallToUseStatementRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CakePHP/Rector/Property/ChangeSnakedFixtureNameToPascal/ChangeSnakedFixtureNameToPascalTest.php b/rules-tests/CakePHP/Rector/Property/ChangeSnakedFixtureNameToPascal/ChangeSnakedFixtureNameToPascalTest.php index f0363fe2c8a..eec683500d5 100644 --- a/rules-tests/CakePHP/Rector/Property/ChangeSnakedFixtureNameToPascal/ChangeSnakedFixtureNameToPascalTest.php +++ b/rules-tests/CakePHP/Rector/Property/ChangeSnakedFixtureNameToPascal/ChangeSnakedFixtureNameToPascalTest.php @@ -19,6 +19,9 @@ final class ChangeSnakedFixtureNameToPascalTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Carbon/Rector/MethodCall/ChangeCarbonSingularMethodCallToPluralRector/ChangeCarbonSingularMethodCallToPluralRectorTest.php b/rules-tests/Carbon/Rector/MethodCall/ChangeCarbonSingularMethodCallToPluralRector/ChangeCarbonSingularMethodCallToPluralRectorTest.php index 3caa8ad2aeb..dd3e5b2c802 100644 --- a/rules-tests/Carbon/Rector/MethodCall/ChangeCarbonSingularMethodCallToPluralRector/ChangeCarbonSingularMethodCallToPluralRectorTest.php +++ b/rules-tests/Carbon/Rector/MethodCall/ChangeCarbonSingularMethodCallToPluralRector/ChangeCarbonSingularMethodCallToPluralRectorTest.php @@ -19,6 +19,9 @@ final class ChangeCarbonSingularMethodCallToPluralRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Carbon/Rector/MethodCall/ChangeDiffForHumansArgsRector/ChangeDiffForHumansArgsRectorTest.php b/rules-tests/Carbon/Rector/MethodCall/ChangeDiffForHumansArgsRector/ChangeDiffForHumansArgsRectorTest.php index abcf615b2fd..f385a0c39ef 100644 --- a/rules-tests/Carbon/Rector/MethodCall/ChangeDiffForHumansArgsRector/ChangeDiffForHumansArgsRectorTest.php +++ b/rules-tests/Carbon/Rector/MethodCall/ChangeDiffForHumansArgsRector/ChangeDiffForHumansArgsRectorTest.php @@ -19,6 +19,9 @@ final class ChangeDiffForHumansArgsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Array_/ArrayThisCallToThisMethodCallRector/ArrayThisCallToThisMethodCallRectorTest.php b/rules-tests/CodeQuality/Rector/Array_/ArrayThisCallToThisMethodCallRector/ArrayThisCallToThisMethodCallRectorTest.php index d62a59bb192..e4d064e05bd 100644 --- a/rules-tests/CodeQuality/Rector/Array_/ArrayThisCallToThisMethodCallRector/ArrayThisCallToThisMethodCallRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Array_/ArrayThisCallToThisMethodCallRector/ArrayThisCallToThisMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class ArrayThisCallToThisMethodCallRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Array_/CallableThisArrayToAnonymousFunctionRector/CallableThisArrayToAnonymousFunctionRectorTest.php b/rules-tests/CodeQuality/Rector/Array_/CallableThisArrayToAnonymousFunctionRector/CallableThisArrayToAnonymousFunctionRectorTest.php index 11233cb0321..9964fc567b1 100644 --- a/rules-tests/CodeQuality/Rector/Array_/CallableThisArrayToAnonymousFunctionRector/CallableThisArrayToAnonymousFunctionRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Array_/CallableThisArrayToAnonymousFunctionRector/CallableThisArrayToAnonymousFunctionRectorTest.php @@ -19,6 +19,9 @@ final class CallableThisArrayToAnonymousFunctionRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Assign/CombinedAssignRector/CombinedAssignRectorTest.php b/rules-tests/CodeQuality/Rector/Assign/CombinedAssignRector/CombinedAssignRectorTest.php index c59dfebda83..f2e54f5c173 100644 --- a/rules-tests/CodeQuality/Rector/Assign/CombinedAssignRector/CombinedAssignRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Assign/CombinedAssignRector/CombinedAssignRectorTest.php @@ -24,6 +24,9 @@ final class CombinedAssignRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Assign/SplitListAssignToSeparateLineRector/SplitListAssignToSeparateLineRectorTest.php b/rules-tests/CodeQuality/Rector/Assign/SplitListAssignToSeparateLineRector/SplitListAssignToSeparateLineRectorTest.php index 19e5b0a0773..e2a7acfff36 100644 --- a/rules-tests/CodeQuality/Rector/Assign/SplitListAssignToSeparateLineRector/SplitListAssignToSeparateLineRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Assign/SplitListAssignToSeparateLineRector/SplitListAssignToSeparateLineRectorTest.php @@ -19,6 +19,9 @@ final class SplitListAssignToSeparateLineRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/BooleanAnd/SimplifyEmptyArrayCheckRector/SimplifyEmptyArrayCheckRectorTest.php b/rules-tests/CodeQuality/Rector/BooleanAnd/SimplifyEmptyArrayCheckRector/SimplifyEmptyArrayCheckRectorTest.php index d6913d3fc2c..3b540269b16 100644 --- a/rules-tests/CodeQuality/Rector/BooleanAnd/SimplifyEmptyArrayCheckRector/SimplifyEmptyArrayCheckRectorTest.php +++ b/rules-tests/CodeQuality/Rector/BooleanAnd/SimplifyEmptyArrayCheckRector/SimplifyEmptyArrayCheckRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyEmptyArrayCheckRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/BooleanNot/SimplifyDeMorganBinaryRector/SimplifyDeMorganBinaryRectorTest.php b/rules-tests/CodeQuality/Rector/BooleanNot/SimplifyDeMorganBinaryRector/SimplifyDeMorganBinaryRectorTest.php index 2d28e39ad9a..aa009fc0590 100644 --- a/rules-tests/CodeQuality/Rector/BooleanNot/SimplifyDeMorganBinaryRector/SimplifyDeMorganBinaryRectorTest.php +++ b/rules-tests/CodeQuality/Rector/BooleanNot/SimplifyDeMorganBinaryRector/SimplifyDeMorganBinaryRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyDeMorganBinaryRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Php8Test.php b/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Php8Test.php index c490de72dd7..961b8b230a1 100644 --- a/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Php8Test.php +++ b/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Php8Test.php @@ -20,6 +20,9 @@ final class Php8Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp8'); diff --git a/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/ThrowWithPreviousExceptionRectorTest.php b/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/ThrowWithPreviousExceptionRectorTest.php index c52748a97ce..f0f80cfdd9c 100644 --- a/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/ThrowWithPreviousExceptionRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/ThrowWithPreviousExceptionRectorTest.php @@ -19,6 +19,9 @@ final class ThrowWithPreviousExceptionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector/DateTimeToDateTimeInterfaceRectorTest.php b/rules-tests/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector/DateTimeToDateTimeInterfaceRectorTest.php index 12b4bb9caad..a57ce35a019 100644 --- a/rules-tests/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector/DateTimeToDateTimeInterfaceRectorTest.php +++ b/rules-tests/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector/DateTimeToDateTimeInterfaceRectorTest.php @@ -19,6 +19,9 @@ final class DateTimeToDateTimeInterfaceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector/Php74Test.php b/rules-tests/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector/Php74Test.php index e7ba4fb3d34..e80f4499748 100644 --- a/rules-tests/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector/Php74Test.php +++ b/rules-tests/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector/Php74Test.php @@ -20,6 +20,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/CompleteDynamicPropertiesRectorTest.php b/rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/CompleteDynamicPropertiesRectorTest.php index 4f974a2752a..c25c891c331 100644 --- a/rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/CompleteDynamicPropertiesRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/CompleteDynamicPropertiesRectorTest.php @@ -18,6 +18,9 @@ final class CompleteDynamicPropertiesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/UnionTypeCompleteDynamicPropertiesRectorTest.php b/rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/UnionTypeCompleteDynamicPropertiesRectorTest.php index f74d6e0681a..ad8fa073459 100644 --- a/rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/UnionTypeCompleteDynamicPropertiesRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/UnionTypeCompleteDynamicPropertiesRectorTest.php @@ -19,6 +19,9 @@ final class UnionTypeCompleteDynamicPropertiesRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureUnionTypes'); diff --git a/rules-tests/CodeQuality/Rector/Concat/JoinStringConcatRector/JoinStringConcatRectorTest.php b/rules-tests/CodeQuality/Rector/Concat/JoinStringConcatRector/JoinStringConcatRectorTest.php index 16e30324368..7b35a61b8b3 100644 --- a/rules-tests/CodeQuality/Rector/Concat/JoinStringConcatRector/JoinStringConcatRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Concat/JoinStringConcatRector/JoinStringConcatRectorTest.php @@ -19,6 +19,9 @@ final class JoinStringConcatRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Equal/UseIdenticalOverEqualWithSameTypeRector/UseIdenticalOverEqualWithSameTypeRectorTest.php b/rules-tests/CodeQuality/Rector/Equal/UseIdenticalOverEqualWithSameTypeRector/UseIdenticalOverEqualWithSameTypeRectorTest.php index bd2eb14b13f..b963c41c284 100644 --- a/rules-tests/CodeQuality/Rector/Equal/UseIdenticalOverEqualWithSameTypeRector/UseIdenticalOverEqualWithSameTypeRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Equal/UseIdenticalOverEqualWithSameTypeRector/UseIdenticalOverEqualWithSameTypeRectorTest.php @@ -19,6 +19,9 @@ final class UseIdenticalOverEqualWithSameTypeRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Expression/InlineIfToExplicitIfRector/InlineIfToExplicitIfRectorTest.php b/rules-tests/CodeQuality/Rector/Expression/InlineIfToExplicitIfRector/InlineIfToExplicitIfRectorTest.php index 0e89145ff55..587a6833a79 100644 --- a/rules-tests/CodeQuality/Rector/Expression/InlineIfToExplicitIfRector/InlineIfToExplicitIfRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Expression/InlineIfToExplicitIfRector/InlineIfToExplicitIfRectorTest.php @@ -19,6 +19,9 @@ final class InlineIfToExplicitIfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector/ForRepeatedCountToOwnVariableRectorTest.php b/rules-tests/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector/ForRepeatedCountToOwnVariableRectorTest.php index 470f9cc9868..8e6b092b147 100644 --- a/rules-tests/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector/ForRepeatedCountToOwnVariableRectorTest.php +++ b/rules-tests/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector/ForRepeatedCountToOwnVariableRectorTest.php @@ -19,6 +19,9 @@ final class ForRepeatedCountToOwnVariableRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/For_/ForToForeachRector/ForToForeachRectorTest.php b/rules-tests/CodeQuality/Rector/For_/ForToForeachRector/ForToForeachRectorTest.php index 3ee1daf015e..fcbd47ac02d 100644 --- a/rules-tests/CodeQuality/Rector/For_/ForToForeachRector/ForToForeachRectorTest.php +++ b/rules-tests/CodeQuality/Rector/For_/ForToForeachRector/ForToForeachRectorTest.php @@ -19,6 +19,9 @@ final class ForToForeachRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Foreach_/ForeachItemsAssignToEmptyArrayToAssignRector/ForeachItemsAssignToEmptyArrayToAssignRectorTest.php b/rules-tests/CodeQuality/Rector/Foreach_/ForeachItemsAssignToEmptyArrayToAssignRector/ForeachItemsAssignToEmptyArrayToAssignRectorTest.php index fa03c51afc9..9e080fa1e34 100644 --- a/rules-tests/CodeQuality/Rector/Foreach_/ForeachItemsAssignToEmptyArrayToAssignRector/ForeachItemsAssignToEmptyArrayToAssignRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Foreach_/ForeachItemsAssignToEmptyArrayToAssignRector/ForeachItemsAssignToEmptyArrayToAssignRectorTest.php @@ -19,6 +19,9 @@ final class ForeachItemsAssignToEmptyArrayToAssignRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Foreach_/ForeachToInArrayRector/ForeachToInArrayRectorTest.php b/rules-tests/CodeQuality/Rector/Foreach_/ForeachToInArrayRector/ForeachToInArrayRectorTest.php index 0d19c46b0cf..a5ec91386eb 100644 --- a/rules-tests/CodeQuality/Rector/Foreach_/ForeachToInArrayRector/ForeachToInArrayRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Foreach_/ForeachToInArrayRector/ForeachToInArrayRectorTest.php @@ -19,6 +19,9 @@ final class ForeachToInArrayRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Foreach_/SimplifyForeachToArrayFilterRector/SimplifyForeachToArrayFilterRectorTest.php b/rules-tests/CodeQuality/Rector/Foreach_/SimplifyForeachToArrayFilterRector/SimplifyForeachToArrayFilterRectorTest.php index f472f9f6320..b06155853f6 100644 --- a/rules-tests/CodeQuality/Rector/Foreach_/SimplifyForeachToArrayFilterRector/SimplifyForeachToArrayFilterRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Foreach_/SimplifyForeachToArrayFilterRector/SimplifyForeachToArrayFilterRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyForeachToArrayFilterRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector/SimplifyForeachToCoalescingRectorTest.php b/rules-tests/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector/SimplifyForeachToCoalescingRectorTest.php index d9c1e642477..84da9172776 100644 --- a/rules-tests/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector/SimplifyForeachToCoalescingRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector/SimplifyForeachToCoalescingRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyForeachToCoalescingRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Foreach_/UnusedForeachValueToArrayKeysRector/UnusedForeachValueToArrayKeysRectorTest.php b/rules-tests/CodeQuality/Rector/Foreach_/UnusedForeachValueToArrayKeysRector/UnusedForeachValueToArrayKeysRectorTest.php index 24227d43745..7d57037db40 100644 --- a/rules-tests/CodeQuality/Rector/Foreach_/UnusedForeachValueToArrayKeysRector/UnusedForeachValueToArrayKeysRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Foreach_/UnusedForeachValueToArrayKeysRector/UnusedForeachValueToArrayKeysRectorTest.php @@ -19,6 +19,9 @@ final class UnusedForeachValueToArrayKeysRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/AddPregQuoteDelimiterRector/AddPregQuoteDelimiterRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/AddPregQuoteDelimiterRector/AddPregQuoteDelimiterRectorTest.php index 30ac3936550..c1c9f7bf7b2 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/AddPregQuoteDelimiterRector/AddPregQuoteDelimiterRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/AddPregQuoteDelimiterRector/AddPregQuoteDelimiterRectorTest.php @@ -19,6 +19,9 @@ final class AddPregQuoteDelimiterRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/ArrayKeysAndInArrayToArrayKeyExistsRector/ArrayKeysAndInArrayToArrayKeyExistsRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/ArrayKeysAndInArrayToArrayKeyExistsRector/ArrayKeysAndInArrayToArrayKeyExistsRectorTest.php index d383b2fcab5..c210bb69992 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/ArrayKeysAndInArrayToArrayKeyExistsRector/ArrayKeysAndInArrayToArrayKeyExistsRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/ArrayKeysAndInArrayToArrayKeyExistsRector/ArrayKeysAndInArrayToArrayKeyExistsRectorTest.php @@ -19,6 +19,9 @@ final class ArrayKeysAndInArrayToArrayKeyExistsRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/ArrayMergeOfNonArraysToSimpleArrayRector/ArrayMergeOfNonArraysToSimpleArrayRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/ArrayMergeOfNonArraysToSimpleArrayRector/ArrayMergeOfNonArraysToSimpleArrayRectorTest.php index 009289f5dc2..108f09f36b9 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/ArrayMergeOfNonArraysToSimpleArrayRector/ArrayMergeOfNonArraysToSimpleArrayRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/ArrayMergeOfNonArraysToSimpleArrayRector/ArrayMergeOfNonArraysToSimpleArrayRectorTest.php @@ -19,6 +19,9 @@ final class ArrayMergeOfNonArraysToSimpleArrayRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/ChangeArrayPushToArrayAssignRector/ChangeArrayPushToArrayAssignRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/ChangeArrayPushToArrayAssignRector/ChangeArrayPushToArrayAssignRectorTest.php index 438c51d69bf..3ad7ae27a19 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/ChangeArrayPushToArrayAssignRector/ChangeArrayPushToArrayAssignRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/ChangeArrayPushToArrayAssignRector/ChangeArrayPushToArrayAssignRectorTest.php @@ -19,6 +19,9 @@ final class ChangeArrayPushToArrayAssignRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/CompactToVariablesRector/CompactToVariablesRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/CompactToVariablesRector/CompactToVariablesRectorTest.php index 5b5ef859c62..3709895aa70 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/CompactToVariablesRector/CompactToVariablesRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/CompactToVariablesRector/CompactToVariablesRectorTest.php @@ -19,6 +19,9 @@ final class CompactToVariablesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/InArrayAndArrayKeysToArrayKeyExistsRector/InArrayAndArrayKeysToArrayKeyExistsRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/InArrayAndArrayKeysToArrayKeyExistsRector/InArrayAndArrayKeysToArrayKeyExistsRectorTest.php index 3c10c00c365..3aeb33614d8 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/InArrayAndArrayKeysToArrayKeyExistsRector/InArrayAndArrayKeysToArrayKeyExistsRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/InArrayAndArrayKeysToArrayKeyExistsRector/InArrayAndArrayKeysToArrayKeyExistsRectorTest.php @@ -19,6 +19,9 @@ final class InArrayAndArrayKeysToArrayKeyExistsRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/IntvalToTypeCastRector/IntvalToTypeCastRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/IntvalToTypeCastRector/IntvalToTypeCastRectorTest.php index 350ffd3ebcb..6d317b23c54 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/IntvalToTypeCastRector/IntvalToTypeCastRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/IntvalToTypeCastRector/IntvalToTypeCastRectorTest.php @@ -19,6 +19,9 @@ final class IntvalToTypeCastRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/IsAWithStringWithThirdArgumentRector/IsAWithStringWithThirdArgumentRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/IsAWithStringWithThirdArgumentRector/IsAWithStringWithThirdArgumentRectorTest.php index 9080b6622b0..e4c5899ab2a 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/IsAWithStringWithThirdArgumentRector/IsAWithStringWithThirdArgumentRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/IsAWithStringWithThirdArgumentRector/IsAWithStringWithThirdArgumentRectorTest.php @@ -19,6 +19,9 @@ final class IsAWithStringWithThirdArgumentRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/RemoveSoleValueSprintfRector/RemoveSoleValueSprintfRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/RemoveSoleValueSprintfRector/RemoveSoleValueSprintfRectorTest.php index 3664bb71bad..753decb50b9 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/RemoveSoleValueSprintfRector/RemoveSoleValueSprintfRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/RemoveSoleValueSprintfRector/RemoveSoleValueSprintfRectorTest.php @@ -19,6 +19,9 @@ final class RemoveSoleValueSprintfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/SetTypeToCastRector/SetTypeToCastRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/SetTypeToCastRector/SetTypeToCastRectorTest.php index f2df6435315..368b0814a37 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/SetTypeToCastRector/SetTypeToCastRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/SetTypeToCastRector/SetTypeToCastRectorTest.php @@ -19,6 +19,9 @@ final class SetTypeToCastRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/SimplifyFuncGetArgsCountRector/SimplifyFuncGetArgsCountRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/SimplifyFuncGetArgsCountRector/SimplifyFuncGetArgsCountRectorTest.php index 1ecca66a15a..2f6259fd48d 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/SimplifyFuncGetArgsCountRector/SimplifyFuncGetArgsCountRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/SimplifyFuncGetArgsCountRector/SimplifyFuncGetArgsCountRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyFuncGetArgsCountRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector/SimplifyInArrayValuesRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector/SimplifyInArrayValuesRectorTest.php index 028f074695c..6238561d3b7 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector/SimplifyInArrayValuesRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector/SimplifyInArrayValuesRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyInArrayValuesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector/SimplifyRegexPatternRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector/SimplifyRegexPatternRectorTest.php index bc4fb7c0de0..8c9660b38f7 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector/SimplifyRegexPatternRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector/SimplifyRegexPatternRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyRegexPatternRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/SimplifyStrposLowerRector/SimplifyStrposLowerRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/SimplifyStrposLowerRector/SimplifyStrposLowerRectorTest.php index aa2deae09c0..969d0e9224d 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/SimplifyStrposLowerRector/SimplifyStrposLowerRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/SimplifyStrposLowerRector/SimplifyStrposLowerRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyStrposLowerRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/SingleInArrayToCompareRector/SingleInArrayToCompareRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/SingleInArrayToCompareRector/SingleInArrayToCompareRectorTest.php index 628762122b0..23cd2d89fe8 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/SingleInArrayToCompareRector/SingleInArrayToCompareRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/SingleInArrayToCompareRector/SingleInArrayToCompareRectorTest.php @@ -19,6 +19,9 @@ final class SingleInArrayToCompareRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FuncCall/UnwrapSprintfOneArgumentRector/UnwrapSprintfOneArgumentRectorTest.php b/rules-tests/CodeQuality/Rector/FuncCall/UnwrapSprintfOneArgumentRector/UnwrapSprintfOneArgumentRectorTest.php index 79279c5c06a..b40bfa7107b 100644 --- a/rules-tests/CodeQuality/Rector/FuncCall/UnwrapSprintfOneArgumentRector/UnwrapSprintfOneArgumentRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FuncCall/UnwrapSprintfOneArgumentRector/UnwrapSprintfOneArgumentRectorTest.php @@ -19,6 +19,9 @@ final class UnwrapSprintfOneArgumentRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector/RemoveAlwaysTrueConditionSetInConstructorRectorTest.php b/rules-tests/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector/RemoveAlwaysTrueConditionSetInConstructorRectorTest.php index 9850fc97daf..00f8f3d824a 100644 --- a/rules-tests/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector/RemoveAlwaysTrueConditionSetInConstructorRectorTest.php +++ b/rules-tests/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector/RemoveAlwaysTrueConditionSetInConstructorRectorTest.php @@ -19,6 +19,9 @@ final class RemoveAlwaysTrueConditionSetInConstructorRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Identical/BooleanNotIdenticalToNotIdenticalRector/BooleanNotIdenticalToNotIdenticalRectorTest.php b/rules-tests/CodeQuality/Rector/Identical/BooleanNotIdenticalToNotIdenticalRector/BooleanNotIdenticalToNotIdenticalRectorTest.php index 79e83b9f758..5d7504663c2 100644 --- a/rules-tests/CodeQuality/Rector/Identical/BooleanNotIdenticalToNotIdenticalRector/BooleanNotIdenticalToNotIdenticalRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Identical/BooleanNotIdenticalToNotIdenticalRector/BooleanNotIdenticalToNotIdenticalRectorTest.php @@ -19,6 +19,9 @@ final class BooleanNotIdenticalToNotIdenticalRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Identical/FlipTypeControlToUseExclusiveTypeRector/FlipTypeControlToUseExclusiveTypeRectorTest.php b/rules-tests/CodeQuality/Rector/Identical/FlipTypeControlToUseExclusiveTypeRector/FlipTypeControlToUseExclusiveTypeRectorTest.php index 42f5bf8f6a9..2219e80e2a7 100644 --- a/rules-tests/CodeQuality/Rector/Identical/FlipTypeControlToUseExclusiveTypeRector/FlipTypeControlToUseExclusiveTypeRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Identical/FlipTypeControlToUseExclusiveTypeRector/FlipTypeControlToUseExclusiveTypeRectorTest.php @@ -19,6 +19,9 @@ final class FlipTypeControlToUseExclusiveTypeRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Identical/GetClassToInstanceOfRector/GetClassToInstanceOfRectorTest.php b/rules-tests/CodeQuality/Rector/Identical/GetClassToInstanceOfRector/GetClassToInstanceOfRectorTest.php index 097d9943f50..3994fa11d4e 100644 --- a/rules-tests/CodeQuality/Rector/Identical/GetClassToInstanceOfRector/GetClassToInstanceOfRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Identical/GetClassToInstanceOfRector/GetClassToInstanceOfRectorTest.php @@ -19,6 +19,9 @@ final class GetClassToInstanceOfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Identical/SimplifyArraySearchRector/SimplifyArraySearchRectorTest.php b/rules-tests/CodeQuality/Rector/Identical/SimplifyArraySearchRector/SimplifyArraySearchRectorTest.php index 4b37979606d..b16309b97ad 100644 --- a/rules-tests/CodeQuality/Rector/Identical/SimplifyArraySearchRector/SimplifyArraySearchRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Identical/SimplifyArraySearchRector/SimplifyArraySearchRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyArraySearchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector/SimplifyBoolIdenticalTrueRectorTest.php b/rules-tests/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector/SimplifyBoolIdenticalTrueRectorTest.php index bd08a8062c3..3c8794b0422 100644 --- a/rules-tests/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector/SimplifyBoolIdenticalTrueRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector/SimplifyBoolIdenticalTrueRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyBoolIdenticalTrueRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Identical/SimplifyConditionsRector/SimplifyConditionsRectorTest.php b/rules-tests/CodeQuality/Rector/Identical/SimplifyConditionsRector/SimplifyConditionsRectorTest.php index 83722a033aa..c82c67597ce 100644 --- a/rules-tests/CodeQuality/Rector/Identical/SimplifyConditionsRector/SimplifyConditionsRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Identical/SimplifyConditionsRector/SimplifyConditionsRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyConditionsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Identical/StrlenZeroToIdenticalEmptyStringRector/StrlenZeroToIdenticalEmptyStringRectorTest.php b/rules-tests/CodeQuality/Rector/Identical/StrlenZeroToIdenticalEmptyStringRector/StrlenZeroToIdenticalEmptyStringRectorTest.php index 7095b4234d3..81160b621a4 100644 --- a/rules-tests/CodeQuality/Rector/Identical/StrlenZeroToIdenticalEmptyStringRector/StrlenZeroToIdenticalEmptyStringRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Identical/StrlenZeroToIdenticalEmptyStringRector/StrlenZeroToIdenticalEmptyStringRectorTest.php @@ -19,6 +19,9 @@ final class StrlenZeroToIdenticalEmptyStringRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/If_/CombineIfRector/CombineIfRectorTest.php b/rules-tests/CodeQuality/Rector/If_/CombineIfRector/CombineIfRectorTest.php index 95bb6c61688..c7e95f68360 100644 --- a/rules-tests/CodeQuality/Rector/If_/CombineIfRector/CombineIfRectorTest.php +++ b/rules-tests/CodeQuality/Rector/If_/CombineIfRector/CombineIfRectorTest.php @@ -19,6 +19,9 @@ final class CombineIfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/If_/ConsecutiveNullCompareReturnsToNullCoalesceQueueRector/ConsecutiveNullCompareReturnsToNullCoalesceQueueRectorTest.php b/rules-tests/CodeQuality/Rector/If_/ConsecutiveNullCompareReturnsToNullCoalesceQueueRector/ConsecutiveNullCompareReturnsToNullCoalesceQueueRectorTest.php index 104e38bae02..8549bb692bf 100644 --- a/rules-tests/CodeQuality/Rector/If_/ConsecutiveNullCompareReturnsToNullCoalesceQueueRector/ConsecutiveNullCompareReturnsToNullCoalesceQueueRectorTest.php +++ b/rules-tests/CodeQuality/Rector/If_/ConsecutiveNullCompareReturnsToNullCoalesceQueueRector/ConsecutiveNullCompareReturnsToNullCoalesceQueueRectorTest.php @@ -19,6 +19,9 @@ final class ConsecutiveNullCompareReturnsToNullCoalesceQueueRectorTest extends A $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/If_/ExplicitBoolCompareRector/ExplicitBoolCompareRectorTest.php b/rules-tests/CodeQuality/Rector/If_/ExplicitBoolCompareRector/ExplicitBoolCompareRectorTest.php index dc9db931fd9..6cec60b7d28 100644 --- a/rules-tests/CodeQuality/Rector/If_/ExplicitBoolCompareRector/ExplicitBoolCompareRectorTest.php +++ b/rules-tests/CodeQuality/Rector/If_/ExplicitBoolCompareRector/ExplicitBoolCompareRectorTest.php @@ -19,6 +19,9 @@ final class ExplicitBoolCompareRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/ShortenElseIfRectorTest.php b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/ShortenElseIfRectorTest.php index 367eaa9747f..2bcac9ea862 100644 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/ShortenElseIfRectorTest.php +++ b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/ShortenElseIfRectorTest.php @@ -19,6 +19,9 @@ final class ShortenElseIfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector/SimplifyIfElseToTernaryRectorTest.php b/rules-tests/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector/SimplifyIfElseToTernaryRectorTest.php index ed3dfc80f45..0d134bec20e 100644 --- a/rules-tests/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector/SimplifyIfElseToTernaryRectorTest.php +++ b/rules-tests/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector/SimplifyIfElseToTernaryRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyIfElseToTernaryRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/If_/SimplifyIfIssetToNullCoalescingRector/SimplifyIfIssetToNullCoalescingRectorTest.php b/rules-tests/CodeQuality/Rector/If_/SimplifyIfIssetToNullCoalescingRector/SimplifyIfIssetToNullCoalescingRectorTest.php index 5a03ce0ea35..ffda40abce4 100644 --- a/rules-tests/CodeQuality/Rector/If_/SimplifyIfIssetToNullCoalescingRector/SimplifyIfIssetToNullCoalescingRectorTest.php +++ b/rules-tests/CodeQuality/Rector/If_/SimplifyIfIssetToNullCoalescingRector/SimplifyIfIssetToNullCoalescingRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyIfIssetToNullCoalescingRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector/SimplifyIfNotNullReturnRectorTest.php b/rules-tests/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector/SimplifyIfNotNullReturnRectorTest.php index 02f6d1ebf34..1d5ad764e22 100644 --- a/rules-tests/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector/SimplifyIfNotNullReturnRectorTest.php +++ b/rules-tests/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector/SimplifyIfNotNullReturnRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyIfNotNullReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector/SimplifyIfReturnBoolRectorTest.php b/rules-tests/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector/SimplifyIfReturnBoolRectorTest.php index 52155508dc6..1e50a72f553 100644 --- a/rules-tests/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector/SimplifyIfReturnBoolRectorTest.php +++ b/rules-tests/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector/SimplifyIfReturnBoolRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyIfReturnBoolRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector/AbsolutizeRequireAndIncludePathRectorTest.php b/rules-tests/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector/AbsolutizeRequireAndIncludePathRectorTest.php index 8b625d155db..a56b6d2dff7 100644 --- a/rules-tests/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector/AbsolutizeRequireAndIncludePathRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector/AbsolutizeRequireAndIncludePathRectorTest.php @@ -19,6 +19,9 @@ final class AbsolutizeRequireAndIncludePathRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/IssetOnPropertyObjectToPropertyExistsRectorTest.php b/rules-tests/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/IssetOnPropertyObjectToPropertyExistsRectorTest.php index d1918cc2381..311d85c0717 100644 --- a/rules-tests/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/IssetOnPropertyObjectToPropertyExistsRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/IssetOnPropertyObjectToPropertyExistsRectorTest.php @@ -19,6 +19,9 @@ final class IssetOnPropertyObjectToPropertyExistsRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/Php74Test.php b/rules-tests/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/Php74Test.php index fbcfc0bb2b1..7dc39d7cee7 100644 --- a/rules-tests/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/Php74Test.php +++ b/rules-tests/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/Php74Test.php @@ -19,6 +19,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/CodeQuality/Rector/LogicalAnd/AndAssignsToSeparateLinesRector/AndAssignsToSeparateLinesRectorTest.php b/rules-tests/CodeQuality/Rector/LogicalAnd/AndAssignsToSeparateLinesRector/AndAssignsToSeparateLinesRectorTest.php index 2a99443ba7a..b9d1b9fef9f 100644 --- a/rules-tests/CodeQuality/Rector/LogicalAnd/AndAssignsToSeparateLinesRector/AndAssignsToSeparateLinesRectorTest.php +++ b/rules-tests/CodeQuality/Rector/LogicalAnd/AndAssignsToSeparateLinesRector/AndAssignsToSeparateLinesRectorTest.php @@ -19,6 +19,9 @@ final class AndAssignsToSeparateLinesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/LogicalAnd/LogicalToBooleanRector/LogicalToBooleanRectorTest.php b/rules-tests/CodeQuality/Rector/LogicalAnd/LogicalToBooleanRector/LogicalToBooleanRectorTest.php index ea2ca1ae130..a1ef463858d 100644 --- a/rules-tests/CodeQuality/Rector/LogicalAnd/LogicalToBooleanRector/LogicalToBooleanRectorTest.php +++ b/rules-tests/CodeQuality/Rector/LogicalAnd/LogicalToBooleanRector/LogicalToBooleanRectorTest.php @@ -19,6 +19,9 @@ final class LogicalToBooleanRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Name/FixClassCaseSensitivityNameRector/FixClassCaseSensitivityNameRectorTest.php b/rules-tests/CodeQuality/Rector/Name/FixClassCaseSensitivityNameRector/FixClassCaseSensitivityNameRectorTest.php index 0190e0c7baf..9d9bf54e516 100644 --- a/rules-tests/CodeQuality/Rector/Name/FixClassCaseSensitivityNameRector/FixClassCaseSensitivityNameRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Name/FixClassCaseSensitivityNameRector/FixClassCaseSensitivityNameRectorTest.php @@ -22,6 +22,9 @@ final class FixClassCaseSensitivityNameRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/New_/NewStaticToNewSelfRector/NewStaticToNewSelfRectorTest.php b/rules-tests/CodeQuality/Rector/New_/NewStaticToNewSelfRector/NewStaticToNewSelfRectorTest.php index 6ec5dc27a71..89521b0147d 100644 --- a/rules-tests/CodeQuality/Rector/New_/NewStaticToNewSelfRector/NewStaticToNewSelfRectorTest.php +++ b/rules-tests/CodeQuality/Rector/New_/NewStaticToNewSelfRector/NewStaticToNewSelfRectorTest.php @@ -19,6 +19,9 @@ final class NewStaticToNewSelfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/NotEqual/CommonNotEqualRector/CommonNotEqualRectorTest.php b/rules-tests/CodeQuality/Rector/NotEqual/CommonNotEqualRector/CommonNotEqualRectorTest.php index 675dc8029b9..6c8b2b52923 100644 --- a/rules-tests/CodeQuality/Rector/NotEqual/CommonNotEqualRector/CommonNotEqualRectorTest.php +++ b/rules-tests/CodeQuality/Rector/NotEqual/CommonNotEqualRector/CommonNotEqualRectorTest.php @@ -19,6 +19,9 @@ final class CommonNotEqualRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Return_/SimplifyUselessVariableRector/SimplifyUselessVariableRectorTest.php b/rules-tests/CodeQuality/Rector/Return_/SimplifyUselessVariableRector/SimplifyUselessVariableRectorTest.php index 3931874afcb..0b22bfd5038 100644 --- a/rules-tests/CodeQuality/Rector/Return_/SimplifyUselessVariableRector/SimplifyUselessVariableRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Return_/SimplifyUselessVariableRector/SimplifyUselessVariableRectorTest.php @@ -24,6 +24,9 @@ final class SimplifyUselessVariableRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Switch_/SingularSwitchToIfRector/SingularSwitchToIfRectorTest.php b/rules-tests/CodeQuality/Rector/Switch_/SingularSwitchToIfRector/SingularSwitchToIfRectorTest.php index 1840373a995..ca95126572c 100644 --- a/rules-tests/CodeQuality/Rector/Switch_/SingularSwitchToIfRector/SingularSwitchToIfRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Switch_/SingularSwitchToIfRector/SingularSwitchToIfRectorTest.php @@ -19,6 +19,9 @@ final class SingularSwitchToIfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector/ArrayKeyExistsTernaryThenValueToCoalescingRectorTest.php b/rules-tests/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector/ArrayKeyExistsTernaryThenValueToCoalescingRectorTest.php index c251e20a2c4..6aa50f7a8a2 100644 --- a/rules-tests/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector/ArrayKeyExistsTernaryThenValueToCoalescingRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector/ArrayKeyExistsTernaryThenValueToCoalescingRectorTest.php @@ -19,6 +19,9 @@ final class ArrayKeyExistsTernaryThenValueToCoalescingRectorTest extends Abstrac $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Ternary/SimplifyDuplicatedTernaryRector/SimplifyDuplicatedTernaryRectorTest.php b/rules-tests/CodeQuality/Rector/Ternary/SimplifyDuplicatedTernaryRector/SimplifyDuplicatedTernaryRectorTest.php index 30c927277f5..9c9764e511c 100644 --- a/rules-tests/CodeQuality/Rector/Ternary/SimplifyDuplicatedTernaryRector/SimplifyDuplicatedTernaryRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Ternary/SimplifyDuplicatedTernaryRector/SimplifyDuplicatedTernaryRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyDuplicatedTernaryRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Ternary/SimplifyTautologyTernaryRector/SimplifyTautologyTernaryRectorTest.php b/rules-tests/CodeQuality/Rector/Ternary/SimplifyTautologyTernaryRector/SimplifyTautologyTernaryRectorTest.php index d78457282d0..b303894e204 100644 --- a/rules-tests/CodeQuality/Rector/Ternary/SimplifyTautologyTernaryRector/SimplifyTautologyTernaryRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Ternary/SimplifyTautologyTernaryRector/SimplifyTautologyTernaryRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyTautologyTernaryRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Ternary/SwitchNegatedTernaryRector/SwitchNegatedTernaryRectorTest.php b/rules-tests/CodeQuality/Rector/Ternary/SwitchNegatedTernaryRector/SwitchNegatedTernaryRectorTest.php index 210fc43b88f..177d6d3763b 100644 --- a/rules-tests/CodeQuality/Rector/Ternary/SwitchNegatedTernaryRector/SwitchNegatedTernaryRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Ternary/SwitchNegatedTernaryRector/SwitchNegatedTernaryRectorTest.php @@ -19,6 +19,9 @@ final class SwitchNegatedTernaryRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQuality/Rector/Ternary/UnnecessaryTernaryExpressionRector/UnnecessaryTernaryExpressionRectorTest.php b/rules-tests/CodeQuality/Rector/Ternary/UnnecessaryTernaryExpressionRector/UnnecessaryTernaryExpressionRectorTest.php index 775252de204..4e0170af3e7 100644 --- a/rules-tests/CodeQuality/Rector/Ternary/UnnecessaryTernaryExpressionRector/UnnecessaryTernaryExpressionRectorTest.php +++ b/rules-tests/CodeQuality/Rector/Ternary/UnnecessaryTernaryExpressionRector/UnnecessaryTernaryExpressionRectorTest.php @@ -19,6 +19,9 @@ final class UnnecessaryTernaryExpressionRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQualityStrict/Rector/ClassMethod/ParamTypeToAssertTypeRector/ParamTypeToAssertTypeRectorTest.php b/rules-tests/CodeQualityStrict/Rector/ClassMethod/ParamTypeToAssertTypeRector/ParamTypeToAssertTypeRectorTest.php index 2a2b9971d8c..6edbf929397 100644 --- a/rules-tests/CodeQualityStrict/Rector/ClassMethod/ParamTypeToAssertTypeRector/ParamTypeToAssertTypeRectorTest.php +++ b/rules-tests/CodeQualityStrict/Rector/ClassMethod/ParamTypeToAssertTypeRector/ParamTypeToAssertTypeRectorTest.php @@ -19,6 +19,9 @@ final class ParamTypeToAssertTypeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQualityStrict/Rector/If_/MoveOutMethodCallInsideIfConditionRector/MoveOutMethodCallInsideIfConditionRectorTest.php b/rules-tests/CodeQualityStrict/Rector/If_/MoveOutMethodCallInsideIfConditionRector/MoveOutMethodCallInsideIfConditionRectorTest.php index 2c252993df6..41023be3b7f 100644 --- a/rules-tests/CodeQualityStrict/Rector/If_/MoveOutMethodCallInsideIfConditionRector/MoveOutMethodCallInsideIfConditionRectorTest.php +++ b/rules-tests/CodeQualityStrict/Rector/If_/MoveOutMethodCallInsideIfConditionRector/MoveOutMethodCallInsideIfConditionRectorTest.php @@ -19,6 +19,9 @@ final class MoveOutMethodCallInsideIfConditionRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQualityStrict/Rector/Stmt/VarInlineAnnotationToAssertRector/VarInlineAnnotationToAssertRectorTest.php b/rules-tests/CodeQualityStrict/Rector/Stmt/VarInlineAnnotationToAssertRector/VarInlineAnnotationToAssertRectorTest.php index c1c8c99b73b..0bbea6fb371 100644 --- a/rules-tests/CodeQualityStrict/Rector/Stmt/VarInlineAnnotationToAssertRector/VarInlineAnnotationToAssertRectorTest.php +++ b/rules-tests/CodeQualityStrict/Rector/Stmt/VarInlineAnnotationToAssertRector/VarInlineAnnotationToAssertRectorTest.php @@ -19,6 +19,9 @@ final class VarInlineAnnotationToAssertRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodeQualityStrict/Rector/Variable/MoveVariableDeclarationNearReferenceRector/MoveVariableDeclarationNearReferenceRectorTest.php b/rules-tests/CodeQualityStrict/Rector/Variable/MoveVariableDeclarationNearReferenceRector/MoveVariableDeclarationNearReferenceRectorTest.php index 07a375ec906..0fd441853e8 100644 --- a/rules-tests/CodeQualityStrict/Rector/Variable/MoveVariableDeclarationNearReferenceRector/MoveVariableDeclarationNearReferenceRectorTest.php +++ b/rules-tests/CodeQualityStrict/Rector/Variable/MoveVariableDeclarationNearReferenceRector/MoveVariableDeclarationNearReferenceRectorTest.php @@ -19,6 +19,9 @@ final class MoveVariableDeclarationNearReferenceRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Assign/ManualJsonStringToJsonEncodeArrayRector/ManualJsonStringToJsonEncodeArrayRectorTest.php b/rules-tests/CodingStyle/Rector/Assign/ManualJsonStringToJsonEncodeArrayRector/ManualJsonStringToJsonEncodeArrayRectorTest.php index a0b3dbd9431..7e87d9eb000 100644 --- a/rules-tests/CodingStyle/Rector/Assign/ManualJsonStringToJsonEncodeArrayRector/ManualJsonStringToJsonEncodeArrayRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Assign/ManualJsonStringToJsonEncodeArrayRector/ManualJsonStringToJsonEncodeArrayRectorTest.php @@ -19,6 +19,9 @@ final class ManualJsonStringToJsonEncodeArrayRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Assign/PHPStormVarAnnotationRector/PHPStormVarAnnotationRectorTest.php b/rules-tests/CodingStyle/Rector/Assign/PHPStormVarAnnotationRector/PHPStormVarAnnotationRectorTest.php index 8b53aba809f..c7955c9f541 100644 --- a/rules-tests/CodingStyle/Rector/Assign/PHPStormVarAnnotationRector/PHPStormVarAnnotationRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Assign/PHPStormVarAnnotationRector/PHPStormVarAnnotationRectorTest.php @@ -19,6 +19,9 @@ final class PHPStormVarAnnotationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Assign/SplitDoubleAssignRector/SplitDoubleAssignRectorTest.php b/rules-tests/CodingStyle/Rector/Assign/SplitDoubleAssignRector/SplitDoubleAssignRectorTest.php index 52156d32f55..643013ae52b 100644 --- a/rules-tests/CodingStyle/Rector/Assign/SplitDoubleAssignRector/SplitDoubleAssignRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Assign/SplitDoubleAssignRector/SplitDoubleAssignRectorTest.php @@ -19,6 +19,9 @@ final class SplitDoubleAssignRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector/CatchExceptionNameMatchingTypeRectorTest.php b/rules-tests/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector/CatchExceptionNameMatchingTypeRectorTest.php index cd49e09d7a0..e512b6a5465 100644 --- a/rules-tests/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector/CatchExceptionNameMatchingTypeRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector/CatchExceptionNameMatchingTypeRectorTest.php @@ -19,6 +19,9 @@ final class CatchExceptionNameMatchingTypeRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/ClassConst/SplitGroupedConstantsAndPropertiesRector/SplitGroupedConstantsAndPropertiesRectorTest.php b/rules-tests/CodingStyle/Rector/ClassConst/SplitGroupedConstantsAndPropertiesRector/SplitGroupedConstantsAndPropertiesRectorTest.php index 780e3daa3c6..dbcb1a1a57f 100644 --- a/rules-tests/CodingStyle/Rector/ClassConst/SplitGroupedConstantsAndPropertiesRector/SplitGroupedConstantsAndPropertiesRectorTest.php +++ b/rules-tests/CodingStyle/Rector/ClassConst/SplitGroupedConstantsAndPropertiesRector/SplitGroupedConstantsAndPropertiesRectorTest.php @@ -19,6 +19,9 @@ final class SplitGroupedConstantsAndPropertiesRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/ClassConst/VarConstantCommentRector/VarConstantCommentRectorTest.php b/rules-tests/CodingStyle/Rector/ClassConst/VarConstantCommentRector/VarConstantCommentRectorTest.php index 367aa5e7a49..64cfc41275c 100644 --- a/rules-tests/CodingStyle/Rector/ClassConst/VarConstantCommentRector/VarConstantCommentRectorTest.php +++ b/rules-tests/CodingStyle/Rector/ClassConst/VarConstantCommentRector/VarConstantCommentRectorTest.php @@ -19,6 +19,9 @@ final class VarConstantCommentRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/MakeInheritedMethodVisibilitySameAsParentRectorTest.php b/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/MakeInheritedMethodVisibilitySameAsParentRectorTest.php index d985add0224..2e1d1d8e4ae 100644 --- a/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/MakeInheritedMethodVisibilitySameAsParentRectorTest.php +++ b/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/MakeInheritedMethodVisibilitySameAsParentRectorTest.php @@ -19,6 +19,9 @@ final class MakeInheritedMethodVisibilitySameAsParentRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/SkipParentConstructOverrideInPHP72Test.php b/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/SkipParentConstructOverrideInPHP72Test.php index 7032873d0f1..fa03a1dfa12 100644 --- a/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/SkipParentConstructOverrideInPHP72Test.php +++ b/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/SkipParentConstructOverrideInPHP72Test.php @@ -21,6 +21,9 @@ final class SkipParentConstructOverrideInPHP72Test extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureForPhp72'); diff --git a/rules-tests/CodingStyle/Rector/ClassMethod/NewlineBeforeNewAssignSetRector/NewlineBeforeNewAssignSetRectorTest.php b/rules-tests/CodingStyle/Rector/ClassMethod/NewlineBeforeNewAssignSetRector/NewlineBeforeNewAssignSetRectorTest.php index cd1160b197f..dacdc4abe1d 100644 --- a/rules-tests/CodingStyle/Rector/ClassMethod/NewlineBeforeNewAssignSetRector/NewlineBeforeNewAssignSetRectorTest.php +++ b/rules-tests/CodingStyle/Rector/ClassMethod/NewlineBeforeNewAssignSetRector/NewlineBeforeNewAssignSetRectorTest.php @@ -19,6 +19,9 @@ final class NewlineBeforeNewAssignSetRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/ClassMethod/ReturnArrayClassMethodToYieldRector/ReturnArrayClassMethodToYieldRectorTest.php b/rules-tests/CodingStyle/Rector/ClassMethod/ReturnArrayClassMethodToYieldRector/ReturnArrayClassMethodToYieldRectorTest.php index 9473aa7b6a3..3562f46d710 100644 --- a/rules-tests/CodingStyle/Rector/ClassMethod/ReturnArrayClassMethodToYieldRector/ReturnArrayClassMethodToYieldRectorTest.php +++ b/rules-tests/CodingStyle/Rector/ClassMethod/ReturnArrayClassMethodToYieldRector/ReturnArrayClassMethodToYieldRectorTest.php @@ -18,6 +18,9 @@ final class ReturnArrayClassMethodToYieldRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/ClassMethod/UnSpreadOperatorRector/UnSpreadOperatorRectorTest.php b/rules-tests/CodingStyle/Rector/ClassMethod/UnSpreadOperatorRector/UnSpreadOperatorRectorTest.php index d474d4e56d8..c1e0e3b6bc7 100644 --- a/rules-tests/CodingStyle/Rector/ClassMethod/UnSpreadOperatorRector/UnSpreadOperatorRectorTest.php +++ b/rules-tests/CodingStyle/Rector/ClassMethod/UnSpreadOperatorRector/UnSpreadOperatorRectorTest.php @@ -19,6 +19,9 @@ final class UnSpreadOperatorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/ClassMethod/YieldClassMethodToArrayClassMethodRector/YieldClassMethodToArrayClassMethodRectorTest.php b/rules-tests/CodingStyle/Rector/ClassMethod/YieldClassMethodToArrayClassMethodRector/YieldClassMethodToArrayClassMethodRectorTest.php index 0066282a264..183416ed6f8 100644 --- a/rules-tests/CodingStyle/Rector/ClassMethod/YieldClassMethodToArrayClassMethodRector/YieldClassMethodToArrayClassMethodRectorTest.php +++ b/rules-tests/CodingStyle/Rector/ClassMethod/YieldClassMethodToArrayClassMethodRector/YieldClassMethodToArrayClassMethodRectorTest.php @@ -18,6 +18,9 @@ final class YieldClassMethodToArrayClassMethodRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Class_/AddArrayDefaultToArrayPropertyRector/AddArrayDefaultToArrayPropertyRectorTest.php b/rules-tests/CodingStyle/Rector/Class_/AddArrayDefaultToArrayPropertyRector/AddArrayDefaultToArrayPropertyRectorTest.php index b021df7188b..033221b96d6 100644 --- a/rules-tests/CodingStyle/Rector/Class_/AddArrayDefaultToArrayPropertyRector/AddArrayDefaultToArrayPropertyRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Class_/AddArrayDefaultToArrayPropertyRector/AddArrayDefaultToArrayPropertyRectorTest.php @@ -19,6 +19,9 @@ final class AddArrayDefaultToArrayPropertyRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Encapsed/EncapsedStringsToSprintfRector/EncapsedStringsToSprintfRectorTest.php b/rules-tests/CodingStyle/Rector/Encapsed/EncapsedStringsToSprintfRector/EncapsedStringsToSprintfRectorTest.php index 7a82f6d038e..2332669e6a8 100644 --- a/rules-tests/CodingStyle/Rector/Encapsed/EncapsedStringsToSprintfRector/EncapsedStringsToSprintfRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Encapsed/EncapsedStringsToSprintfRector/EncapsedStringsToSprintfRectorTest.php @@ -19,6 +19,9 @@ final class EncapsedStringsToSprintfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Encapsed/WrapEncapsedVariableInCurlyBracesRector/WrapEncapsedVariableInCurlyBracesRectorTest.php b/rules-tests/CodingStyle/Rector/Encapsed/WrapEncapsedVariableInCurlyBracesRector/WrapEncapsedVariableInCurlyBracesRectorTest.php index 4ff0b7307e2..f3aa7717416 100644 --- a/rules-tests/CodingStyle/Rector/Encapsed/WrapEncapsedVariableInCurlyBracesRector/WrapEncapsedVariableInCurlyBracesRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Encapsed/WrapEncapsedVariableInCurlyBracesRector/WrapEncapsedVariableInCurlyBracesRectorTest.php @@ -19,6 +19,9 @@ final class WrapEncapsedVariableInCurlyBracesRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/FuncCall/CallUserFuncCallToVariadicRector/CallUserFuncCallToVariadicRectorTest.php b/rules-tests/CodingStyle/Rector/FuncCall/CallUserFuncCallToVariadicRector/CallUserFuncCallToVariadicRectorTest.php index 53e08793b99..851b6c0b5e4 100644 --- a/rules-tests/CodingStyle/Rector/FuncCall/CallUserFuncCallToVariadicRector/CallUserFuncCallToVariadicRectorTest.php +++ b/rules-tests/CodingStyle/Rector/FuncCall/CallUserFuncCallToVariadicRector/CallUserFuncCallToVariadicRectorTest.php @@ -19,6 +19,9 @@ final class CallUserFuncCallToVariadicRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/FuncCall/ConsistentImplodeRector/ConsistentImplodeRectorTest.php b/rules-tests/CodingStyle/Rector/FuncCall/ConsistentImplodeRector/ConsistentImplodeRectorTest.php index 317c627eae9..f47399fc4d7 100644 --- a/rules-tests/CodingStyle/Rector/FuncCall/ConsistentImplodeRector/ConsistentImplodeRectorTest.php +++ b/rules-tests/CodingStyle/Rector/FuncCall/ConsistentImplodeRector/ConsistentImplodeRectorTest.php @@ -19,6 +19,9 @@ final class ConsistentImplodeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/FuncCall/ConsistentPregDelimiterRector/ConsistentPregDelimiterRectorTest.php b/rules-tests/CodingStyle/Rector/FuncCall/ConsistentPregDelimiterRector/ConsistentPregDelimiterRectorTest.php index 749a2ba3917..03de336ba8c 100644 --- a/rules-tests/CodingStyle/Rector/FuncCall/ConsistentPregDelimiterRector/ConsistentPregDelimiterRectorTest.php +++ b/rules-tests/CodingStyle/Rector/FuncCall/ConsistentPregDelimiterRector/ConsistentPregDelimiterRectorTest.php @@ -19,6 +19,9 @@ final class ConsistentPregDelimiterRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/FuncCall/CountArrayToEmptyArrayComparisonRector/CountArrayToEmptyArrayComparisonRectorTest.php b/rules-tests/CodingStyle/Rector/FuncCall/CountArrayToEmptyArrayComparisonRector/CountArrayToEmptyArrayComparisonRectorTest.php index 9a0574b8471..4b70e44f1a7 100644 --- a/rules-tests/CodingStyle/Rector/FuncCall/CountArrayToEmptyArrayComparisonRector/CountArrayToEmptyArrayComparisonRectorTest.php +++ b/rules-tests/CodingStyle/Rector/FuncCall/CountArrayToEmptyArrayComparisonRector/CountArrayToEmptyArrayComparisonRectorTest.php @@ -19,6 +19,9 @@ final class CountArrayToEmptyArrayComparisonRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/FuncCall/PreslashSimpleFunctionRector/AutoImportTest.php b/rules-tests/CodingStyle/Rector/FuncCall/PreslashSimpleFunctionRector/AutoImportTest.php index 43ccfb13e2f..a8cbb49c0d5 100644 --- a/rules-tests/CodingStyle/Rector/FuncCall/PreslashSimpleFunctionRector/AutoImportTest.php +++ b/rules-tests/CodingStyle/Rector/FuncCall/PreslashSimpleFunctionRector/AutoImportTest.php @@ -18,6 +18,9 @@ final class AutoImportTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImport'); diff --git a/rules-tests/CodingStyle/Rector/FuncCall/PreslashSimpleFunctionRector/PreslashSimpleFunctionRectorTest.php b/rules-tests/CodingStyle/Rector/FuncCall/PreslashSimpleFunctionRector/PreslashSimpleFunctionRectorTest.php index fdb92ba227a..3fcec7e9775 100644 --- a/rules-tests/CodingStyle/Rector/FuncCall/PreslashSimpleFunctionRector/PreslashSimpleFunctionRectorTest.php +++ b/rules-tests/CodingStyle/Rector/FuncCall/PreslashSimpleFunctionRector/PreslashSimpleFunctionRectorTest.php @@ -19,6 +19,9 @@ final class PreslashSimpleFunctionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/FuncCall/StrictArraySearchRector/StrictArraySearchRectorTest.php b/rules-tests/CodingStyle/Rector/FuncCall/StrictArraySearchRector/StrictArraySearchRectorTest.php index 08b035a3c0d..60fa99d1ea2 100644 --- a/rules-tests/CodingStyle/Rector/FuncCall/StrictArraySearchRector/StrictArraySearchRectorTest.php +++ b/rules-tests/CodingStyle/Rector/FuncCall/StrictArraySearchRector/StrictArraySearchRectorTest.php @@ -19,6 +19,9 @@ final class StrictArraySearchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector/VersionCompareFuncCallToConstantRectorTest.php b/rules-tests/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector/VersionCompareFuncCallToConstantRectorTest.php index fe8e8858f8c..797c5c8fb9a 100644 --- a/rules-tests/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector/VersionCompareFuncCallToConstantRectorTest.php +++ b/rules-tests/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector/VersionCompareFuncCallToConstantRectorTest.php @@ -19,6 +19,9 @@ final class VersionCompareFuncCallToConstantRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Function_/CamelCaseFunctionNamingToUnderscoreRector/CamelCaseFunctionNamingToUnderscoreRectorTest.php b/rules-tests/CodingStyle/Rector/Function_/CamelCaseFunctionNamingToUnderscoreRector/CamelCaseFunctionNamingToUnderscoreRectorTest.php index d0bdd880588..68cffb06be3 100644 --- a/rules-tests/CodingStyle/Rector/Function_/CamelCaseFunctionNamingToUnderscoreRector/CamelCaseFunctionNamingToUnderscoreRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Function_/CamelCaseFunctionNamingToUnderscoreRector/CamelCaseFunctionNamingToUnderscoreRectorTest.php @@ -19,6 +19,9 @@ final class CamelCaseFunctionNamingToUnderscoreRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/If_/NullableCompareToNullRector/NullableCompareToNullRectorTest.php b/rules-tests/CodingStyle/Rector/If_/NullableCompareToNullRector/NullableCompareToNullRectorTest.php index 0aa224fbf23..bd1f5180db0 100644 --- a/rules-tests/CodingStyle/Rector/If_/NullableCompareToNullRector/NullableCompareToNullRectorTest.php +++ b/rules-tests/CodingStyle/Rector/If_/NullableCompareToNullRector/NullableCompareToNullRectorTest.php @@ -19,6 +19,9 @@ final class NullableCompareToNullRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Include_/FollowRequireByDirRector/FollowRequireByDirRectorTest.php b/rules-tests/CodingStyle/Rector/Include_/FollowRequireByDirRector/FollowRequireByDirRectorTest.php index 2cba608c2e0..a63b935c953 100644 --- a/rules-tests/CodingStyle/Rector/Include_/FollowRequireByDirRector/FollowRequireByDirRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Include_/FollowRequireByDirRector/FollowRequireByDirRectorTest.php @@ -19,6 +19,9 @@ final class FollowRequireByDirRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/MethodCall/PreferThisOrSelfMethodCallRector/PreferThisOrSelfMethodCallRectorTest.php b/rules-tests/CodingStyle/Rector/MethodCall/PreferThisOrSelfMethodCallRector/PreferThisOrSelfMethodCallRectorTest.php index 2c5ec141347..61dd40d3983 100644 --- a/rules-tests/CodingStyle/Rector/MethodCall/PreferThisOrSelfMethodCallRector/PreferThisOrSelfMethodCallRectorTest.php +++ b/rules-tests/CodingStyle/Rector/MethodCall/PreferThisOrSelfMethodCallRector/PreferThisOrSelfMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class PreferThisOrSelfMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/MethodCall/UseMessageVariableForSprintfInSymfonyStyleRector/UseMessageVariableForSprintfInSymfonyStyleRectorTest.php b/rules-tests/CodingStyle/Rector/MethodCall/UseMessageVariableForSprintfInSymfonyStyleRector/UseMessageVariableForSprintfInSymfonyStyleRectorTest.php index 2fb67c85f3b..65bda18a440 100644 --- a/rules-tests/CodingStyle/Rector/MethodCall/UseMessageVariableForSprintfInSymfonyStyleRector/UseMessageVariableForSprintfInSymfonyStyleRectorTest.php +++ b/rules-tests/CodingStyle/Rector/MethodCall/UseMessageVariableForSprintfInSymfonyStyleRector/UseMessageVariableForSprintfInSymfonyStyleRectorTest.php @@ -19,6 +19,9 @@ final class UseMessageVariableForSprintfInSymfonyStyleRectorTest extends Abstrac $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/DocBlockRectorTest.php b/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/DocBlockRectorTest.php index f70a6e55fe6..efec9838e87 100644 --- a/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/DocBlockRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/DocBlockRectorTest.php @@ -21,6 +21,9 @@ final class DocBlockRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureDocBlock'); diff --git a/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/NonNamespacedTest.php b/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/NonNamespacedTest.php index fda417bb873..0d1c0b521ac 100644 --- a/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/NonNamespacedTest.php +++ b/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/NonNamespacedTest.php @@ -21,6 +21,9 @@ final class NonNamespacedTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureNonNamespaced'); diff --git a/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Php80Test.php b/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Php80Test.php index 9f930001015..6d26682fa03 100644 --- a/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Php80Test.php +++ b/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Php80Test.php @@ -22,6 +22,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAttributes'); diff --git a/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Fixture/SharedShortName.php b/rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/FixtureSharedShortName.php similarity index 100% rename from rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Fixture/SharedShortName.php rename to rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/FixtureSharedShortName.php diff --git a/rules-tests/CodingStyle/Rector/Plus/UseIncrementAssignRector/UseIncrementAssignRectorTest.php b/rules-tests/CodingStyle/Rector/Plus/UseIncrementAssignRector/UseIncrementAssignRectorTest.php index 3587bb3c780..e2741ebcb47 100644 --- a/rules-tests/CodingStyle/Rector/Plus/UseIncrementAssignRector/UseIncrementAssignRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Plus/UseIncrementAssignRector/UseIncrementAssignRectorTest.php @@ -19,6 +19,9 @@ final class UseIncrementAssignRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector/PostIncDecToPreIncDecRectorTest.php b/rules-tests/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector/PostIncDecToPreIncDecRectorTest.php index bf890a59882..e5144f3264f 100644 --- a/rules-tests/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector/PostIncDecToPreIncDecRectorTest.php +++ b/rules-tests/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector/PostIncDecToPreIncDecRectorTest.php @@ -19,6 +19,9 @@ final class PostIncDecToPreIncDecRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Property/AddFalseDefaultToBoolPropertyRector/AddFalseDefaultToBoolPropertyRectorTest.php b/rules-tests/CodingStyle/Rector/Property/AddFalseDefaultToBoolPropertyRector/AddFalseDefaultToBoolPropertyRectorTest.php index 94bf0605845..4bd1cadbc1a 100644 --- a/rules-tests/CodingStyle/Rector/Property/AddFalseDefaultToBoolPropertyRector/AddFalseDefaultToBoolPropertyRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Property/AddFalseDefaultToBoolPropertyRector/AddFalseDefaultToBoolPropertyRectorTest.php @@ -19,6 +19,9 @@ final class AddFalseDefaultToBoolPropertyRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/String_/SplitStringClassConstantToClassConstFetchRector/SplitStringClassConstantToClassConstFetchRectorTest.php b/rules-tests/CodingStyle/Rector/String_/SplitStringClassConstantToClassConstFetchRector/SplitStringClassConstantToClassConstFetchRectorTest.php index 58fe99a7eb8..762e7e9feb8 100644 --- a/rules-tests/CodingStyle/Rector/String_/SplitStringClassConstantToClassConstFetchRector/SplitStringClassConstantToClassConstFetchRectorTest.php +++ b/rules-tests/CodingStyle/Rector/String_/SplitStringClassConstantToClassConstFetchRector/SplitStringClassConstantToClassConstFetchRectorTest.php @@ -19,6 +19,9 @@ final class SplitStringClassConstantToClassConstFetchRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/String_/SymplifyQuoteEscapeRector/SymplifyQuoteEscapeRectorTest.php b/rules-tests/CodingStyle/Rector/String_/SymplifyQuoteEscapeRector/SymplifyQuoteEscapeRectorTest.php index 0968f39e0a0..3c10d5e2612 100644 --- a/rules-tests/CodingStyle/Rector/String_/SymplifyQuoteEscapeRector/SymplifyQuoteEscapeRectorTest.php +++ b/rules-tests/CodingStyle/Rector/String_/SymplifyQuoteEscapeRector/SymplifyQuoteEscapeRectorTest.php @@ -19,6 +19,9 @@ final class SymplifyQuoteEscapeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/String_/UseClassKeywordForClassNameResolutionRector/UseClassKeywordForClassNameResolutionRectorTest.php b/rules-tests/CodingStyle/Rector/String_/UseClassKeywordForClassNameResolutionRector/UseClassKeywordForClassNameResolutionRectorTest.php index 17f04be1737..e5304c62300 100644 --- a/rules-tests/CodingStyle/Rector/String_/UseClassKeywordForClassNameResolutionRector/UseClassKeywordForClassNameResolutionRectorTest.php +++ b/rules-tests/CodingStyle/Rector/String_/UseClassKeywordForClassNameResolutionRector/UseClassKeywordForClassNameResolutionRectorTest.php @@ -19,6 +19,9 @@ final class UseClassKeywordForClassNameResolutionRectorTest extends AbstractRect $this->doTestFileInfo($file); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Switch_/BinarySwitchToIfElseRector/BinarySwitchToIfElseRectorTest.php b/rules-tests/CodingStyle/Rector/Switch_/BinarySwitchToIfElseRector/BinarySwitchToIfElseRectorTest.php index ac4ef47851e..919604c728d 100644 --- a/rules-tests/CodingStyle/Rector/Switch_/BinarySwitchToIfElseRector/BinarySwitchToIfElseRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Switch_/BinarySwitchToIfElseRector/BinarySwitchToIfElseRectorTest.php @@ -19,6 +19,9 @@ final class BinarySwitchToIfElseRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Ternary/TernaryConditionVariableAssignmentRector/TernaryConditionVariableAssignmentRectorTest.php b/rules-tests/CodingStyle/Rector/Ternary/TernaryConditionVariableAssignmentRector/TernaryConditionVariableAssignmentRectorTest.php index c5b6f07a133..6b31a2f444b 100644 --- a/rules-tests/CodingStyle/Rector/Ternary/TernaryConditionVariableAssignmentRector/TernaryConditionVariableAssignmentRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Ternary/TernaryConditionVariableAssignmentRector/TernaryConditionVariableAssignmentRectorTest.php @@ -19,6 +19,9 @@ final class TernaryConditionVariableAssignmentRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Use_/RemoveUnusedAliasRector/RemoveUnusedAliasRectorTest.php b/rules-tests/CodingStyle/Rector/Use_/RemoveUnusedAliasRector/RemoveUnusedAliasRectorTest.php index 7e482f2b01e..434df233dd4 100644 --- a/rules-tests/CodingStyle/Rector/Use_/RemoveUnusedAliasRector/RemoveUnusedAliasRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Use_/RemoveUnusedAliasRector/RemoveUnusedAliasRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedAliasRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/CodingStyle/Rector/Use_/SplitGroupedUseImportsRector/SplitGroupedUseImportsRectorTest.php b/rules-tests/CodingStyle/Rector/Use_/SplitGroupedUseImportsRector/SplitGroupedUseImportsRectorTest.php index 89653b65e75..d09d6fb5d3a 100644 --- a/rules-tests/CodingStyle/Rector/Use_/SplitGroupedUseImportsRector/SplitGroupedUseImportsRectorTest.php +++ b/rules-tests/CodingStyle/Rector/Use_/SplitGroupedUseImportsRector/SplitGroupedUseImportsRectorTest.php @@ -19,6 +19,9 @@ final class SplitGroupedUseImportsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Array_/RemoveDuplicatedArrayKeyRector/RemoveDuplicatedArrayKeyRectorTest.php b/rules-tests/DeadCode/Rector/Array_/RemoveDuplicatedArrayKeyRector/RemoveDuplicatedArrayKeyRectorTest.php index d415533fb3b..90aa9050d15 100644 --- a/rules-tests/DeadCode/Rector/Array_/RemoveDuplicatedArrayKeyRector/RemoveDuplicatedArrayKeyRectorTest.php +++ b/rules-tests/DeadCode/Rector/Array_/RemoveDuplicatedArrayKeyRector/RemoveDuplicatedArrayKeyRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDuplicatedArrayKeyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Assign/RemoveAssignOfVoidReturnFunctionRector/RemoveAssignOfVoidReturnFunctionRectorTest.php b/rules-tests/DeadCode/Rector/Assign/RemoveAssignOfVoidReturnFunctionRector/RemoveAssignOfVoidReturnFunctionRectorTest.php index ad93451d888..7b2cb06d7c0 100644 --- a/rules-tests/DeadCode/Rector/Assign/RemoveAssignOfVoidReturnFunctionRector/RemoveAssignOfVoidReturnFunctionRectorTest.php +++ b/rules-tests/DeadCode/Rector/Assign/RemoveAssignOfVoidReturnFunctionRector/RemoveAssignOfVoidReturnFunctionRectorTest.php @@ -19,6 +19,9 @@ final class RemoveAssignOfVoidReturnFunctionRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Assign/RemoveDoubleAssignRector/RemoveDoubleAssignRectorTest.php b/rules-tests/DeadCode/Rector/Assign/RemoveDoubleAssignRector/RemoveDoubleAssignRectorTest.php index ee1fc7de595..6625771f1fe 100644 --- a/rules-tests/DeadCode/Rector/Assign/RemoveDoubleAssignRector/RemoveDoubleAssignRectorTest.php +++ b/rules-tests/DeadCode/Rector/Assign/RemoveDoubleAssignRector/RemoveDoubleAssignRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDoubleAssignRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Assign/RemoveUnusedAssignVariableRector/RemoveUnusedAssignVariableRectorTest.php b/rules-tests/DeadCode/Rector/Assign/RemoveUnusedAssignVariableRector/RemoveUnusedAssignVariableRectorTest.php index 217d1583f29..af7ac05770d 100644 --- a/rules-tests/DeadCode/Rector/Assign/RemoveUnusedAssignVariableRector/RemoveUnusedAssignVariableRectorTest.php +++ b/rules-tests/DeadCode/Rector/Assign/RemoveUnusedAssignVariableRector/RemoveUnusedAssignVariableRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedAssignVariableRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector/RemoveUnusedVariableAssignRectorTest.php b/rules-tests/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector/RemoveUnusedVariableAssignRectorTest.php index 48b9019fd6b..bd6a7afb1a1 100644 --- a/rules-tests/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector/RemoveUnusedVariableAssignRectorTest.php +++ b/rules-tests/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector/RemoveUnusedVariableAssignRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedVariableAssignRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/BinaryOp/RemoveDuplicatedInstanceOfRector/RemoveDuplicatedInstanceOfRectorTest.php b/rules-tests/DeadCode/Rector/BinaryOp/RemoveDuplicatedInstanceOfRector/RemoveDuplicatedInstanceOfRectorTest.php index c9edf8f2f98..d4c7d12ff27 100644 --- a/rules-tests/DeadCode/Rector/BinaryOp/RemoveDuplicatedInstanceOfRector/RemoveDuplicatedInstanceOfRectorTest.php +++ b/rules-tests/DeadCode/Rector/BinaryOp/RemoveDuplicatedInstanceOfRector/RemoveDuplicatedInstanceOfRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDuplicatedInstanceOfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/BooleanAnd/RemoveAndTrueRector/RemoveAndTrueRectorTest.php b/rules-tests/DeadCode/Rector/BooleanAnd/RemoveAndTrueRector/RemoveAndTrueRectorTest.php index 5b9b3c930ed..92fbf320451 100644 --- a/rules-tests/DeadCode/Rector/BooleanAnd/RemoveAndTrueRector/RemoveAndTrueRectorTest.php +++ b/rules-tests/DeadCode/Rector/BooleanAnd/RemoveAndTrueRector/RemoveAndTrueRectorTest.php @@ -19,6 +19,9 @@ final class RemoveAndTrueRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Cast/RecastingRemovalRector/RecastingRemovalRectorTest.php b/rules-tests/DeadCode/Rector/Cast/RecastingRemovalRector/RecastingRemovalRectorTest.php index 3287164bf96..5a9ce6b559d 100644 --- a/rules-tests/DeadCode/Rector/Cast/RecastingRemovalRector/RecastingRemovalRectorTest.php +++ b/rules-tests/DeadCode/Rector/Cast/RecastingRemovalRector/RecastingRemovalRectorTest.php @@ -19,6 +19,9 @@ final class RecastingRemovalRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedClassConstantRector/OpenSourceRectorTest.php b/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedClassConstantRector/OpenSourceRectorTest.php index 046e94e621a..843be261694 100644 --- a/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedClassConstantRector/OpenSourceRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedClassConstantRector/OpenSourceRectorTest.php @@ -18,6 +18,9 @@ final class OpenSourceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); diff --git a/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedClassConstantRector/RemoveUnusedClassConstantRectorTest.php b/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedClassConstantRector/RemoveUnusedClassConstantRectorTest.php index afcaa334630..77df1638650 100644 --- a/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedClassConstantRector/RemoveUnusedClassConstantRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedClassConstantRector/RemoveUnusedClassConstantRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedClassConstantRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedPrivateConstantRector/RemoveUnusedPrivateConstantRectorTest.php b/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedPrivateConstantRector/RemoveUnusedPrivateConstantRectorTest.php index d4eba986f6e..160eb73c57b 100644 --- a/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedPrivateConstantRector/RemoveUnusedPrivateConstantRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassConst/RemoveUnusedPrivateConstantRector/RemoveUnusedPrivateConstantRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedPrivateConstantRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/Php80Test.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/Php80Test.php index ce1137fdcdc..5d425fd22c8 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/Php80Test.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/Php80Test.php @@ -19,6 +19,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/RemoveDeadConstructorRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/RemoveDeadConstructorRectorTest.php index 98b5ab2105a..f5b5f5f4d94 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/RemoveDeadConstructorRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/RemoveDeadConstructorRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadConstructorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadRecursiveClassMethodRector/RemoveDeadRecursiveClassMethodRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadRecursiveClassMethodRector/RemoveDeadRecursiveClassMethodRectorTest.php index 1ed9c97a67c..ddf915b120c 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadRecursiveClassMethodRector/RemoveDeadRecursiveClassMethodRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadRecursiveClassMethodRector/RemoveDeadRecursiveClassMethodRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadRecursiveClassMethodRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveDelegatingParentCallRector/RemoveDelegatingParentCallRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveDelegatingParentCallRector/RemoveDelegatingParentCallRectorTest.php index 3d134ccb3a2..c3ebf26d398 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveDelegatingParentCallRector/RemoveDelegatingParentCallRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveDelegatingParentCallRector/RemoveDelegatingParentCallRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDelegatingParentCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/Php80Test.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/Php80Test.php index 0f0ca851a7d..73a89c35e04 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/Php80Test.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/Php80Test.php @@ -20,6 +20,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/RemoveEmptyClassMethodRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/RemoveEmptyClassMethodRectorTest.php index 1bc23c5040a..d055ceaf2f6 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/RemoveEmptyClassMethodRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/RemoveEmptyClassMethodRectorTest.php @@ -19,6 +19,9 @@ final class RemoveEmptyClassMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedConstructorParamRector/Php80Test.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedConstructorParamRector/Php80Test.php index dcde3db95ca..3cdeb14b87c 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedConstructorParamRector/Php80Test.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedConstructorParamRector/Php80Test.php @@ -20,6 +20,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedConstructorParamRector/RemoveUnusedConstructorParamRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedConstructorParamRector/RemoveUnusedConstructorParamRectorTest.php index 55beae4f104..0407f089c22 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedConstructorParamRector/RemoveUnusedConstructorParamRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedConstructorParamRector/RemoveUnusedConstructorParamRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedConstructorParamRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/OpenSourceRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/OpenSourceRectorTest.php index 71ec8f7ccb8..749c136890c 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/OpenSourceRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/OpenSourceRectorTest.php @@ -18,6 +18,9 @@ final class OpenSourceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/Php80Test.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/Php80Test.php index 4ed83b9e26c..1f80c6c7977 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/Php80Test.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/Php80Test.php @@ -20,6 +20,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/RemoveUnusedParameterRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/RemoveUnusedParameterRectorTest.php index eedfb81fdb3..0ac620a7c21 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/RemoveUnusedParameterRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedParameterRector/RemoveUnusedParameterRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedParameterRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPrivateMethodRector/RemoveUnusedPrivateMethodRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPrivateMethodRector/RemoveUnusedPrivateMethodRectorTest.php index d36b4a30d80..90b4a7b4c08 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPrivateMethodRector/RemoveUnusedPrivateMethodRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPrivateMethodRector/RemoveUnusedPrivateMethodRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedPrivateMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodRector/OpenSourceRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodRector/OpenSourceRectorTest.php index 423ecb43787..0af7e538937 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodRector/OpenSourceRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodRector/OpenSourceRectorTest.php @@ -18,6 +18,9 @@ final class OpenSourceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodRector/RemoveUnusedPublicMethodRectorTest.php b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodRector/RemoveUnusedPublicMethodRectorTest.php index a38afc3cf9a..6798769b247 100644 --- a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodRector/RemoveUnusedPublicMethodRectorTest.php +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodRector/RemoveUnusedPublicMethodRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedPublicMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Class_/RemoveEmptyAbstractClassRector/RemoveEmptyAbstractClassRectorTest.php b/rules-tests/DeadCode/Rector/Class_/RemoveEmptyAbstractClassRector/RemoveEmptyAbstractClassRectorTest.php index c7be3b7ae01..ba8aabd51b9 100644 --- a/rules-tests/DeadCode/Rector/Class_/RemoveEmptyAbstractClassRector/RemoveEmptyAbstractClassRectorTest.php +++ b/rules-tests/DeadCode/Rector/Class_/RemoveEmptyAbstractClassRector/RemoveEmptyAbstractClassRectorTest.php @@ -19,6 +19,9 @@ final class RemoveEmptyAbstractClassRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Class_/RemoveUnusedDoctrineEntityMethodAndPropertyRector/RemoveUnusedDoctrineEntityMethodAndPropertyRectorTest.php b/rules-tests/DeadCode/Rector/Class_/RemoveUnusedDoctrineEntityMethodAndPropertyRector/RemoveUnusedDoctrineEntityMethodAndPropertyRectorTest.php index 0e091fa6092..8b6ac7762a2 100644 --- a/rules-tests/DeadCode/Rector/Class_/RemoveUnusedDoctrineEntityMethodAndPropertyRector/RemoveUnusedDoctrineEntityMethodAndPropertyRectorTest.php +++ b/rules-tests/DeadCode/Rector/Class_/RemoveUnusedDoctrineEntityMethodAndPropertyRector/RemoveUnusedDoctrineEntityMethodAndPropertyRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedDoctrineEntityMethodAndPropertyRectorTest extends Abstra $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Concat/RemoveConcatAutocastRector/RemoveConcatAutocastRectorTest.php b/rules-tests/DeadCode/Rector/Concat/RemoveConcatAutocastRector/RemoveConcatAutocastRectorTest.php index 2cd45c0b05c..5edba1151b3 100644 --- a/rules-tests/DeadCode/Rector/Concat/RemoveConcatAutocastRector/RemoveConcatAutocastRectorTest.php +++ b/rules-tests/DeadCode/Rector/Concat/RemoveConcatAutocastRector/RemoveConcatAutocastRectorTest.php @@ -19,6 +19,9 @@ final class RemoveConcatAutocastRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Expression/RemoveDeadStmtRector/RemoveDeadStmtRectorTest.php b/rules-tests/DeadCode/Rector/Expression/RemoveDeadStmtRector/RemoveDeadStmtRectorTest.php index 171f98d7654..2b4d10d6f77 100644 --- a/rules-tests/DeadCode/Rector/Expression/RemoveDeadStmtRector/RemoveDeadStmtRectorTest.php +++ b/rules-tests/DeadCode/Rector/Expression/RemoveDeadStmtRector/RemoveDeadStmtRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadStmtRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); @@ -32,6 +35,9 @@ final class RemoveDeadStmtRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideDataForTestKeepComments(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureRemovedComments'); diff --git a/rules-tests/DeadCode/Rector/Expression/SimplifyMirrorAssignRector/SimplifyMirrorAssignRectorTest.php b/rules-tests/DeadCode/Rector/Expression/SimplifyMirrorAssignRector/SimplifyMirrorAssignRectorTest.php index 85be26b1379..2dd884acb42 100644 --- a/rules-tests/DeadCode/Rector/Expression/SimplifyMirrorAssignRector/SimplifyMirrorAssignRectorTest.php +++ b/rules-tests/DeadCode/Rector/Expression/SimplifyMirrorAssignRector/SimplifyMirrorAssignRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyMirrorAssignRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/For_/RemoveDeadIfForeachForRector/RemoveDeadIfForeachForRectorTest.php b/rules-tests/DeadCode/Rector/For_/RemoveDeadIfForeachForRector/RemoveDeadIfForeachForRectorTest.php index ddcce2ce26a..5ad7cbf5ed7 100644 --- a/rules-tests/DeadCode/Rector/For_/RemoveDeadIfForeachForRector/RemoveDeadIfForeachForRectorTest.php +++ b/rules-tests/DeadCode/Rector/For_/RemoveDeadIfForeachForRector/RemoveDeadIfForeachForRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadIfForeachForRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/For_/RemoveDeadLoopRector/RemoveDeadLoopRectorTest.php b/rules-tests/DeadCode/Rector/For_/RemoveDeadLoopRector/RemoveDeadLoopRectorTest.php index 3236bea4298..0f22a856971 100644 --- a/rules-tests/DeadCode/Rector/For_/RemoveDeadLoopRector/RemoveDeadLoopRectorTest.php +++ b/rules-tests/DeadCode/Rector/For_/RemoveDeadLoopRector/RemoveDeadLoopRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadLoopRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Foreach_/RemoveUnusedForeachKeyRector/RemoveUnusedForeachKeyRectorTest.php b/rules-tests/DeadCode/Rector/Foreach_/RemoveUnusedForeachKeyRector/RemoveUnusedForeachKeyRectorTest.php index d2b2ec018f4..01aab1f64f9 100644 --- a/rules-tests/DeadCode/Rector/Foreach_/RemoveUnusedForeachKeyRector/RemoveUnusedForeachKeyRectorTest.php +++ b/rules-tests/DeadCode/Rector/Foreach_/RemoveUnusedForeachKeyRector/RemoveUnusedForeachKeyRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedForeachKeyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/FunctionLike/RemoveCodeAfterReturnRector/RemoveCodeAfterReturnRectorTest.php b/rules-tests/DeadCode/Rector/FunctionLike/RemoveCodeAfterReturnRector/RemoveCodeAfterReturnRectorTest.php index 9abee298058..0651f51ab8e 100644 --- a/rules-tests/DeadCode/Rector/FunctionLike/RemoveCodeAfterReturnRector/RemoveCodeAfterReturnRectorTest.php +++ b/rules-tests/DeadCode/Rector/FunctionLike/RemoveCodeAfterReturnRector/RemoveCodeAfterReturnRectorTest.php @@ -19,6 +19,9 @@ final class RemoveCodeAfterReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/FunctionLike/RemoveDeadReturnRector/RemoveDeadReturnRectorTest.php b/rules-tests/DeadCode/Rector/FunctionLike/RemoveDeadReturnRector/RemoveDeadReturnRectorTest.php index 33a333dc54b..9b27f96f324 100644 --- a/rules-tests/DeadCode/Rector/FunctionLike/RemoveDeadReturnRector/RemoveDeadReturnRectorTest.php +++ b/rules-tests/DeadCode/Rector/FunctionLike/RemoveDeadReturnRector/RemoveDeadReturnRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/FunctionLike/RemoveDuplicatedIfReturnRector/RemoveDuplicatedIfReturnRectorTest.php b/rules-tests/DeadCode/Rector/FunctionLike/RemoveDuplicatedIfReturnRector/RemoveDuplicatedIfReturnRectorTest.php index 84347db47eb..29f90e93b11 100644 --- a/rules-tests/DeadCode/Rector/FunctionLike/RemoveDuplicatedIfReturnRector/RemoveDuplicatedIfReturnRectorTest.php +++ b/rules-tests/DeadCode/Rector/FunctionLike/RemoveDuplicatedIfReturnRector/RemoveDuplicatedIfReturnRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDuplicatedIfReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/FunctionLike/RemoveOverriddenValuesRector/RemoveOverriddenValuesRectorTest.php b/rules-tests/DeadCode/Rector/FunctionLike/RemoveOverriddenValuesRector/RemoveOverriddenValuesRectorTest.php index 7e344e084a9..cbc4439991a 100644 --- a/rules-tests/DeadCode/Rector/FunctionLike/RemoveOverriddenValuesRector/RemoveOverriddenValuesRectorTest.php +++ b/rules-tests/DeadCode/Rector/FunctionLike/RemoveOverriddenValuesRector/RemoveOverriddenValuesRectorTest.php @@ -19,6 +19,9 @@ final class RemoveOverriddenValuesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Function_/RemoveUnusedFunctionRector/RemoveUnusedFunctionRectorTest.php b/rules-tests/DeadCode/Rector/Function_/RemoveUnusedFunctionRector/RemoveUnusedFunctionRectorTest.php index a653007d399..ab11563626a 100644 --- a/rules-tests/DeadCode/Rector/Function_/RemoveUnusedFunctionRector/RemoveUnusedFunctionRectorTest.php +++ b/rules-tests/DeadCode/Rector/Function_/RemoveUnusedFunctionRector/RemoveUnusedFunctionRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedFunctionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/RemoveAlwaysTrueIfConditionRectorTest.php b/rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/RemoveAlwaysTrueIfConditionRectorTest.php index 84a5708d724..229b67a4b5a 100644 --- a/rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/RemoveAlwaysTrueIfConditionRectorTest.php +++ b/rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/RemoveAlwaysTrueIfConditionRectorTest.php @@ -19,6 +19,9 @@ final class RemoveAlwaysTrueIfConditionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/RemoveDeadInstanceOfRectorTest.php b/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/RemoveDeadInstanceOfRectorTest.php index 0f73cde4ef6..92368c75273 100644 --- a/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/RemoveDeadInstanceOfRectorTest.php +++ b/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/RemoveDeadInstanceOfRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadInstanceOfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/If_/RemoveUnusedNonEmptyArrayBeforeForeachRector/RemoveUnusedNonEmptyArrayBeforeForeachRectorTest.php b/rules-tests/DeadCode/Rector/If_/RemoveUnusedNonEmptyArrayBeforeForeachRector/RemoveUnusedNonEmptyArrayBeforeForeachRectorTest.php index 3cd48b738c0..3e33025022a 100644 --- a/rules-tests/DeadCode/Rector/If_/RemoveUnusedNonEmptyArrayBeforeForeachRector/RemoveUnusedNonEmptyArrayBeforeForeachRectorTest.php +++ b/rules-tests/DeadCode/Rector/If_/RemoveUnusedNonEmptyArrayBeforeForeachRector/RemoveUnusedNonEmptyArrayBeforeForeachRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedNonEmptyArrayBeforeForeachRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/If_/SimplifyIfElseWithSameContentRector/SimplifyIfElseWithSameContentRectorTest.php b/rules-tests/DeadCode/Rector/If_/SimplifyIfElseWithSameContentRector/SimplifyIfElseWithSameContentRectorTest.php index deb8c8d24af..bb930005ae7 100644 --- a/rules-tests/DeadCode/Rector/If_/SimplifyIfElseWithSameContentRector/SimplifyIfElseWithSameContentRectorTest.php +++ b/rules-tests/DeadCode/Rector/If_/SimplifyIfElseWithSameContentRector/SimplifyIfElseWithSameContentRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyIfElseWithSameContentRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/If_/UnwrapFutureCompatibleIfFunctionExistsRector/UnwrapFutureCompatibleIfFunctionExistsRectorTest.php b/rules-tests/DeadCode/Rector/If_/UnwrapFutureCompatibleIfFunctionExistsRector/UnwrapFutureCompatibleIfFunctionExistsRectorTest.php index 60d8c36b200..86b5b6fa9ad 100644 --- a/rules-tests/DeadCode/Rector/If_/UnwrapFutureCompatibleIfFunctionExistsRector/UnwrapFutureCompatibleIfFunctionExistsRectorTest.php +++ b/rules-tests/DeadCode/Rector/If_/UnwrapFutureCompatibleIfFunctionExistsRector/UnwrapFutureCompatibleIfFunctionExistsRectorTest.php @@ -19,6 +19,9 @@ final class UnwrapFutureCompatibleIfFunctionExistsRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/If_/UnwrapFutureCompatibleIfPhpVersionRector/UnwrapFutureCompatibleIfPhpVersionRectorTest.php b/rules-tests/DeadCode/Rector/If_/UnwrapFutureCompatibleIfPhpVersionRector/UnwrapFutureCompatibleIfPhpVersionRectorTest.php index 450c7cb1fbd..5da392444c8 100644 --- a/rules-tests/DeadCode/Rector/If_/UnwrapFutureCompatibleIfPhpVersionRector/UnwrapFutureCompatibleIfPhpVersionRectorTest.php +++ b/rules-tests/DeadCode/Rector/If_/UnwrapFutureCompatibleIfPhpVersionRector/UnwrapFutureCompatibleIfPhpVersionRectorTest.php @@ -19,6 +19,9 @@ final class UnwrapFutureCompatibleIfPhpVersionRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/MethodCall/RemoveDefaultArgumentValueRector/RemoveDefaultArgumentValueRectorTest.php b/rules-tests/DeadCode/Rector/MethodCall/RemoveDefaultArgumentValueRector/RemoveDefaultArgumentValueRectorTest.php index eaeb892085a..bc3c1cf6511 100644 --- a/rules-tests/DeadCode/Rector/MethodCall/RemoveDefaultArgumentValueRector/RemoveDefaultArgumentValueRectorTest.php +++ b/rules-tests/DeadCode/Rector/MethodCall/RemoveDefaultArgumentValueRector/RemoveDefaultArgumentValueRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDefaultArgumentValueRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Php74Test.php b/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Php74Test.php index 07921b49254..af440dc1bf7 100644 --- a/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Php74Test.php +++ b/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Php74Test.php @@ -20,6 +20,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/RemoveEmptyMethodCallRectorTest.php b/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/RemoveEmptyMethodCallRectorTest.php index 7f3fad1cc0f..45a9f1ed43f 100644 --- a/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/RemoveEmptyMethodCallRectorTest.php +++ b/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/RemoveEmptyMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class RemoveEmptyMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Plus/RemoveDeadZeroAndOneOperationRector/RemoveDeadZeroAndOneOperationRectorTest.php b/rules-tests/DeadCode/Rector/Plus/RemoveDeadZeroAndOneOperationRector/RemoveDeadZeroAndOneOperationRectorTest.php index 50e2ef384ca..ba69facf36b 100644 --- a/rules-tests/DeadCode/Rector/Plus/RemoveDeadZeroAndOneOperationRector/RemoveDeadZeroAndOneOperationRectorTest.php +++ b/rules-tests/DeadCode/Rector/Plus/RemoveDeadZeroAndOneOperationRector/RemoveDeadZeroAndOneOperationRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadZeroAndOneOperationRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Property/RemoveSetterOnlyPropertyAndMethodCallRector/RemoveSetterOnlyPropertyAndMethodCallRectorTest.php b/rules-tests/DeadCode/Rector/Property/RemoveSetterOnlyPropertyAndMethodCallRector/RemoveSetterOnlyPropertyAndMethodCallRectorTest.php index 4fa008d47ef..749cfc77cca 100644 --- a/rules-tests/DeadCode/Rector/Property/RemoveSetterOnlyPropertyAndMethodCallRector/RemoveSetterOnlyPropertyAndMethodCallRectorTest.php +++ b/rules-tests/DeadCode/Rector/Property/RemoveSetterOnlyPropertyAndMethodCallRector/RemoveSetterOnlyPropertyAndMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class RemoveSetterOnlyPropertyAndMethodCallRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Property/RemoveUnusedPrivatePropertyRector/RemoveUnusedPrivatePropertyRectorTest.php b/rules-tests/DeadCode/Rector/Property/RemoveUnusedPrivatePropertyRector/RemoveUnusedPrivatePropertyRectorTest.php index 60d792134f5..e53f007b57f 100644 --- a/rules-tests/DeadCode/Rector/Property/RemoveUnusedPrivatePropertyRector/RemoveUnusedPrivatePropertyRectorTest.php +++ b/rules-tests/DeadCode/Rector/Property/RemoveUnusedPrivatePropertyRector/RemoveUnusedPrivatePropertyRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedPrivatePropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/RemoveNullPropertyInitializationRectorTest.php b/rules-tests/DeadCode/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/RemoveNullPropertyInitializationRectorTest.php index ad459f0dc7e..915e970fd92 100644 --- a/rules-tests/DeadCode/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/RemoveNullPropertyInitializationRectorTest.php +++ b/rules-tests/DeadCode/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/RemoveNullPropertyInitializationRectorTest.php @@ -19,6 +19,9 @@ final class RemoveNullPropertyInitializationRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php b/rules-tests/DeadCode/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php index 4dcd0b471ef..ca64765283e 100644 --- a/rules-tests/DeadCode/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php +++ b/rules-tests/DeadCode/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php @@ -19,6 +19,9 @@ final class TypedPropertiesRemoveNullPropertyInitializationRectorTest extends Ab $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureTypedProperties'); diff --git a/rules-tests/DeadCode/Rector/Return_/RemoveDeadConditionAboveReturnRector/RemoveDeadConditionAboveReturnRectorTest.php b/rules-tests/DeadCode/Rector/Return_/RemoveDeadConditionAboveReturnRector/RemoveDeadConditionAboveReturnRectorTest.php index e55113d0c8c..cf82ed94334 100644 --- a/rules-tests/DeadCode/Rector/Return_/RemoveDeadConditionAboveReturnRector/RemoveDeadConditionAboveReturnRectorTest.php +++ b/rules-tests/DeadCode/Rector/Return_/RemoveDeadConditionAboveReturnRector/RemoveDeadConditionAboveReturnRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadConditionAboveReturnRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector/RemoveParentCallWithoutParentRectorTest.php b/rules-tests/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector/RemoveParentCallWithoutParentRectorTest.php index b617a016d90..ca829c46ec8 100644 --- a/rules-tests/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector/RemoveParentCallWithoutParentRectorTest.php +++ b/rules-tests/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector/RemoveParentCallWithoutParentRectorTest.php @@ -20,6 +20,9 @@ final class RemoveParentCallWithoutParentRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Stmt/RemoveUnreachableStatementRector/RemoveUnreachableStatementRectorTest.php b/rules-tests/DeadCode/Rector/Stmt/RemoveUnreachableStatementRector/RemoveUnreachableStatementRectorTest.php index 25818bc0001..7825ab98355 100644 --- a/rules-tests/DeadCode/Rector/Stmt/RemoveUnreachableStatementRector/RemoveUnreachableStatementRectorTest.php +++ b/rules-tests/DeadCode/Rector/Stmt/RemoveUnreachableStatementRector/RemoveUnreachableStatementRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnreachableStatementRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector/RemoveDuplicatedCaseInSwitchRectorTest.php b/rules-tests/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector/RemoveDuplicatedCaseInSwitchRectorTest.php index e49d87b1e12..9857411e07b 100644 --- a/rules-tests/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector/RemoveDuplicatedCaseInSwitchRectorTest.php +++ b/rules-tests/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector/RemoveDuplicatedCaseInSwitchRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDuplicatedCaseInSwitchRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/Ternary/TernaryToBooleanOrFalseToBooleanAndRector/TernaryToBooleanOrFalseToBooleanAndRectorTest.php b/rules-tests/DeadCode/Rector/Ternary/TernaryToBooleanOrFalseToBooleanAndRector/TernaryToBooleanOrFalseToBooleanAndRectorTest.php index a84f0384eaf..406ff63ea7c 100644 --- a/rules-tests/DeadCode/Rector/Ternary/TernaryToBooleanOrFalseToBooleanAndRector/TernaryToBooleanOrFalseToBooleanAndRectorTest.php +++ b/rules-tests/DeadCode/Rector/Ternary/TernaryToBooleanOrFalseToBooleanAndRector/TernaryToBooleanOrFalseToBooleanAndRectorTest.php @@ -19,6 +19,9 @@ final class TernaryToBooleanOrFalseToBooleanAndRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadCode/Rector/TryCatch/RemoveDeadTryCatchRector/RemoveDeadTryCatchRectorTest.php b/rules-tests/DeadCode/Rector/TryCatch/RemoveDeadTryCatchRector/RemoveDeadTryCatchRectorTest.php index a0641c66c13..265fa0a9478 100644 --- a/rules-tests/DeadCode/Rector/TryCatch/RemoveDeadTryCatchRector/RemoveDeadTryCatchRectorTest.php +++ b/rules-tests/DeadCode/Rector/TryCatch/RemoveDeadTryCatchRector/RemoveDeadTryCatchRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDeadTryCatchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadDocBlock/Rector/ClassLike/RemoveAnnotationRector/RemoveAnnotationRectorTest.php b/rules-tests/DeadDocBlock/Rector/ClassLike/RemoveAnnotationRector/RemoveAnnotationRectorTest.php index 80233651a0f..a561f53a2d1 100644 --- a/rules-tests/DeadDocBlock/Rector/ClassLike/RemoveAnnotationRector/RemoveAnnotationRectorTest.php +++ b/rules-tests/DeadDocBlock/Rector/ClassLike/RemoveAnnotationRector/RemoveAnnotationRectorTest.php @@ -18,6 +18,9 @@ final class RemoveAnnotationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadDocBlock/Rector/Node/RemoveNonExistingVarAnnotationRector/RemoveNonExistingVarAnnotationRectorTest.php b/rules-tests/DeadDocBlock/Rector/Node/RemoveNonExistingVarAnnotationRector/RemoveNonExistingVarAnnotationRectorTest.php index 53b7c25b1db..a67e50b5d5c 100644 --- a/rules-tests/DeadDocBlock/Rector/Node/RemoveNonExistingVarAnnotationRector/RemoveNonExistingVarAnnotationRectorTest.php +++ b/rules-tests/DeadDocBlock/Rector/Node/RemoveNonExistingVarAnnotationRector/RemoveNonExistingVarAnnotationRectorTest.php @@ -19,6 +19,9 @@ final class RemoveNonExistingVarAnnotationRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DeadDocBlock/Rector/Property/RemoveUselessVarTagRector/RemoveUselessVarTagRectorTest.php b/rules-tests/DeadDocBlock/Rector/Property/RemoveUselessVarTagRector/RemoveUselessVarTagRectorTest.php index 3b2236701c4..bdfaca933c8 100644 --- a/rules-tests/DeadDocBlock/Rector/Property/RemoveUselessVarTagRector/RemoveUselessVarTagRectorTest.php +++ b/rules-tests/DeadDocBlock/Rector/Property/RemoveUselessVarTagRector/RemoveUselessVarTagRectorTest.php @@ -20,6 +20,9 @@ final class RemoveUselessVarTagRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/ClassMethod/NormalToFluentRector/NormalToFluentRectorTest.php b/rules-tests/Defluent/Rector/ClassMethod/NormalToFluentRector/NormalToFluentRectorTest.php index 4f7f6aa13d4..06ac46a3da5 100644 --- a/rules-tests/Defluent/Rector/ClassMethod/NormalToFluentRector/NormalToFluentRectorTest.php +++ b/rules-tests/Defluent/Rector/ClassMethod/NormalToFluentRector/NormalToFluentRectorTest.php @@ -18,6 +18,9 @@ final class NormalToFluentRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/ClassMethod/ReturnThisRemoveRector/ReturnThisRemoveRectorTest.php b/rules-tests/Defluent/Rector/ClassMethod/ReturnThisRemoveRector/ReturnThisRemoveRectorTest.php index 4efd9631807..c2abf27c460 100644 --- a/rules-tests/Defluent/Rector/ClassMethod/ReturnThisRemoveRector/ReturnThisRemoveRectorTest.php +++ b/rules-tests/Defluent/Rector/ClassMethod/ReturnThisRemoveRector/ReturnThisRemoveRectorTest.php @@ -19,6 +19,9 @@ final class ReturnThisRemoveRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/MethodCall/FluentChainMethodCallToNormalMethodCallRector/FluentChainMethodCallToNormalMethodCallRectorTest.php b/rules-tests/Defluent/Rector/MethodCall/FluentChainMethodCallToNormalMethodCallRector/FluentChainMethodCallToNormalMethodCallRectorTest.php index b38fa7a4a29..3d6666dc815 100644 --- a/rules-tests/Defluent/Rector/MethodCall/FluentChainMethodCallToNormalMethodCallRector/FluentChainMethodCallToNormalMethodCallRectorTest.php +++ b/rules-tests/Defluent/Rector/MethodCall/FluentChainMethodCallToNormalMethodCallRector/FluentChainMethodCallToNormalMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class FluentChainMethodCallToNormalMethodCallRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/MethodCall/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest.php b/rules-tests/Defluent/Rector/MethodCall/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest.php index 5fff63100b6..2173a2f9acd 100644 --- a/rules-tests/Defluent/Rector/MethodCall/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest.php +++ b/rules-tests/Defluent/Rector/MethodCall/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class InArgChainFluentMethodCallToStandaloneMethodCallRectorTest extends A $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/MethodCall/MethodCallOnSetterMethodCallToStandaloneAssignRector/MethodCallOnSetterMethodCallToStandaloneAssignRectorTest.php b/rules-tests/Defluent/Rector/MethodCall/MethodCallOnSetterMethodCallToStandaloneAssignRector/MethodCallOnSetterMethodCallToStandaloneAssignRectorTest.php index 36eb9ffbe18..891d24e731a 100644 --- a/rules-tests/Defluent/Rector/MethodCall/MethodCallOnSetterMethodCallToStandaloneAssignRector/MethodCallOnSetterMethodCallToStandaloneAssignRectorTest.php +++ b/rules-tests/Defluent/Rector/MethodCall/MethodCallOnSetterMethodCallToStandaloneAssignRector/MethodCallOnSetterMethodCallToStandaloneAssignRectorTest.php @@ -19,6 +19,9 @@ final class MethodCallOnSetterMethodCallToStandaloneAssignRectorTest extends Abs $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/MethodCall/NewFluentChainMethodCallToNonFluentRector/NewFluentChainMethodCallToNonFluentRectorTest.php b/rules-tests/Defluent/Rector/MethodCall/NewFluentChainMethodCallToNonFluentRector/NewFluentChainMethodCallToNonFluentRectorTest.php index 7d5621d802d..d153baadb68 100644 --- a/rules-tests/Defluent/Rector/MethodCall/NewFluentChainMethodCallToNonFluentRector/NewFluentChainMethodCallToNonFluentRectorTest.php +++ b/rules-tests/Defluent/Rector/MethodCall/NewFluentChainMethodCallToNonFluentRector/NewFluentChainMethodCallToNonFluentRectorTest.php @@ -19,6 +19,9 @@ final class NewFluentChainMethodCallToNonFluentRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/Return_/DefluentReturnMethodCallRector/DefluentReturnMethodCallRectorTest.php b/rules-tests/Defluent/Rector/Return_/DefluentReturnMethodCallRector/DefluentReturnMethodCallRectorTest.php index cfc5027c872..38f1f431400 100644 --- a/rules-tests/Defluent/Rector/Return_/DefluentReturnMethodCallRector/DefluentReturnMethodCallRectorTest.php +++ b/rules-tests/Defluent/Rector/Return_/DefluentReturnMethodCallRector/DefluentReturnMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class DefluentReturnMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/Return_/ReturnFluentChainMethodCallToNormalMethodCallRector/ReturnFluentChainMethodCallToNormalMethodCallRectorTest.php b/rules-tests/Defluent/Rector/Return_/ReturnFluentChainMethodCallToNormalMethodCallRector/ReturnFluentChainMethodCallToNormalMethodCallRectorTest.php index 54f5b37f7b1..922b3ab7eb4 100644 --- a/rules-tests/Defluent/Rector/Return_/ReturnFluentChainMethodCallToNormalMethodCallRector/ReturnFluentChainMethodCallToNormalMethodCallRectorTest.php +++ b/rules-tests/Defluent/Rector/Return_/ReturnFluentChainMethodCallToNormalMethodCallRector/ReturnFluentChainMethodCallToNormalMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class ReturnFluentChainMethodCallToNormalMethodCallRectorTest extends Abst $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Defluent/Rector/Return_/ReturnNewFluentChainMethodCallToNonFluentRector/ReturnNewFluentChainMethodCallToNonFluentRectorTest.php b/rules-tests/Defluent/Rector/Return_/ReturnNewFluentChainMethodCallToNonFluentRector/ReturnNewFluentChainMethodCallToNonFluentRectorTest.php index 96749c297fd..26e245db35e 100644 --- a/rules-tests/Defluent/Rector/Return_/ReturnNewFluentChainMethodCallToNonFluentRector/ReturnNewFluentChainMethodCallToNonFluentRectorTest.php +++ b/rules-tests/Defluent/Rector/Return_/ReturnNewFluentChainMethodCallToNonFluentRector/ReturnNewFluentChainMethodCallToNonFluentRectorTest.php @@ -19,6 +19,9 @@ final class ReturnNewFluentChainMethodCallToNonFluentRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DependencyInjection/Rector/ClassMethod/AddMethodParentCallRector/AddMethodParentCallRectorTest.php b/rules-tests/DependencyInjection/Rector/ClassMethod/AddMethodParentCallRector/AddMethodParentCallRectorTest.php index e036d25a99d..49423d15432 100644 --- a/rules-tests/DependencyInjection/Rector/ClassMethod/AddMethodParentCallRector/AddMethodParentCallRectorTest.php +++ b/rules-tests/DependencyInjection/Rector/ClassMethod/AddMethodParentCallRector/AddMethodParentCallRectorTest.php @@ -18,6 +18,9 @@ final class AddMethodParentCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DependencyInjection/Rector/Class_/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php b/rules-tests/DependencyInjection/Rector/Class_/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php index f5bed9c7c05..dfdbf4a9d19 100644 --- a/rules-tests/DependencyInjection/Rector/Class_/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php +++ b/rules-tests/DependencyInjection/Rector/Class_/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php @@ -18,6 +18,9 @@ final class ActionInjectionToConstructorInjectionRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DependencyInjection/Rector/Class_/MultiParentingToAbstractDependencyRector/MultiParentingToAbstractDependencyRectorTest.php b/rules-tests/DependencyInjection/Rector/Class_/MultiParentingToAbstractDependencyRector/MultiParentingToAbstractDependencyRectorTest.php index 5a7f9ccbd44..6817b5deae0 100644 --- a/rules-tests/DependencyInjection/Rector/Class_/MultiParentingToAbstractDependencyRector/MultiParentingToAbstractDependencyRectorTest.php +++ b/rules-tests/DependencyInjection/Rector/Class_/MultiParentingToAbstractDependencyRector/MultiParentingToAbstractDependencyRectorTest.php @@ -18,6 +18,9 @@ final class MultiParentingToAbstractDependencyRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DependencyInjection/Rector/Class_/MultiParentingToAbstractDependencyRector/SymfonyMultiParentingToAbstractDependencyRectorTest.php b/rules-tests/DependencyInjection/Rector/Class_/MultiParentingToAbstractDependencyRector/SymfonyMultiParentingToAbstractDependencyRectorTest.php index 73acbfc7098..a90d5538624 100644 --- a/rules-tests/DependencyInjection/Rector/Class_/MultiParentingToAbstractDependencyRector/SymfonyMultiParentingToAbstractDependencyRectorTest.php +++ b/rules-tests/DependencyInjection/Rector/Class_/MultiParentingToAbstractDependencyRector/SymfonyMultiParentingToAbstractDependencyRectorTest.php @@ -18,6 +18,9 @@ final class SymfonyMultiParentingToAbstractDependencyRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureSymfony'); diff --git a/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/AnnotatedPropertyInjectToConstructorInjectionRectorTest.php b/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/AnnotatedPropertyInjectToConstructorInjectionRectorTest.php index d44009aa698..e9fb5519cde 100644 --- a/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/AnnotatedPropertyInjectToConstructorInjectionRectorTest.php +++ b/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/AnnotatedPropertyInjectToConstructorInjectionRectorTest.php @@ -19,6 +19,9 @@ final class AnnotatedPropertyInjectToConstructorInjectionRectorTest extends Abst $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/Php74Test.php b/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/Php74Test.php index 3ce1f093ef6..6af81ae50cb 100644 --- a/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/Php74Test.php +++ b/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/Php74Test.php @@ -20,6 +20,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/TagValueNodesTest.php b/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/TagValueNodesTest.php index e15e586eec2..7d5657bd6b2 100644 --- a/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/TagValueNodesTest.php +++ b/rules-tests/DependencyInjection/Rector/Property/AnnotatedPropertyInjectToConstructorInjectionRector/TagValueNodesTest.php @@ -18,6 +18,9 @@ final class TagValueNodesTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureTagValueNodes'); diff --git a/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/Fixture/do_not_change_other_methods.php.inc b/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/Fixture/do_not_change_other_methods.php.inc index 547b955d97c..c2cab7c5b9e 100644 --- a/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/Fixture/do_not_change_other_methods.php.inc +++ b/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/Fixture/do_not_change_other_methods.php.inc @@ -36,7 +36,7 @@ final class DoNotChangeOtherMethods extends ServiceEntityRepository * @var \Doctrine\ORM\EntityRepository<\Rector\Tests\Doctrine\Rector\ClassMethod\ServiceEntityRepositoryParentCallToDIRector\Source\Project> */ private \Doctrine\ORM\EntityRepository $repository; - public function __construct(private \Doctrine\ORM\EntityManagerInterface $entityManager) + public function __construct(\Doctrine\ORM\EntityManagerInterface $entityManager) { $this->repository = $entityManager->getRepository(Project::class); } diff --git a/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/Fixture/fixture.php.inc b/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/Fixture/fixture.php.inc index d05e1f0a5c1..1e3e0d19e72 100644 --- a/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/Fixture/fixture.php.inc +++ b/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/Fixture/fixture.php.inc @@ -30,7 +30,7 @@ final class ProjectRepository extends ServiceEntityRepository * @var \Doctrine\ORM\EntityRepository<\Rector\Tests\Doctrine\Rector\ClassMethod\ServiceEntityRepositoryParentCallToDIRector\Source\Project> */ private \Doctrine\ORM\EntityRepository $repository; - public function __construct(private \Doctrine\ORM\EntityManagerInterface $entityManager) + public function __construct(\Doctrine\ORM\EntityManagerInterface $entityManager) { $this->repository = $entityManager->getRepository(Project::class); } diff --git a/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/ServiceEntityRepositoryParentCallToDIRectorTest.php b/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/ServiceEntityRepositoryParentCallToDIRectorTest.php index 39d1cd9017c..8e9d64764b8 100644 --- a/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/ServiceEntityRepositoryParentCallToDIRectorTest.php +++ b/rules-tests/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector/ServiceEntityRepositoryParentCallToDIRectorTest.php @@ -19,6 +19,9 @@ final class ServiceEntityRepositoryParentCallToDIRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Doctrine/Rector/Class_/AddEntityIdByConditionRector/AddEntityIdByConditionRectorTest.php b/rules-tests/Doctrine/Rector/Class_/AddEntityIdByConditionRector/AddEntityIdByConditionRectorTest.php index 1fa4c9254f8..72feeb2a99a 100644 --- a/rules-tests/Doctrine/Rector/Class_/AddEntityIdByConditionRector/AddEntityIdByConditionRectorTest.php +++ b/rules-tests/Doctrine/Rector/Class_/AddEntityIdByConditionRector/AddEntityIdByConditionRectorTest.php @@ -18,6 +18,9 @@ final class AddEntityIdByConditionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Doctrine/Rector/Class_/ManagerRegistryGetManagerToEntityManagerRector/ManagerRegistryGetManagerToEntityManagerRectorTest.php b/rules-tests/Doctrine/Rector/Class_/ManagerRegistryGetManagerToEntityManagerRector/ManagerRegistryGetManagerToEntityManagerRectorTest.php index f29feb7f5e9..020d12a2408 100644 --- a/rules-tests/Doctrine/Rector/Class_/ManagerRegistryGetManagerToEntityManagerRector/ManagerRegistryGetManagerToEntityManagerRectorTest.php +++ b/rules-tests/Doctrine/Rector/Class_/ManagerRegistryGetManagerToEntityManagerRector/ManagerRegistryGetManagerToEntityManagerRectorTest.php @@ -19,6 +19,9 @@ final class ManagerRegistryGetManagerToEntityManagerRectorTest extends AbstractR $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Doctrine/Rector/Class_/RemoveRepositoryFromEntityAnnotationRector/RemoveRepositoryFromEntityAnnotationRectorTest.php b/rules-tests/Doctrine/Rector/Class_/RemoveRepositoryFromEntityAnnotationRector/RemoveRepositoryFromEntityAnnotationRectorTest.php index 830ad00ca64..0426357f7e9 100644 --- a/rules-tests/Doctrine/Rector/Class_/RemoveRepositoryFromEntityAnnotationRector/RemoveRepositoryFromEntityAnnotationRectorTest.php +++ b/rules-tests/Doctrine/Rector/Class_/RemoveRepositoryFromEntityAnnotationRector/RemoveRepositoryFromEntityAnnotationRectorTest.php @@ -19,6 +19,9 @@ final class RemoveRepositoryFromEntityAnnotationRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Doctrine/Rector/MethodCall/EntityAliasToClassConstantReferenceRector/EntityAliasToClassConstantReferenceRectorTest.php b/rules-tests/Doctrine/Rector/MethodCall/EntityAliasToClassConstantReferenceRector/EntityAliasToClassConstantReferenceRectorTest.php index 71a48bd14c4..4a2fd3f6b0c 100644 --- a/rules-tests/Doctrine/Rector/MethodCall/EntityAliasToClassConstantReferenceRector/EntityAliasToClassConstantReferenceRectorTest.php +++ b/rules-tests/Doctrine/Rector/MethodCall/EntityAliasToClassConstantReferenceRector/EntityAliasToClassConstantReferenceRectorTest.php @@ -18,6 +18,9 @@ final class EntityAliasToClassConstantReferenceRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/ClassMethod/MakeEntityDateTimePropertyDateTimeInterfaceRector/MakeEntityDateTimePropertyDateTimeInterfaceRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/ClassMethod/MakeEntityDateTimePropertyDateTimeInterfaceRector/MakeEntityDateTimePropertyDateTimeInterfaceRectorTest.php index 249334ad4ef..cded20f0453 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/ClassMethod/MakeEntityDateTimePropertyDateTimeInterfaceRector/MakeEntityDateTimePropertyDateTimeInterfaceRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/ClassMethod/MakeEntityDateTimePropertyDateTimeInterfaceRector/MakeEntityDateTimePropertyDateTimeInterfaceRectorTest.php @@ -19,6 +19,9 @@ final class MakeEntityDateTimePropertyDateTimeInterfaceRectorTest extends Abstra $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/ClassMethod/MakeEntitySetterNullabilityInSyncWithPropertyRector/MakeEntitySetterNullabilityInSyncWithPropertyRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/ClassMethod/MakeEntitySetterNullabilityInSyncWithPropertyRector/MakeEntitySetterNullabilityInSyncWithPropertyRectorTest.php index 0dbf38a139f..d45b14682b2 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/ClassMethod/MakeEntitySetterNullabilityInSyncWithPropertyRector/MakeEntitySetterNullabilityInSyncWithPropertyRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/ClassMethod/MakeEntitySetterNullabilityInSyncWithPropertyRector/MakeEntitySetterNullabilityInSyncWithPropertyRectorTest.php @@ -19,6 +19,9 @@ final class MakeEntitySetterNullabilityInSyncWithPropertyRectorTest extends Abst $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/Class_/InitializeDefaultEntityCollectionRector/InitializeDefaultEntityCollectionRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/Class_/InitializeDefaultEntityCollectionRector/InitializeDefaultEntityCollectionRectorTest.php index 4c3bd64d11f..47965de6c26 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/Class_/InitializeDefaultEntityCollectionRector/InitializeDefaultEntityCollectionRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/Class_/InitializeDefaultEntityCollectionRector/InitializeDefaultEntityCollectionRectorTest.php @@ -19,6 +19,9 @@ final class InitializeDefaultEntityCollectionRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector/MoveCurrentDateTimeDefaultInEntityToConstructorRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector/MoveCurrentDateTimeDefaultInEntityToConstructorRectorTest.php index eb575953e91..92487b017c5 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector/MoveCurrentDateTimeDefaultInEntityToConstructorRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector/MoveCurrentDateTimeDefaultInEntityToConstructorRectorTest.php @@ -19,6 +19,9 @@ final class MoveCurrentDateTimeDefaultInEntityToConstructorRectorTest extends Ab $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/Class_/RemoveRedundantDefaultClassAnnotationValuesRector/RemoveRedundantDefaultClassAnnotationValuesRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/Class_/RemoveRedundantDefaultClassAnnotationValuesRector/RemoveRedundantDefaultClassAnnotationValuesRectorTest.php index bc6b3e5db38..f9a302d203c 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/Class_/RemoveRedundantDefaultClassAnnotationValuesRector/RemoveRedundantDefaultClassAnnotationValuesRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/Class_/RemoveRedundantDefaultClassAnnotationValuesRector/RemoveRedundantDefaultClassAnnotationValuesRectorTest.php @@ -19,6 +19,9 @@ final class RemoveRedundantDefaultClassAnnotationValuesRectorTest extends Abstra $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php b/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php deleted file mode 100644 index ec88d14c6d1..00000000000 --- a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php +++ /dev/null @@ -1,34 +0,0 @@ -doTestFileInfo($fileInfo); - } - - public function provideData(): Iterator - { - return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - protected function provideConfigFilePath(): string - { - return __DIR__ . '/config/configured_rule.php'; - } -} diff --git a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/PostController.php b/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/PostController.php deleted file mode 100644 index 86be6d001cf..00000000000 --- a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/PostController.php +++ /dev/null @@ -1,48 +0,0 @@ -getDoctrine()->getManager(); - $em->getRepository(Post::class)->findSomething($id); - - return new Response(); - } -} - -?> ------ -postRepository = $postRepository; - } - public function anythingAction(int $id): Response - { - $em = $this->getDoctrine()->getManager(); - $this->postRepository->findSomething($id); - - return new Response(); - } -} - -?> diff --git a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Source/Entity/Post.php b/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Source/Entity/Post.php deleted file mode 100644 index 70e6740d8b5..00000000000 --- a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Source/Entity/Post.php +++ /dev/null @@ -1,9 +0,0 @@ -services(); - $services->set( - # order matters, this needs to be first to correctly detect parent repository - MoveRepositoryFromParentToConstructorRector::class - ); - $services->set(ReplaceParentRepositoryCallsByRepositoryPropertyRector::class); - $services->set(RemoveRepositoryFromEntityAnnotationRector::class); -}; diff --git a/rules-tests/DoctrineCodeQuality/Rector/MethodCall/ChangeSetParametersArrayToArrayCollectionRector/ChangeSetParametersArrayToArrayCollectionRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/MethodCall/ChangeSetParametersArrayToArrayCollectionRector/ChangeSetParametersArrayToArrayCollectionRectorTest.php index 0d4f0c0878a..e99a7fa9683 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/MethodCall/ChangeSetParametersArrayToArrayCollectionRector/ChangeSetParametersArrayToArrayCollectionRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/MethodCall/ChangeSetParametersArrayToArrayCollectionRector/ChangeSetParametersArrayToArrayCollectionRectorTest.php @@ -19,6 +19,9 @@ final class ChangeSetParametersArrayToArrayCollectionRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/Property/ChangeBigIntEntityPropertyToIntTypeRector/ChangeBigIntEntityPropertyToIntTypeRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/Property/ChangeBigIntEntityPropertyToIntTypeRector/ChangeBigIntEntityPropertyToIntTypeRectorTest.php index b99edfd7170..0ad9edf5a03 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/Property/ChangeBigIntEntityPropertyToIntTypeRector/ChangeBigIntEntityPropertyToIntTypeRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/Property/ChangeBigIntEntityPropertyToIntTypeRector/ChangeBigIntEntityPropertyToIntTypeRectorTest.php @@ -19,6 +19,9 @@ final class ChangeBigIntEntityPropertyToIntTypeRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector/CorrectDefaultTypesOnEntityPropertyRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector/CorrectDefaultTypesOnEntityPropertyRectorTest.php index 1d482d53b0c..d74415cf595 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector/CorrectDefaultTypesOnEntityPropertyRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector/CorrectDefaultTypesOnEntityPropertyRectorTest.php @@ -19,6 +19,9 @@ final class CorrectDefaultTypesOnEntityPropertyRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector/ImproveDoctrineCollectionDocTypeInEntityRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector/ImproveDoctrineCollectionDocTypeInEntityRectorTest.php index 41cee564934..537bd834a2b 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector/ImproveDoctrineCollectionDocTypeInEntityRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector/ImproveDoctrineCollectionDocTypeInEntityRectorTest.php @@ -19,6 +19,9 @@ final class ImproveDoctrineCollectionDocTypeInEntityRectorTest extends AbstractR $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Rector/Property/RemoveRedundantDefaultPropertyAnnotationValuesRector/RemoveRedundantDefaultPropertyAnnotationValuesRectorTest.php b/rules-tests/DoctrineCodeQuality/Rector/Property/RemoveRedundantDefaultPropertyAnnotationValuesRector/RemoveRedundantDefaultPropertyAnnotationValuesRectorTest.php index f9fe15e4460..490a0daaea8 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/Property/RemoveRedundantDefaultPropertyAnnotationValuesRector/RemoveRedundantDefaultPropertyAnnotationValuesRectorTest.php +++ b/rules-tests/DoctrineCodeQuality/Rector/Property/RemoveRedundantDefaultPropertyAnnotationValuesRector/RemoveRedundantDefaultPropertyAnnotationValuesRectorTest.php @@ -19,6 +19,9 @@ final class RemoveRedundantDefaultPropertyAnnotationValuesRectorTest extends Abs $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/DoctrineRepositoryAsServiceSetTest.php b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/DoctrineRepositoryAsServiceSetTest.php index 4d84961695e..cc0d6f5de20 100644 --- a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/DoctrineRepositoryAsServiceSetTest.php +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/DoctrineRepositoryAsServiceSetTest.php @@ -18,6 +18,9 @@ final class DoctrineRepositoryAsServiceSetTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/combined_two_methods_service_entity_repository.php.inc b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/combined_two_methods_service_entity_repository.php.inc index 9af8864cc21..12dfab35c4f 100644 --- a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/combined_two_methods_service_entity_repository.php.inc +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/combined_two_methods_service_entity_repository.php.inc @@ -23,7 +23,7 @@ final class CombinedTwomethodsServiceEntityRepository extends ServiceEntityRepos $this->_em->flush(); } - /** @return User[] */ + /** @return Car[] */ public function findByEnabled(bool $enabled): array { return $this->findBy([ @@ -52,7 +52,7 @@ final class CombinedTwomethodsServiceEntityRepository private \Doctrine\ORM\EntityRepository $repository; public function __construct(private \Doctrine\ORM\EntityManagerInterface $entityManager) { - $this->repository = $entityManager->getRepository(Car::class); + $this->repository = $entityManager->getRepository(\Rector\Tests\DoctrineCodeQuality\Set\DoctrineRepositoryAsServiceSet\Source\Car::class); } public function deleteByEnabled(): void @@ -63,7 +63,7 @@ final class CombinedTwomethodsServiceEntityRepository $this->entityManager->flush(); } - /** @return User[] */ + /** @return Car[] */ public function findByEnabled(bool $enabled): array { return $this->repository->findBy([ diff --git a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/create_query_service_entity_repository.php.inc b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/create_query_service_entity_repository.php.inc index cd0e616c049..a0016f42827 100644 --- a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/create_query_service_entity_repository.php.inc +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/create_query_service_entity_repository.php.inc @@ -48,7 +48,7 @@ final class CreateQueryServiceEntityRepository private \Doctrine\ORM\EntityRepository $repository; public function __construct(private \Doctrine\ORM\EntityManagerInterface $entityManager) { - $this->repository = $entityManager->getRepository(Car::class); + $this->repository = $entityManager->getRepository(\Rector\Tests\DoctrineCodeQuality\Set\DoctrineRepositoryAsServiceSet\Source\Car::class); } public function findOneById(int $id): ?object diff --git a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/find_one_by_service_entity_repository.php.inc b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/find_one_by_service_entity_repository.php.inc index d90aad90ee8..ed3cb5bd448 100644 --- a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/find_one_by_service_entity_repository.php.inc +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/find_one_by_service_entity_repository.php.inc @@ -43,7 +43,7 @@ final class FindOneByServiceEntityRepository private \Doctrine\ORM\EntityRepository $repository; public function __construct(private \Doctrine\ORM\EntityManagerInterface $entityManager) { - $this->repository = $entityManager->getRepository(Car::class); + $this->repository = $entityManager->getRepository(\Rector\Tests\DoctrineCodeQuality\Set\DoctrineRepositoryAsServiceSet\Source\Car::class); } public function findOneByEmail(string $email): ?object diff --git a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/first_post_repository.php.inc b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/first_post_repository.php.inc similarity index 61% rename from rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/first_post_repository.php.inc rename to rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/first_post_repository.php.inc index c475cb52a2f..178bf970b50 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/first_post_repository.php.inc +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/first_post_repository.php.inc @@ -1,8 +1,8 @@ + */ private \Doctrine\ORM\EntityRepository $repository; public function __construct(\Doctrine\ORM\EntityManagerInterface $entityManager) { - $this->repository = $entityManager->getRepository(\Rector\Tests\DoctrineCodeQuality\Rector\DoctrineRepositoryAsService\Source\Entity\Post::class); + $this->repository = $entityManager->getRepository(\Rector\Tests\DoctrineCodeQuality\Set\DoctrineRepositoryAsServiceSet\Source\Entity\Post::class); } /** * Our custom method diff --git a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/post_controller.php.inc b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/post_controller.php.inc new file mode 100644 index 00000000000..546f7e584d1 --- /dev/null +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/post_controller.php.inc @@ -0,0 +1,44 @@ +getDoctrine()->getManager(); + $em->getRepository(Post::class)->find($id); + + return new Response(); + } +} + +?> +----- +getDoctrine()->getManager(); + $this->postRepository->find($id); + + return new Response(); + } +} + +?> diff --git a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/set_password_service_entity_repository.php.inc b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/set_password_service_entity_repository.php.inc index 635dc73d41c..3ee099e2b14 100644 --- a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/set_password_service_entity_repository.php.inc +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/set_password_service_entity_repository.php.inc @@ -43,7 +43,7 @@ final class SetPasswordServiceEntityRepository private \Doctrine\ORM\EntityRepository $repository; public function __construct(private \Doctrine\ORM\EntityManagerInterface $entityManager) { - $this->repository = $entityManager->getRepository(Car::class); + $this->repository = $entityManager->getRepository(\Rector\Tests\DoctrineCodeQuality\Set\DoctrineRepositoryAsServiceSet\Source\Car::class); } /** @param User $user */ diff --git a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/skip_test_case.php.inc b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/skip_test_case.php.inc similarity index 80% rename from rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/skip_test_case.php.inc rename to rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/skip_test_case.php.inc index c359922b7b1..7e8cff198f7 100644 --- a/rules-tests/DoctrineCodeQuality/Rector/DoctrineRepositoryAsService/Fixture/skip_test_case.php.inc +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/skip_test_case.php.inc @@ -1,6 +1,6 @@ + */ private \Doctrine\ORM\EntityRepository $repository; public function __construct(\Doctrine\ORM\EntityManagerInterface $entityManager) { diff --git a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/some_service_entity_repository.php.inc b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/some_service_entity_repository.php.inc index c305539fc6a..ee99db98109 100644 --- a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/some_service_entity_repository.php.inc +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Fixture/some_service_entity_repository.php.inc @@ -43,7 +43,7 @@ final class SomeServiceEntityRepository private \Doctrine\ORM\EntityRepository $repository; public function __construct(private \Doctrine\ORM\EntityManagerInterface $entityManager) { - $this->repository = $entityManager->getRepository(User::class); + $this->repository = $entityManager->getRepository(\Rector\Tests\DoctrineCodeQuality\Set\DoctrineRepositoryAsServiceSet\Source\User::class); } public function save(User $user): void diff --git a/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Source/Entity/Post.php b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Source/Entity/Post.php new file mode 100644 index 00000000000..c18f72915b1 --- /dev/null +++ b/rules-tests/DoctrineCodeQuality/Set/DoctrineRepositoryAsServiceSet/Source/Entity/Post.php @@ -0,0 +1,9 @@ +doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/LoggableBehaviorRector/LoggableBehaviorRectorTest.php b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/LoggableBehaviorRector/LoggableBehaviorRectorTest.php index 92cf73e4595..f9dc87ece24 100644 --- a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/LoggableBehaviorRector/LoggableBehaviorRectorTest.php +++ b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/LoggableBehaviorRector/LoggableBehaviorRectorTest.php @@ -19,6 +19,9 @@ final class LoggableBehaviorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/SluggableBehaviorRector/SluggableBehaviorRectorTest.php b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/SluggableBehaviorRector/SluggableBehaviorRectorTest.php index 8c8662e7667..51843345809 100644 --- a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/SluggableBehaviorRector/SluggableBehaviorRectorTest.php +++ b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/SluggableBehaviorRector/SluggableBehaviorRectorTest.php @@ -19,6 +19,9 @@ final class SluggableBehaviorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/SoftDeletableBehaviorRector/SoftDeletableBehaviorRectorTest.php b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/SoftDeletableBehaviorRector/SoftDeletableBehaviorRectorTest.php index e9b120af7ee..0b8dc14192b 100644 --- a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/SoftDeletableBehaviorRector/SoftDeletableBehaviorRectorTest.php +++ b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/SoftDeletableBehaviorRector/SoftDeletableBehaviorRectorTest.php @@ -19,6 +19,9 @@ final class SoftDeletableBehaviorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/TimestampableBehaviorRector/TimestampableBehaviorRectorTest.php b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/TimestampableBehaviorRector/TimestampableBehaviorRectorTest.php index 3b40acbb157..5aa5857877d 100644 --- a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/TimestampableBehaviorRector/TimestampableBehaviorRectorTest.php +++ b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/TimestampableBehaviorRector/TimestampableBehaviorRectorTest.php @@ -19,6 +19,9 @@ final class TimestampableBehaviorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/TreeBehaviorRector/TreeBehaviorRectorTest.php b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/TreeBehaviorRector/TreeBehaviorRectorTest.php index 2390dc04f06..d4b2d3b2a6d 100644 --- a/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/TreeBehaviorRector/TreeBehaviorRectorTest.php +++ b/rules-tests/DoctrineGedmoToKnplabs/Rector/Class_/TreeBehaviorRector/TreeBehaviorRectorTest.php @@ -19,6 +19,9 @@ final class TreeBehaviorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp70/Rector/FunctionLike/DowngradeTypeDeclarationRector/DowngradeTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp70/Rector/FunctionLike/DowngradeTypeDeclarationRector/DowngradeTypeDeclarationRectorTest.php index e76022fbb66..9d57317eb13 100644 --- a/rules-tests/DowngradePhp70/Rector/FunctionLike/DowngradeTypeDeclarationRector/DowngradeTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp70/Rector/FunctionLike/DowngradeTypeDeclarationRector/DowngradeTypeDeclarationRectorTest.php @@ -18,6 +18,9 @@ final class DowngradeTypeDeclarationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector/SymmetricArrayDestructuringToListRectorTest.php b/rules-tests/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector/SymmetricArrayDestructuringToListRectorTest.php index f8e559a1da6..c0d35660442 100644 --- a/rules-tests/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector/SymmetricArrayDestructuringToListRectorTest.php +++ b/rules-tests/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector/SymmetricArrayDestructuringToListRectorTest.php @@ -20,6 +20,9 @@ final class SymmetricArrayDestructuringToListRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRectorTest.php b/rules-tests/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRectorTest.php index 23445d52f61..d2c2a88c90c 100644 --- a/rules-tests/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRectorTest.php +++ b/rules-tests/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRectorTest.php @@ -19,6 +19,9 @@ final class DowngradeClassConstantVisibilityRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector/DowngradeIterablePseudoTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector/DowngradeIterablePseudoTypeDeclarationRectorTest.php index cc86db555cd..a431b7012fe 100644 --- a/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector/DowngradeIterablePseudoTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector/DowngradeIterablePseudoTypeDeclarationRectorTest.php @@ -19,6 +19,9 @@ final class DowngradeIterablePseudoTypeDeclarationRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector/DowngradeNullableTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector/DowngradeNullableTypeDeclarationRectorTest.php index bacffe74d70..7b002e9f84a 100644 --- a/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector/DowngradeNullableTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector/DowngradeNullableTypeDeclarationRectorTest.php @@ -19,6 +19,9 @@ final class DowngradeNullableTypeDeclarationRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector/DowngradeVoidTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector/DowngradeVoidTypeDeclarationRectorTest.php index 0e7cf437a20..780cdacb437 100644 --- a/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector/DowngradeVoidTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector/DowngradeVoidTypeDeclarationRectorTest.php @@ -19,6 +19,9 @@ final class DowngradeVoidTypeDeclarationRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector/DowngradeNegativeStringOffsetToStrlenRectorTest.php b/rules-tests/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector/DowngradeNegativeStringOffsetToStrlenRectorTest.php index 754c49836ff..e9283e365f5 100644 --- a/rules-tests/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector/DowngradeNegativeStringOffsetToStrlenRectorTest.php +++ b/rules-tests/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector/DowngradeNegativeStringOffsetToStrlenRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeNegativeStringOffsetToStrlenRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector/DowngradePipeToMultiCatchExceptionRectorTest.php b/rules-tests/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector/DowngradePipeToMultiCatchExceptionRectorTest.php index 26e96b73611..bddb796a95f 100644 --- a/rules-tests/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector/DowngradePipeToMultiCatchExceptionRectorTest.php +++ b/rules-tests/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector/DowngradePipeToMultiCatchExceptionRectorTest.php @@ -19,6 +19,9 @@ final class DowngradePipeToMultiCatchExceptionRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector/DowngradeParameterTypeWideningRectorTest.php b/rules-tests/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector/DowngradeParameterTypeWideningRectorTest.php index 1ddeec46d2b..f368281fb5b 100644 --- a/rules-tests/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector/DowngradeParameterTypeWideningRectorTest.php +++ b/rules-tests/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector/DowngradeParameterTypeWideningRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeParameterTypeWideningRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector/DowngradeObjectTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector/DowngradeObjectTypeDeclarationRectorTest.php index d1c70d56a3f..5d52b4464f3 100644 --- a/rules-tests/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector/DowngradeObjectTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector/DowngradeObjectTypeDeclarationRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeObjectTypeDeclarationRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector/DowngradeTrailingCommasInFunctionCallsRectorTest.php b/rules-tests/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector/DowngradeTrailingCommasInFunctionCallsRectorTest.php index 246427aca2b..3879741142b 100644 --- a/rules-tests/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector/DowngradeTrailingCommasInFunctionCallsRectorTest.php +++ b/rules-tests/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector/DowngradeTrailingCommasInFunctionCallsRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeTrailingCommasInFunctionCallsRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector/SetCookieOptionsArrayToArgumentsRectorTest.php b/rules-tests/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector/SetCookieOptionsArrayToArgumentsRectorTest.php index c148bd42728..a4ab2db0857 100644 --- a/rules-tests/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector/SetCookieOptionsArrayToArgumentsRectorTest.php +++ b/rules-tests/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector/SetCookieOptionsArrayToArgumentsRectorTest.php @@ -20,6 +20,9 @@ final class SetCookieOptionsArrayToArgumentsRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector/DowngradeListReferenceAssignmentRectorTest.php b/rules-tests/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector/DowngradeListReferenceAssignmentRectorTest.php index 641239123f3..633496c7ac1 100644 --- a/rules-tests/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector/DowngradeListReferenceAssignmentRectorTest.php +++ b/rules-tests/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector/DowngradeListReferenceAssignmentRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeListReferenceAssignmentRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector/DowngradeFlexibleHeredocSyntaxTest.php b/rules-tests/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector/DowngradeFlexibleHeredocSyntaxTest.php index 3b3228645c0..062ef21c57b 100644 --- a/rules-tests/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector/DowngradeFlexibleHeredocSyntaxTest.php +++ b/rules-tests/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector/DowngradeFlexibleHeredocSyntaxTest.php @@ -22,6 +22,9 @@ final class DowngradeFlexibleHeredocSyntaxTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector/DowngradeArraySpreadRectorTest.php b/rules-tests/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector/DowngradeArraySpreadRectorTest.php index 5e423000321..0ccb0f7c7b2 100644 --- a/rules-tests/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector/DowngradeArraySpreadRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector/DowngradeArraySpreadRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeArraySpreadRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector/ArrowFunctionToAnonymousFunctionRectorTest.php b/rules-tests/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector/ArrowFunctionToAnonymousFunctionRectorTest.php index 824e98f8ab1..fd88c9eef11 100644 --- a/rules-tests/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector/ArrowFunctionToAnonymousFunctionRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector/ArrowFunctionToAnonymousFunctionRectorTest.php @@ -20,6 +20,9 @@ final class ArrowFunctionToAnonymousFunctionRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector/DowngradeContravariantArgumentTypeRectorTest.php b/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector/DowngradeContravariantArgumentTypeRectorTest.php index 19f5881443f..6490746b525 100644 --- a/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector/DowngradeContravariantArgumentTypeRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector/DowngradeContravariantArgumentTypeRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeContravariantArgumentTypeRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector/DowngradeCovariantReturnTypeRectorTest.php b/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector/DowngradeCovariantReturnTypeRectorTest.php index 3d124549638..d0d2e8a91f7 100644 --- a/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector/DowngradeCovariantReturnTypeRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector/DowngradeCovariantReturnTypeRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeCovariantReturnTypeRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector/DowngradeSelfTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector/DowngradeSelfTypeDeclarationRectorTest.php index 2350bf092d3..35e13c8a5f5 100644 --- a/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector/DowngradeSelfTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector/DowngradeSelfTypeDeclarationRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeSelfTypeDeclarationRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector/DowngradeNullCoalescingOperatorRectorTest.php b/rules-tests/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector/DowngradeNullCoalescingOperatorRectorTest.php index da70c7ddc67..efac0f0b7ec 100644 --- a/rules-tests/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector/DowngradeNullCoalescingOperatorRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector/DowngradeNullCoalescingOperatorRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeNullCoalescingOperatorRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector/DowngradeArrayMergeCallWithoutArgumentsRectorTest.php b/rules-tests/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector/DowngradeArrayMergeCallWithoutArgumentsRectorTest.php index 99bca601c7c..15cdd46db59 100644 --- a/rules-tests/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector/DowngradeArrayMergeCallWithoutArgumentsRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector/DowngradeArrayMergeCallWithoutArgumentsRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeArrayMergeCallWithoutArgumentsRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector/DowngradeStripTagsCallWithArrayRectorTest.php b/rules-tests/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector/DowngradeStripTagsCallWithArrayRectorTest.php index e4180e6540b..1c38b9e6d09 100644 --- a/rules-tests/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector/DowngradeStripTagsCallWithArrayRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector/DowngradeStripTagsCallWithArrayRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeStripTagsCallWithArrayRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector/DowngradeFreadFwriteFalsyToNegationRectorTest.php b/rules-tests/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector/DowngradeFreadFwriteFalsyToNegationRectorTest.php index 8ea587338d3..17180bd4ae3 100644 --- a/rules-tests/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector/DowngradeFreadFwriteFalsyToNegationRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector/DowngradeFreadFwriteFalsyToNegationRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeFreadFwriteFalsyToNegationRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector/DowngradeNumericLiteralSeparatorRectorTest.php b/rules-tests/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector/DowngradeNumericLiteralSeparatorRectorTest.php index 8597d42e94a..5c79eec27d4 100644 --- a/rules-tests/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector/DowngradeNumericLiteralSeparatorRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector/DowngradeNumericLiteralSeparatorRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeNumericLiteralSeparatorRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector/DowngradeTypedPropertyRectorTest.php b/rules-tests/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector/DowngradeTypedPropertyRectorTest.php index 653bded435d..bf5e9b0c0f8 100644 --- a/rules-tests/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector/DowngradeTypedPropertyRectorTest.php +++ b/rules-tests/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector/DowngradeTypedPropertyRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeTypedPropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector/DowngradeNonCapturingCatchesRectorTest.php b/rules-tests/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector/DowngradeNonCapturingCatchesRectorTest.php index fd2e79c8a54..b4b34e64321 100644 --- a/rules-tests/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector/DowngradeNonCapturingCatchesRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector/DowngradeNonCapturingCatchesRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeNonCapturingCatchesRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector/DowngradeClassOnObjectToGetClassRectorTest.php b/rules-tests/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector/DowngradeClassOnObjectToGetClassRectorTest.php index f2377812ac0..0bbe638a690 100644 --- a/rules-tests/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector/DowngradeClassOnObjectToGetClassRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector/DowngradeClassOnObjectToGetClassRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeClassOnObjectToGetClassRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector/DowngradeTrailingCommasInParamUseRectorTest.php b/rules-tests/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector/DowngradeTrailingCommasInParamUseRectorTest.php index 9a03c7c7f1a..bb74c1c1f8a 100644 --- a/rules-tests/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector/DowngradeTrailingCommasInParamUseRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector/DowngradeTrailingCommasInParamUseRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeTrailingCommasInParamUseRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector/DowngradePropertyPromotionRectorTest.php b/rules-tests/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector/DowngradePropertyPromotionRectorTest.php index 938c49623b0..70200383634 100644 --- a/rules-tests/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector/DowngradePropertyPromotionRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector/DowngradePropertyPromotionRectorTest.php @@ -20,6 +20,9 @@ final class DowngradePropertyPromotionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector/DowngradeMatchToSwitchRectorTest.php b/rules-tests/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector/DowngradeMatchToSwitchRectorTest.php index 73079a29ac6..27fac0f1f96 100644 --- a/rules-tests/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector/DowngradeMatchToSwitchRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector/DowngradeMatchToSwitchRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeMatchToSwitchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector/DowngradeMixedTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector/DowngradeMixedTypeDeclarationRectorTest.php index c64b6623549..2c2f79e2bc6 100644 --- a/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector/DowngradeMixedTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector/DowngradeMixedTypeDeclarationRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeMixedTypeDeclarationRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeStaticTypeDeclarationRector/DowngradeStaticTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeStaticTypeDeclarationRector/DowngradeStaticTypeDeclarationRectorTest.php index 93653b4be89..76499e34f3c 100644 --- a/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeStaticTypeDeclarationRector/DowngradeStaticTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeStaticTypeDeclarationRector/DowngradeStaticTypeDeclarationRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeStaticTypeDeclarationRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector/DowngradeUnionTypeDeclarationRectorTest.php b/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector/DowngradeUnionTypeDeclarationRectorTest.php index fe56e9865ec..de88f3ebc51 100644 --- a/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector/DowngradeUnionTypeDeclarationRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector/DowngradeUnionTypeDeclarationRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeUnionTypeDeclarationRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector/DowngradeNullsafeToTernaryOperatorRectorTest.php b/rules-tests/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector/DowngradeNullsafeToTernaryOperatorRectorTest.php index 8e374398aba..876bfda2080 100644 --- a/rules-tests/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector/DowngradeNullsafeToTernaryOperatorRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector/DowngradeNullsafeToTernaryOperatorRectorTest.php @@ -20,6 +20,9 @@ final class DowngradeNullsafeToTernaryOperatorRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector/DowngradeUnionTypeTypedPropertyRectorTest.php b/rules-tests/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector/DowngradeUnionTypeTypedPropertyRectorTest.php index 8e0a4f69f56..aef6d9a60cd 100644 --- a/rules-tests/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector/DowngradeUnionTypeTypedPropertyRectorTest.php +++ b/rules-tests/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector/DowngradeUnionTypeTypedPropertyRectorTest.php @@ -22,6 +22,9 @@ final class DowngradeUnionTypeTypedPropertyRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector/ChangeNestedForeachIfsToEarlyContinueRectorTest.php b/rules-tests/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector/ChangeNestedForeachIfsToEarlyContinueRectorTest.php index 9ad002c922a..4c3f884095e 100644 --- a/rules-tests/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector/ChangeNestedForeachIfsToEarlyContinueRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector/ChangeNestedForeachIfsToEarlyContinueRectorTest.php @@ -19,6 +19,9 @@ final class ChangeNestedForeachIfsToEarlyContinueRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/Foreach_/ReturnAfterToEarlyOnBreakRector/ReturnAfterToEarlyOnBreakRectorTest.php b/rules-tests/EarlyReturn/Rector/Foreach_/ReturnAfterToEarlyOnBreakRector/ReturnAfterToEarlyOnBreakRectorTest.php index de9b59bf155..8561d449d5a 100644 --- a/rules-tests/EarlyReturn/Rector/Foreach_/ReturnAfterToEarlyOnBreakRector/ReturnAfterToEarlyOnBreakRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/Foreach_/ReturnAfterToEarlyOnBreakRector/ReturnAfterToEarlyOnBreakRectorTest.php @@ -19,6 +19,9 @@ final class ReturnAfterToEarlyOnBreakRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/If_/ChangeAndIfToEarlyReturnRector/ChangeAndIfToEarlyReturnRectorTest.php b/rules-tests/EarlyReturn/Rector/If_/ChangeAndIfToEarlyReturnRector/ChangeAndIfToEarlyReturnRectorTest.php index 963287c4de1..e5d9e2732e0 100644 --- a/rules-tests/EarlyReturn/Rector/If_/ChangeAndIfToEarlyReturnRector/ChangeAndIfToEarlyReturnRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/If_/ChangeAndIfToEarlyReturnRector/ChangeAndIfToEarlyReturnRectorTest.php @@ -19,6 +19,9 @@ final class ChangeAndIfToEarlyReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/If_/ChangeIfElseValueAssignToEarlyReturnRector/ChangeIfElseValueAssignToEarlyReturnRectorTest.php b/rules-tests/EarlyReturn/Rector/If_/ChangeIfElseValueAssignToEarlyReturnRector/ChangeIfElseValueAssignToEarlyReturnRectorTest.php index 2eeb62fb75f..3052b787d44 100644 --- a/rules-tests/EarlyReturn/Rector/If_/ChangeIfElseValueAssignToEarlyReturnRector/ChangeIfElseValueAssignToEarlyReturnRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/If_/ChangeIfElseValueAssignToEarlyReturnRector/ChangeIfElseValueAssignToEarlyReturnRectorTest.php @@ -19,6 +19,9 @@ final class ChangeIfElseValueAssignToEarlyReturnRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/If_/ChangeNestedIfsToEarlyReturnRector/ChangeNestedIfsToEarlyReturnRectorTest.php b/rules-tests/EarlyReturn/Rector/If_/ChangeNestedIfsToEarlyReturnRector/ChangeNestedIfsToEarlyReturnRectorTest.php index 0f907f9e7d4..9e49c923d41 100644 --- a/rules-tests/EarlyReturn/Rector/If_/ChangeNestedIfsToEarlyReturnRector/ChangeNestedIfsToEarlyReturnRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/If_/ChangeNestedIfsToEarlyReturnRector/ChangeNestedIfsToEarlyReturnRectorTest.php @@ -19,6 +19,9 @@ final class ChangeNestedIfsToEarlyReturnRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/If_/ChangeOrIfContinueToMultiContinueRector/ChangeOrIfContinueToMultiContinueRectorTest.php b/rules-tests/EarlyReturn/Rector/If_/ChangeOrIfContinueToMultiContinueRector/ChangeOrIfContinueToMultiContinueRectorTest.php index 0c12d505100..e6be2e1476f 100644 --- a/rules-tests/EarlyReturn/Rector/If_/ChangeOrIfContinueToMultiContinueRector/ChangeOrIfContinueToMultiContinueRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/If_/ChangeOrIfContinueToMultiContinueRector/ChangeOrIfContinueToMultiContinueRectorTest.php @@ -19,6 +19,9 @@ final class ChangeOrIfContinueToMultiContinueRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/If_/ChangeOrIfReturnToEarlyReturnRector/ChangeOrIfReturnToEarlyReturnRectorTest.php b/rules-tests/EarlyReturn/Rector/If_/ChangeOrIfReturnToEarlyReturnRector/ChangeOrIfReturnToEarlyReturnRectorTest.php index 96da3fc6fb4..81e57586640 100644 --- a/rules-tests/EarlyReturn/Rector/If_/ChangeOrIfReturnToEarlyReturnRector/ChangeOrIfReturnToEarlyReturnRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/If_/ChangeOrIfReturnToEarlyReturnRector/ChangeOrIfReturnToEarlyReturnRectorTest.php @@ -19,6 +19,9 @@ final class ChangeOrIfReturnToEarlyReturnRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/If_/RemoveAlwaysElseRector/RemoveAlwaysElseRectorTest.php b/rules-tests/EarlyReturn/Rector/If_/RemoveAlwaysElseRector/RemoveAlwaysElseRectorTest.php index 0f224c37799..64ddf2d1ac1 100644 --- a/rules-tests/EarlyReturn/Rector/If_/RemoveAlwaysElseRector/RemoveAlwaysElseRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/If_/RemoveAlwaysElseRector/RemoveAlwaysElseRectorTest.php @@ -19,6 +19,9 @@ final class RemoveAlwaysElseRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/Return_/PreparedValueToEarlyReturnRector/PreparedValueToEarlyReturnRectorTest.php b/rules-tests/EarlyReturn/Rector/Return_/PreparedValueToEarlyReturnRector/PreparedValueToEarlyReturnRectorTest.php index a1d98d6da5a..6d5e23e46f7 100644 --- a/rules-tests/EarlyReturn/Rector/Return_/PreparedValueToEarlyReturnRector/PreparedValueToEarlyReturnRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/Return_/PreparedValueToEarlyReturnRector/PreparedValueToEarlyReturnRectorTest.php @@ -19,6 +19,9 @@ final class PreparedValueToEarlyReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/Return_/ReturnBinaryAndToEarlyReturnRector/ReturnBinaryAndToEarlyReturnRectorTest.php b/rules-tests/EarlyReturn/Rector/Return_/ReturnBinaryAndToEarlyReturnRector/ReturnBinaryAndToEarlyReturnRectorTest.php index 338c5d8c909..d32652bc6ee 100644 --- a/rules-tests/EarlyReturn/Rector/Return_/ReturnBinaryAndToEarlyReturnRector/ReturnBinaryAndToEarlyReturnRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/Return_/ReturnBinaryAndToEarlyReturnRector/ReturnBinaryAndToEarlyReturnRectorTest.php @@ -19,6 +19,9 @@ final class ReturnBinaryAndToEarlyReturnRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/EarlyReturn/Rector/Return_/ReturnBinaryOrToEarlyReturnRector/ReturnBinaryOrToEarlyReturnRectorTest.php b/rules-tests/EarlyReturn/Rector/Return_/ReturnBinaryOrToEarlyReturnRector/ReturnBinaryOrToEarlyReturnRectorTest.php index 32937b096a8..ad06eb008d4 100644 --- a/rules-tests/EarlyReturn/Rector/Return_/ReturnBinaryOrToEarlyReturnRector/ReturnBinaryOrToEarlyReturnRectorTest.php +++ b/rules-tests/EarlyReturn/Rector/Return_/ReturnBinaryOrToEarlyReturnRector/ReturnBinaryOrToEarlyReturnRectorTest.php @@ -19,6 +19,9 @@ final class ReturnBinaryOrToEarlyReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Generics/Rector/Class_/GenericsPHPStormMethodAnnotationRector/GenericsPHPStormMethodAnnotationRectorTest.php b/rules-tests/Generics/Rector/Class_/GenericsPHPStormMethodAnnotationRector/GenericsPHPStormMethodAnnotationRectorTest.php index d1753f23e1d..8dc09e7c171 100644 --- a/rules-tests/Generics/Rector/Class_/GenericsPHPStormMethodAnnotationRector/GenericsPHPStormMethodAnnotationRectorTest.php +++ b/rules-tests/Generics/Rector/Class_/GenericsPHPStormMethodAnnotationRector/GenericsPHPStormMethodAnnotationRectorTest.php @@ -19,6 +19,9 @@ final class GenericsPHPStormMethodAnnotationRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/CallOnAppArrayAccessToStandaloneAssignRectorTest.php b/rules-tests/Laravel/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/CallOnAppArrayAccessToStandaloneAssignRectorTest.php index 2563c2b3ed3..dfc16ecc7ab 100644 --- a/rules-tests/Laravel/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/CallOnAppArrayAccessToStandaloneAssignRectorTest.php +++ b/rules-tests/Laravel/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/CallOnAppArrayAccessToStandaloneAssignRectorTest.php @@ -19,6 +19,9 @@ final class CallOnAppArrayAccessToStandaloneAssignRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php b/rules-tests/Laravel/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php index f419c786137..4aece357955 100644 --- a/rules-tests/Laravel/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php +++ b/rules-tests/Laravel/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php @@ -19,6 +19,9 @@ final class AddParentBootToModelClassMethodRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php b/rules-tests/Laravel/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php index c8e3e2abf45..7bdc9b42c66 100644 --- a/rules-tests/Laravel/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php +++ b/rules-tests/Laravel/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php @@ -19,6 +19,9 @@ final class AddMockConsoleOutputFalseToConsoleTestsRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/Class_/PropertyDeferToDeferrableProviderToRector/PropertyDeferToDeferrableProviderToRectorTest.php b/rules-tests/Laravel/Rector/Class_/PropertyDeferToDeferrableProviderToRector/PropertyDeferToDeferrableProviderToRectorTest.php index 2b32fb733a1..6979b7aaa3d 100644 --- a/rules-tests/Laravel/Rector/Class_/PropertyDeferToDeferrableProviderToRector/PropertyDeferToDeferrableProviderToRectorTest.php +++ b/rules-tests/Laravel/Rector/Class_/PropertyDeferToDeferrableProviderToRector/PropertyDeferToDeferrableProviderToRectorTest.php @@ -19,6 +19,9 @@ final class PropertyDeferToDeferrableProviderToRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/FuncCall/HelperFuncCallToFacadeClassRector/HelperFuncCallToFacadeClassRectorTest.php b/rules-tests/Laravel/Rector/FuncCall/HelperFuncCallToFacadeClassRector/HelperFuncCallToFacadeClassRectorTest.php index 77d27ca329c..01a54fac752 100644 --- a/rules-tests/Laravel/Rector/FuncCall/HelperFuncCallToFacadeClassRector/HelperFuncCallToFacadeClassRectorTest.php +++ b/rules-tests/Laravel/Rector/FuncCall/HelperFuncCallToFacadeClassRector/HelperFuncCallToFacadeClassRectorTest.php @@ -19,6 +19,9 @@ final class HelperFuncCallToFacadeClassRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php b/rules-tests/Laravel/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php index 1d50bf17db3..38e9c1e69d9 100644 --- a/rules-tests/Laravel/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php +++ b/rules-tests/Laravel/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php @@ -19,6 +19,9 @@ final class ChangeQueryWhereDateValueWithCarbonRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php b/rules-tests/Laravel/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php index 0171a65fa1e..8e61d736dd0 100644 --- a/rules-tests/Laravel/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php +++ b/rules-tests/Laravel/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php @@ -19,6 +19,9 @@ final class AddGuardToLoginEventRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/New_/MakeTaggedPassedToParameterIterableTypeRector/MakeTaggedPassedToParameterIterableTypeRectorTest.php b/rules-tests/Laravel/Rector/New_/MakeTaggedPassedToParameterIterableTypeRector/MakeTaggedPassedToParameterIterableTypeRectorTest.php index 30d18027b9e..bf9448cb0f9 100644 --- a/rules-tests/Laravel/Rector/New_/MakeTaggedPassedToParameterIterableTypeRector/MakeTaggedPassedToParameterIterableTypeRectorTest.php +++ b/rules-tests/Laravel/Rector/New_/MakeTaggedPassedToParameterIterableTypeRector/MakeTaggedPassedToParameterIterableTypeRectorTest.php @@ -19,6 +19,9 @@ final class MakeTaggedPassedToParameterIterableTypeRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/StaticCall/MinutesToSecondsInCacheRector/MinutesToSecondsInCacheRectorTest.php b/rules-tests/Laravel/Rector/StaticCall/MinutesToSecondsInCacheRector/MinutesToSecondsInCacheRectorTest.php index b7380e970d3..53c69d49828 100644 --- a/rules-tests/Laravel/Rector/StaticCall/MinutesToSecondsInCacheRector/MinutesToSecondsInCacheRectorTest.php +++ b/rules-tests/Laravel/Rector/StaticCall/MinutesToSecondsInCacheRector/MinutesToSecondsInCacheRectorTest.php @@ -19,6 +19,9 @@ final class MinutesToSecondsInCacheRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php b/rules-tests/Laravel/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php index 6568b92e248..7d2cf0deb0f 100644 --- a/rules-tests/Laravel/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php +++ b/rules-tests/Laravel/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php @@ -19,6 +19,9 @@ final class Redirect301ToPermanentRedirectRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Laravel/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php b/rules-tests/Laravel/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php index b0608f56a35..66d75e63e60 100644 --- a/rules-tests/Laravel/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php +++ b/rules-tests/Laravel/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php @@ -19,6 +19,9 @@ final class RequestStaticValidateToInjectRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/MockeryToProphecy/Rector/ClassMethod/MockeryToProphecyRector/MockeryToProphecyRectorTest.php b/rules-tests/MockeryToProphecy/Rector/ClassMethod/MockeryToProphecyRector/MockeryToProphecyRectorTest.php index 9f373074a9e..c83920b459f 100644 --- a/rules-tests/MockeryToProphecy/Rector/ClassMethod/MockeryToProphecyRector/MockeryToProphecyRectorTest.php +++ b/rules-tests/MockeryToProphecy/Rector/ClassMethod/MockeryToProphecyRector/MockeryToProphecyRectorTest.php @@ -19,6 +19,9 @@ final class MockeryToProphecyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($file); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/MockeryToProphecy/Rector/StaticCall/MockeryToProphecyRector/MockeryToProphecyRectorTest.php b/rules-tests/MockeryToProphecy/Rector/StaticCall/MockeryToProphecyRector/MockeryToProphecyRectorTest.php index 5745fb7892a..5925f88386a 100644 --- a/rules-tests/MockeryToProphecy/Rector/StaticCall/MockeryToProphecyRector/MockeryToProphecyRectorTest.php +++ b/rules-tests/MockeryToProphecy/Rector/StaticCall/MockeryToProphecyRector/MockeryToProphecyRectorTest.php @@ -19,6 +19,9 @@ final class MockeryToProphecyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($file); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/MysqlToMysqli/Rector/Assign/MysqlAssignToMysqliRector/MysqlAssignToMysqliRectorTest.php b/rules-tests/MysqlToMysqli/Rector/Assign/MysqlAssignToMysqliRector/MysqlAssignToMysqliRectorTest.php index ecbad1b6e4a..53d396c0a04 100644 --- a/rules-tests/MysqlToMysqli/Rector/Assign/MysqlAssignToMysqliRector/MysqlAssignToMysqliRectorTest.php +++ b/rules-tests/MysqlToMysqli/Rector/Assign/MysqlAssignToMysqliRector/MysqlAssignToMysqliRectorTest.php @@ -19,6 +19,9 @@ final class MysqlAssignToMysqliRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlFuncCallToMysqliRector/MysqlFuncCallToMysqliRectorTest.php b/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlFuncCallToMysqliRector/MysqlFuncCallToMysqliRectorTest.php index 276227a224d..cf121c28de2 100644 --- a/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlFuncCallToMysqliRector/MysqlFuncCallToMysqliRectorTest.php +++ b/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlFuncCallToMysqliRector/MysqlFuncCallToMysqliRectorTest.php @@ -19,6 +19,9 @@ final class MysqlFuncCallToMysqliRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlPConnectToMysqliConnectRector/MysqlPConnectToMysqliConnectRectorTest.php b/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlPConnectToMysqliConnectRector/MysqlPConnectToMysqliConnectRectorTest.php index 9492163ad47..d33f031231e 100644 --- a/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlPConnectToMysqliConnectRector/MysqlPConnectToMysqliConnectRectorTest.php +++ b/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlPConnectToMysqliConnectRector/MysqlPConnectToMysqliConnectRectorTest.php @@ -19,6 +19,9 @@ final class MysqlPConnectToMysqliConnectRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlQueryMysqlErrorWithLinkRector/MysqlQueryMysqlErrorWithLinkRectorTest.php b/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlQueryMysqlErrorWithLinkRector/MysqlQueryMysqlErrorWithLinkRectorTest.php index 471d471ba52..41a0f1cbfba 100644 --- a/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlQueryMysqlErrorWithLinkRector/MysqlQueryMysqlErrorWithLinkRectorTest.php +++ b/rules-tests/MysqlToMysqli/Rector/FuncCall/MysqlQueryMysqlErrorWithLinkRector/MysqlQueryMysqlErrorWithLinkRectorTest.php @@ -19,6 +19,9 @@ final class MysqlQueryMysqlErrorWithLinkRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/MysqlToMysqli/SetTest.php b/rules-tests/MysqlToMysqli/SetTest.php index 4e3f1f3a201..d7c6da24830 100644 --- a/rules-tests/MysqlToMysqli/SetTest.php +++ b/rules-tests/MysqlToMysqli/SetTest.php @@ -18,6 +18,9 @@ final class SetTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector/Php74Test.php b/rules-tests/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector/Php74Test.php index 15976d46869..a1c880e902c 100644 --- a/rules-tests/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector/Php74Test.php +++ b/rules-tests/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector/Php74Test.php @@ -22,6 +22,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector/RenameVariableToMatchMethodCallReturnTypeRectorTest.php b/rules-tests/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector/RenameVariableToMatchMethodCallReturnTypeRectorTest.php index 2eb555c2c60..e15e5671be1 100644 --- a/rules-tests/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector/RenameVariableToMatchMethodCallReturnTypeRectorTest.php +++ b/rules-tests/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector/RenameVariableToMatchMethodCallReturnTypeRectorTest.php @@ -19,6 +19,9 @@ final class RenameVariableToMatchMethodCallReturnTypeRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/ClassMethod/MakeGetterClassMethodNameStartWithGetRector/MakeGetterClassMethodNameStartWithGetRectorTest.php b/rules-tests/Naming/Rector/ClassMethod/MakeGetterClassMethodNameStartWithGetRector/MakeGetterClassMethodNameStartWithGetRectorTest.php index e9687c9b1ed..733af7a9ae7 100644 --- a/rules-tests/Naming/Rector/ClassMethod/MakeGetterClassMethodNameStartWithGetRector/MakeGetterClassMethodNameStartWithGetRectorTest.php +++ b/rules-tests/Naming/Rector/ClassMethod/MakeGetterClassMethodNameStartWithGetRector/MakeGetterClassMethodNameStartWithGetRectorTest.php @@ -19,6 +19,9 @@ final class MakeGetterClassMethodNameStartWithGetRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/ClassMethod/MakeIsserClassMethodNameStartWithIsRector/MakeIsserClassMethodNameStartWithIsRectorTest.php b/rules-tests/Naming/Rector/ClassMethod/MakeIsserClassMethodNameStartWithIsRector/MakeIsserClassMethodNameStartWithIsRectorTest.php index e41484849da..efcb8f6e8f4 100644 --- a/rules-tests/Naming/Rector/ClassMethod/MakeIsserClassMethodNameStartWithIsRector/MakeIsserClassMethodNameStartWithIsRectorTest.php +++ b/rules-tests/Naming/Rector/ClassMethod/MakeIsserClassMethodNameStartWithIsRector/MakeIsserClassMethodNameStartWithIsRectorTest.php @@ -19,6 +19,9 @@ final class MakeIsserClassMethodNameStartWithIsRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector/Php80Test.php b/rules-tests/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector/Php80Test.php index 3ce22ceb7ea..1031b6d321a 100644 --- a/rules-tests/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector/Php80Test.php +++ b/rules-tests/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector/Php80Test.php @@ -22,6 +22,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector/RenameParamToMatchTypeRectorTest.php b/rules-tests/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector/RenameParamToMatchTypeRectorTest.php index e8b274cf9bc..5c01e0d4135 100644 --- a/rules-tests/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector/RenameParamToMatchTypeRectorTest.php +++ b/rules-tests/Naming/Rector/ClassMethod/RenameParamToMatchTypeRector/RenameParamToMatchTypeRectorTest.php @@ -19,6 +19,9 @@ final class RenameParamToMatchTypeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/ClassMethod/RenameVariableToMatchNewTypeRector/RenameVariableToMatchNewTypeRectorTest.php b/rules-tests/Naming/Rector/ClassMethod/RenameVariableToMatchNewTypeRector/RenameVariableToMatchNewTypeRectorTest.php index 860e3792ffb..a12e5351cf3 100644 --- a/rules-tests/Naming/Rector/ClassMethod/RenameVariableToMatchNewTypeRector/RenameVariableToMatchNewTypeRectorTest.php +++ b/rules-tests/Naming/Rector/ClassMethod/RenameVariableToMatchNewTypeRector/RenameVariableToMatchNewTypeRectorTest.php @@ -19,6 +19,9 @@ final class RenameVariableToMatchNewTypeRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/Php74Test.php b/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/Php74Test.php index d7a74f2f6a9..cfc520865c0 100644 --- a/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/Php74Test.php +++ b/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/Php74Test.php @@ -22,6 +22,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/Php80Test.php b/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/Php80Test.php index 504fc786ee4..6b40ec1d762 100644 --- a/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/Php80Test.php +++ b/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/Php80Test.php @@ -21,6 +21,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/RenamePropertyToMatchTypeRectorTest.php b/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/RenamePropertyToMatchTypeRectorTest.php index a0c259d9438..72a71497b14 100644 --- a/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/RenamePropertyToMatchTypeRectorTest.php +++ b/rules-tests/Naming/Rector/Class_/RenamePropertyToMatchTypeRector/RenamePropertyToMatchTypeRectorTest.php @@ -19,6 +19,9 @@ final class RenamePropertyToMatchTypeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchExprVariableRector/RenameForeachValueVariableToMatchExprVariableRectorTest.php b/rules-tests/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchExprVariableRector/RenameForeachValueVariableToMatchExprVariableRectorTest.php index cead50c4eca..27efb2593a6 100644 --- a/rules-tests/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchExprVariableRector/RenameForeachValueVariableToMatchExprVariableRectorTest.php +++ b/rules-tests/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchExprVariableRector/RenameForeachValueVariableToMatchExprVariableRectorTest.php @@ -19,6 +19,9 @@ final class RenameForeachValueVariableToMatchExprVariableRectorTest extends Abst $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchMethodCallReturnTypeRector/RenameForeachValueVariableToMatchMethodCallReturnTypeRectorTest.php b/rules-tests/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchMethodCallReturnTypeRector/RenameForeachValueVariableToMatchMethodCallReturnTypeRectorTest.php index fe75d2777e1..8b52a2f40a7 100644 --- a/rules-tests/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchMethodCallReturnTypeRector/RenameForeachValueVariableToMatchMethodCallReturnTypeRectorTest.php +++ b/rules-tests/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchMethodCallReturnTypeRector/RenameForeachValueVariableToMatchMethodCallReturnTypeRectorTest.php @@ -19,6 +19,9 @@ final class RenameForeachValueVariableToMatchMethodCallReturnTypeRectorTest exte $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/Property/MakeBoolPropertyRespectIsHasWasMethodNamingRector/MakeBoolPropertyRespectIsHasWasMethodNamingRectorTest.php b/rules-tests/Naming/Rector/Property/MakeBoolPropertyRespectIsHasWasMethodNamingRector/MakeBoolPropertyRespectIsHasWasMethodNamingRectorTest.php index f700a830e8e..abcc2911df2 100644 --- a/rules-tests/Naming/Rector/Property/MakeBoolPropertyRespectIsHasWasMethodNamingRector/MakeBoolPropertyRespectIsHasWasMethodNamingRectorTest.php +++ b/rules-tests/Naming/Rector/Property/MakeBoolPropertyRespectIsHasWasMethodNamingRector/MakeBoolPropertyRespectIsHasWasMethodNamingRectorTest.php @@ -19,6 +19,9 @@ final class MakeBoolPropertyRespectIsHasWasMethodNamingRectorTest extends Abstra $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/Property/UnderscoreToCamelCasePropertyNameRector/UnderscoreToCamelCasePropertyNameRectorTest.php b/rules-tests/Naming/Rector/Property/UnderscoreToCamelCasePropertyNameRector/UnderscoreToCamelCasePropertyNameRectorTest.php index cd4958ea772..7bfb46ab26c 100644 --- a/rules-tests/Naming/Rector/Property/UnderscoreToCamelCasePropertyNameRector/UnderscoreToCamelCasePropertyNameRectorTest.php +++ b/rules-tests/Naming/Rector/Property/UnderscoreToCamelCasePropertyNameRector/UnderscoreToCamelCasePropertyNameRectorTest.php @@ -19,6 +19,9 @@ final class UnderscoreToCamelCasePropertyNameRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/Variable/UnderscoreToCamelCaseLocalVariableNameRector/UnderscoreToCamelCaseLocalVariableNameRectorTest.php b/rules-tests/Naming/Rector/Variable/UnderscoreToCamelCaseLocalVariableNameRector/UnderscoreToCamelCaseLocalVariableNameRectorTest.php index d0faffd08a1..4fbfe1d7a51 100644 --- a/rules-tests/Naming/Rector/Variable/UnderscoreToCamelCaseLocalVariableNameRector/UnderscoreToCamelCaseLocalVariableNameRectorTest.php +++ b/rules-tests/Naming/Rector/Variable/UnderscoreToCamelCaseLocalVariableNameRector/UnderscoreToCamelCaseLocalVariableNameRectorTest.php @@ -19,6 +19,9 @@ final class UnderscoreToCamelCaseLocalVariableNameRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Naming/Rector/Variable/UnderscoreToCamelCaseVariableNameRector/UnderscoreToCamelCaseVariableNameRectorTest.php b/rules-tests/Naming/Rector/Variable/UnderscoreToCamelCaseVariableNameRector/UnderscoreToCamelCaseVariableNameRectorTest.php index c8f394ea766..7926204f75f 100644 --- a/rules-tests/Naming/Rector/Variable/UnderscoreToCamelCaseVariableNameRector/UnderscoreToCamelCaseVariableNameRectorTest.php +++ b/rules-tests/Naming/Rector/Variable/UnderscoreToCamelCaseVariableNameRector/UnderscoreToCamelCaseVariableNameRectorTest.php @@ -19,6 +19,9 @@ final class UnderscoreToCamelCaseVariableNameRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/ClassMethod/RemoveParentAndNameFromComponentConstructorRector/RemoveParentAndNameFromComponentConstructorRectorTest.php b/rules-tests/Nette/Rector/ClassMethod/RemoveParentAndNameFromComponentConstructorRector/RemoveParentAndNameFromComponentConstructorRectorTest.php index 0b16a5d482b..bc678363180 100644 --- a/rules-tests/Nette/Rector/ClassMethod/RemoveParentAndNameFromComponentConstructorRector/RemoveParentAndNameFromComponentConstructorRectorTest.php +++ b/rules-tests/Nette/Rector/ClassMethod/RemoveParentAndNameFromComponentConstructorRector/RemoveParentAndNameFromComponentConstructorRectorTest.php @@ -19,6 +19,9 @@ final class RemoveParentAndNameFromComponentConstructorRectorTest extends Abstra $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/ClassMethod/TemplateMagicAssignToExplicitVariableArrayRector/TemplateMagicAssignToExplicitVariableArrayRectorTest.php b/rules-tests/Nette/Rector/ClassMethod/TemplateMagicAssignToExplicitVariableArrayRector/TemplateMagicAssignToExplicitVariableArrayRectorTest.php index 652e4e5c74c..4c800881d31 100644 --- a/rules-tests/Nette/Rector/ClassMethod/TemplateMagicAssignToExplicitVariableArrayRector/TemplateMagicAssignToExplicitVariableArrayRectorTest.php +++ b/rules-tests/Nette/Rector/ClassMethod/TemplateMagicAssignToExplicitVariableArrayRector/TemplateMagicAssignToExplicitVariableArrayRectorTest.php @@ -19,6 +19,9 @@ final class TemplateMagicAssignToExplicitVariableArrayRectorTest extends Abstrac $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/ClassMethod/TranslateClassMethodToVariadicsRector/TranslateClassMethodToVariadicsRectorTest.php b/rules-tests/Nette/Rector/ClassMethod/TranslateClassMethodToVariadicsRector/TranslateClassMethodToVariadicsRectorTest.php index 52a8ce0b41c..2fd480ff301 100644 --- a/rules-tests/Nette/Rector/ClassMethod/TranslateClassMethodToVariadicsRector/TranslateClassMethodToVariadicsRectorTest.php +++ b/rules-tests/Nette/Rector/ClassMethod/TranslateClassMethodToVariadicsRector/TranslateClassMethodToVariadicsRectorTest.php @@ -27,6 +27,9 @@ final class TranslateClassMethodToVariadicsRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/FuncCall/FilePutContentsToFileSystemWriteRector/FilePutContentsToFileSystemWriteRectorTest.php b/rules-tests/Nette/Rector/FuncCall/FilePutContentsToFileSystemWriteRector/FilePutContentsToFileSystemWriteRectorTest.php index b963e92838a..1dd816cd88e 100644 --- a/rules-tests/Nette/Rector/FuncCall/FilePutContentsToFileSystemWriteRector/FilePutContentsToFileSystemWriteRectorTest.php +++ b/rules-tests/Nette/Rector/FuncCall/FilePutContentsToFileSystemWriteRector/FilePutContentsToFileSystemWriteRectorTest.php @@ -19,6 +19,9 @@ final class FilePutContentsToFileSystemWriteRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/FuncCall/JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRector/JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRectorTest.php b/rules-tests/Nette/Rector/FuncCall/JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRector/JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRectorTest.php index d3598895965..bf32b56480a 100644 --- a/rules-tests/Nette/Rector/FuncCall/JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRector/JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRectorTest.php +++ b/rules-tests/Nette/Rector/FuncCall/JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRector/JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRectorTest.php @@ -19,6 +19,9 @@ final class JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRectorTest extends Abstr $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/FuncCall/PregFunctionToNetteUtilsStringsRector/PregFunctionToNetteUtilsStringsRectorTest.php b/rules-tests/Nette/Rector/FuncCall/PregFunctionToNetteUtilsStringsRector/PregFunctionToNetteUtilsStringsRectorTest.php index b631ad9177f..62c19a66ed3 100644 --- a/rules-tests/Nette/Rector/FuncCall/PregFunctionToNetteUtilsStringsRector/PregFunctionToNetteUtilsStringsRectorTest.php +++ b/rules-tests/Nette/Rector/FuncCall/PregFunctionToNetteUtilsStringsRector/PregFunctionToNetteUtilsStringsRectorTest.php @@ -19,6 +19,9 @@ final class PregFunctionToNetteUtilsStringsRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/FuncCall/PregMatchFunctionToNetteUtilsStringsRector/PregMatchFunctionToNetteUtilsStringsRectorTest.php b/rules-tests/Nette/Rector/FuncCall/PregMatchFunctionToNetteUtilsStringsRector/PregMatchFunctionToNetteUtilsStringsRectorTest.php index 7a7fca4c046..d474789f691 100644 --- a/rules-tests/Nette/Rector/FuncCall/PregMatchFunctionToNetteUtilsStringsRector/PregMatchFunctionToNetteUtilsStringsRectorTest.php +++ b/rules-tests/Nette/Rector/FuncCall/PregMatchFunctionToNetteUtilsStringsRector/PregMatchFunctionToNetteUtilsStringsRectorTest.php @@ -19,6 +19,9 @@ final class PregMatchFunctionToNetteUtilsStringsRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/FuncCall/SubstrStrlenFunctionToNetteUtilsStringsRector/SubstrStrlenFunctionToNetteUtilsStringsRectorTest.php b/rules-tests/Nette/Rector/FuncCall/SubstrStrlenFunctionToNetteUtilsStringsRector/SubstrStrlenFunctionToNetteUtilsStringsRectorTest.php index 8a23db7dddf..3073c31e111 100644 --- a/rules-tests/Nette/Rector/FuncCall/SubstrStrlenFunctionToNetteUtilsStringsRector/SubstrStrlenFunctionToNetteUtilsStringsRectorTest.php +++ b/rules-tests/Nette/Rector/FuncCall/SubstrStrlenFunctionToNetteUtilsStringsRector/SubstrStrlenFunctionToNetteUtilsStringsRectorTest.php @@ -19,6 +19,9 @@ final class SubstrStrlenFunctionToNetteUtilsStringsRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/Identical/EndsWithFunctionToNetteUtilsStringsRector/EndsWithFunctionToNetteUtilsStringsRectorTest.php b/rules-tests/Nette/Rector/Identical/EndsWithFunctionToNetteUtilsStringsRector/EndsWithFunctionToNetteUtilsStringsRectorTest.php index 6eaeaa2f815..09772a52b78 100644 --- a/rules-tests/Nette/Rector/Identical/EndsWithFunctionToNetteUtilsStringsRector/EndsWithFunctionToNetteUtilsStringsRectorTest.php +++ b/rules-tests/Nette/Rector/Identical/EndsWithFunctionToNetteUtilsStringsRector/EndsWithFunctionToNetteUtilsStringsRectorTest.php @@ -19,6 +19,9 @@ final class EndsWithFunctionToNetteUtilsStringsRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/Identical/StartsWithFunctionToNetteUtilsStringsRector/StartsWithFunctionToNetteUtilsStringsRectorTest.php b/rules-tests/Nette/Rector/Identical/StartsWithFunctionToNetteUtilsStringsRector/StartsWithFunctionToNetteUtilsStringsRectorTest.php index 7debc215562..3b3acb62f74 100644 --- a/rules-tests/Nette/Rector/Identical/StartsWithFunctionToNetteUtilsStringsRector/StartsWithFunctionToNetteUtilsStringsRectorTest.php +++ b/rules-tests/Nette/Rector/Identical/StartsWithFunctionToNetteUtilsStringsRector/StartsWithFunctionToNetteUtilsStringsRectorTest.php @@ -19,6 +19,9 @@ final class StartsWithFunctionToNetteUtilsStringsRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/LNumber/ReplaceTimeNumberWithDateTimeConstantRector/ReplaceTimeNumberWithDateTimeConstantRectorTest.php b/rules-tests/Nette/Rector/LNumber/ReplaceTimeNumberWithDateTimeConstantRector/ReplaceTimeNumberWithDateTimeConstantRectorTest.php index 9f057140782..5c0ba62accd 100644 --- a/rules-tests/Nette/Rector/LNumber/ReplaceTimeNumberWithDateTimeConstantRector/ReplaceTimeNumberWithDateTimeConstantRectorTest.php +++ b/rules-tests/Nette/Rector/LNumber/ReplaceTimeNumberWithDateTimeConstantRector/ReplaceTimeNumberWithDateTimeConstantRectorTest.php @@ -19,6 +19,9 @@ final class ReplaceTimeNumberWithDateTimeConstantRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/MethodCall/AddNextrasDatePickerToDateControlRector/AddNextrasDatePickerToDateControlRectorTest.php b/rules-tests/Nette/Rector/MethodCall/AddNextrasDatePickerToDateControlRector/AddNextrasDatePickerToDateControlRectorTest.php index 8a917634b1c..89cf40145a4 100644 --- a/rules-tests/Nette/Rector/MethodCall/AddNextrasDatePickerToDateControlRector/AddNextrasDatePickerToDateControlRectorTest.php +++ b/rules-tests/Nette/Rector/MethodCall/AddNextrasDatePickerToDateControlRector/AddNextrasDatePickerToDateControlRectorTest.php @@ -19,6 +19,9 @@ final class AddNextrasDatePickerToDateControlRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/MethodCall/BuilderExpandToHelperExpandRector/BuilderExpandToHelperExpandRectorTest.php b/rules-tests/Nette/Rector/MethodCall/BuilderExpandToHelperExpandRector/BuilderExpandToHelperExpandRectorTest.php index b05ad59f8e0..137d79d4dbc 100644 --- a/rules-tests/Nette/Rector/MethodCall/BuilderExpandToHelperExpandRector/BuilderExpandToHelperExpandRectorTest.php +++ b/rules-tests/Nette/Rector/MethodCall/BuilderExpandToHelperExpandRector/BuilderExpandToHelperExpandRectorTest.php @@ -19,6 +19,9 @@ final class BuilderExpandToHelperExpandRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/MethodCall/ContextGetByTypeToConstructorInjectionRector/ContextGetByTypeToConstructorInjectionRectorTest.php b/rules-tests/Nette/Rector/MethodCall/ContextGetByTypeToConstructorInjectionRector/ContextGetByTypeToConstructorInjectionRectorTest.php index 4ea2538630b..42416dcb4a6 100644 --- a/rules-tests/Nette/Rector/MethodCall/ContextGetByTypeToConstructorInjectionRector/ContextGetByTypeToConstructorInjectionRectorTest.php +++ b/rules-tests/Nette/Rector/MethodCall/ContextGetByTypeToConstructorInjectionRector/ContextGetByTypeToConstructorInjectionRectorTest.php @@ -19,6 +19,9 @@ final class ContextGetByTypeToConstructorInjectionRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/MethodCall/ContextGetByTypeToConstructorInjectionRector/Php74Test.php b/rules-tests/Nette/Rector/MethodCall/ContextGetByTypeToConstructorInjectionRector/Php74Test.php index 8bfb2636b20..575fe99ea3e 100644 --- a/rules-tests/Nette/Rector/MethodCall/ContextGetByTypeToConstructorInjectionRector/Php74Test.php +++ b/rules-tests/Nette/Rector/MethodCall/ContextGetByTypeToConstructorInjectionRector/Php74Test.php @@ -20,6 +20,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/Nette/Rector/MethodCall/ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRector/ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRectorTest.php b/rules-tests/Nette/Rector/MethodCall/ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRector/ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRectorTest.php index 70665249110..c00627a1916 100644 --- a/rules-tests/Nette/Rector/MethodCall/ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRector/ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRectorTest.php +++ b/rules-tests/Nette/Rector/MethodCall/ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRector/ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRectorTest.php @@ -19,6 +19,9 @@ final class ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRectorTest exte $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/MethodCall/MagicHtmlCallToAppendAttributeRector/MagicHtmlCallToAppendAttributeRectorTest.php b/rules-tests/Nette/Rector/MethodCall/MagicHtmlCallToAppendAttributeRector/MagicHtmlCallToAppendAttributeRectorTest.php index 0e245ed1f2e..48d12584a46 100644 --- a/rules-tests/Nette/Rector/MethodCall/MagicHtmlCallToAppendAttributeRector/MagicHtmlCallToAppendAttributeRectorTest.php +++ b/rules-tests/Nette/Rector/MethodCall/MagicHtmlCallToAppendAttributeRector/MagicHtmlCallToAppendAttributeRectorTest.php @@ -19,6 +19,9 @@ final class MagicHtmlCallToAppendAttributeRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/MethodCall/MergeDefaultsInGetConfigCompilerExtensionRector/MergeDefaultsInGetConfigCompilerExtensionRectorTest.php b/rules-tests/Nette/Rector/MethodCall/MergeDefaultsInGetConfigCompilerExtensionRector/MergeDefaultsInGetConfigCompilerExtensionRectorTest.php index 0848fede741..3158e51ef02 100644 --- a/rules-tests/Nette/Rector/MethodCall/MergeDefaultsInGetConfigCompilerExtensionRector/MergeDefaultsInGetConfigCompilerExtensionRectorTest.php +++ b/rules-tests/Nette/Rector/MethodCall/MergeDefaultsInGetConfigCompilerExtensionRector/MergeDefaultsInGetConfigCompilerExtensionRectorTest.php @@ -19,6 +19,9 @@ final class MergeDefaultsInGetConfigCompilerExtensionRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/MethodCall/RequestGetCookieDefaultArgumentToCoalesceRector/RequestGetCookieDefaultArgumentToCoalesceRectorTest.php b/rules-tests/Nette/Rector/MethodCall/RequestGetCookieDefaultArgumentToCoalesceRector/RequestGetCookieDefaultArgumentToCoalesceRectorTest.php index e98c126d413..6c40589a7fa 100644 --- a/rules-tests/Nette/Rector/MethodCall/RequestGetCookieDefaultArgumentToCoalesceRector/RequestGetCookieDefaultArgumentToCoalesceRectorTest.php +++ b/rules-tests/Nette/Rector/MethodCall/RequestGetCookieDefaultArgumentToCoalesceRector/RequestGetCookieDefaultArgumentToCoalesceRectorTest.php @@ -19,6 +19,9 @@ final class RequestGetCookieDefaultArgumentToCoalesceRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/MethodCall/SetClassWithArgumentToSetFactoryRector/SetClassWithArgumentToSetFactoryRectorTest.php b/rules-tests/Nette/Rector/MethodCall/SetClassWithArgumentToSetFactoryRector/SetClassWithArgumentToSetFactoryRectorTest.php index 6581d0687a9..aef1bd20dbb 100644 --- a/rules-tests/Nette/Rector/MethodCall/SetClassWithArgumentToSetFactoryRector/SetClassWithArgumentToSetFactoryRectorTest.php +++ b/rules-tests/Nette/Rector/MethodCall/SetClassWithArgumentToSetFactoryRector/SetClassWithArgumentToSetFactoryRectorTest.php @@ -19,6 +19,9 @@ final class SetClassWithArgumentToSetFactoryRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Nette/Rector/NotIdentical/StrposToStringsContainsRector/StrposToStringsContainsRectorTest.php b/rules-tests/Nette/Rector/NotIdentical/StrposToStringsContainsRector/StrposToStringsContainsRectorTest.php index 23ba97b961f..530635de608 100644 --- a/rules-tests/Nette/Rector/NotIdentical/StrposToStringsContainsRector/StrposToStringsContainsRectorTest.php +++ b/rules-tests/Nette/Rector/NotIdentical/StrposToStringsContainsRector/StrposToStringsContainsRectorTest.php @@ -19,6 +19,9 @@ final class StrposToStringsContainsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteCodeQuality/Rector/ArrayDimFetch/AnnotateMagicalControlArrayAccessRector/AnnotateMagicalControlArrayAccessRectorTest.php b/rules-tests/NetteCodeQuality/Rector/ArrayDimFetch/AnnotateMagicalControlArrayAccessRector/AnnotateMagicalControlArrayAccessRectorTest.php index b15f14df74f..b6eeb3271c6 100644 --- a/rules-tests/NetteCodeQuality/Rector/ArrayDimFetch/AnnotateMagicalControlArrayAccessRector/AnnotateMagicalControlArrayAccessRectorTest.php +++ b/rules-tests/NetteCodeQuality/Rector/ArrayDimFetch/AnnotateMagicalControlArrayAccessRector/AnnotateMagicalControlArrayAccessRectorTest.php @@ -19,6 +19,9 @@ final class AnnotateMagicalControlArrayAccessRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteCodeQuality/Rector/ArrayDimFetch/ChangeFormArrayAccessToAnnotatedControlVariableRector/ChangeFormArrayAccessToAnnotatedControlVariableRectorTest.php b/rules-tests/NetteCodeQuality/Rector/ArrayDimFetch/ChangeFormArrayAccessToAnnotatedControlVariableRector/ChangeFormArrayAccessToAnnotatedControlVariableRectorTest.php index 55401f8ea7b..531d4df0ebe 100644 --- a/rules-tests/NetteCodeQuality/Rector/ArrayDimFetch/ChangeFormArrayAccessToAnnotatedControlVariableRector/ChangeFormArrayAccessToAnnotatedControlVariableRectorTest.php +++ b/rules-tests/NetteCodeQuality/Rector/ArrayDimFetch/ChangeFormArrayAccessToAnnotatedControlVariableRector/ChangeFormArrayAccessToAnnotatedControlVariableRectorTest.php @@ -19,6 +19,9 @@ final class ChangeFormArrayAccessToAnnotatedControlVariableRectorTest extends Ab $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteCodeQuality/Rector/Assign/ArrayAccessGetControlToGetComponentMethodCallRector/ArrayAccessGetControlToGetComponentMethodCallRectorTest.php b/rules-tests/NetteCodeQuality/Rector/Assign/ArrayAccessGetControlToGetComponentMethodCallRector/ArrayAccessGetControlToGetComponentMethodCallRectorTest.php index 36870b6d9d8..8e44d3e3faa 100644 --- a/rules-tests/NetteCodeQuality/Rector/Assign/ArrayAccessGetControlToGetComponentMethodCallRector/ArrayAccessGetControlToGetComponentMethodCallRectorTest.php +++ b/rules-tests/NetteCodeQuality/Rector/Assign/ArrayAccessGetControlToGetComponentMethodCallRector/ArrayAccessGetControlToGetComponentMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class ArrayAccessGetControlToGetComponentMethodCallRectorTest extends Abst $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteCodeQuality/Rector/Assign/ArrayAccessSetControlToAddComponentMethodCallRector/ArrayAccessSetControlToAddComponentMethodCallRectorTest.php b/rules-tests/NetteCodeQuality/Rector/Assign/ArrayAccessSetControlToAddComponentMethodCallRector/ArrayAccessSetControlToAddComponentMethodCallRectorTest.php index 0fd374bc37b..d6cfa8937db 100644 --- a/rules-tests/NetteCodeQuality/Rector/Assign/ArrayAccessSetControlToAddComponentMethodCallRector/ArrayAccessSetControlToAddComponentMethodCallRectorTest.php +++ b/rules-tests/NetteCodeQuality/Rector/Assign/ArrayAccessSetControlToAddComponentMethodCallRector/ArrayAccessSetControlToAddComponentMethodCallRectorTest.php @@ -19,6 +19,9 @@ final class ArrayAccessSetControlToAddComponentMethodCallRectorTest extends Abst $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteCodeQuality/Rector/Assign/MakeGetComponentAssignAnnotatedRector/AutoImportTest.php b/rules-tests/NetteCodeQuality/Rector/Assign/MakeGetComponentAssignAnnotatedRector/AutoImportTest.php index d3083fd5ac6..72b10715dad 100644 --- a/rules-tests/NetteCodeQuality/Rector/Assign/MakeGetComponentAssignAnnotatedRector/AutoImportTest.php +++ b/rules-tests/NetteCodeQuality/Rector/Assign/MakeGetComponentAssignAnnotatedRector/AutoImportTest.php @@ -18,6 +18,9 @@ final class AutoImportTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImport'); diff --git a/rules-tests/NetteCodeQuality/Rector/Assign/MakeGetComponentAssignAnnotatedRector/MakeGetComponentAssignAnnotatedRectorTest.php b/rules-tests/NetteCodeQuality/Rector/Assign/MakeGetComponentAssignAnnotatedRector/MakeGetComponentAssignAnnotatedRectorTest.php index 6d0309ce211..b96e6dd056f 100644 --- a/rules-tests/NetteCodeQuality/Rector/Assign/MakeGetComponentAssignAnnotatedRector/MakeGetComponentAssignAnnotatedRectorTest.php +++ b/rules-tests/NetteCodeQuality/Rector/Assign/MakeGetComponentAssignAnnotatedRector/MakeGetComponentAssignAnnotatedRectorTest.php @@ -19,6 +19,9 @@ final class MakeGetComponentAssignAnnotatedRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteCodeQuality/Rector/ClassMethod/MergeTemplateSetFileToTemplateRenderRector/MergeTemplateSetFileToTemplateRenderRectorTest.php b/rules-tests/NetteCodeQuality/Rector/ClassMethod/MergeTemplateSetFileToTemplateRenderRector/MergeTemplateSetFileToTemplateRenderRectorTest.php index e02af7dbdf6..8dcb954ec34 100644 --- a/rules-tests/NetteCodeQuality/Rector/ClassMethod/MergeTemplateSetFileToTemplateRenderRector/MergeTemplateSetFileToTemplateRenderRectorTest.php +++ b/rules-tests/NetteCodeQuality/Rector/ClassMethod/MergeTemplateSetFileToTemplateRenderRector/MergeTemplateSetFileToTemplateRenderRectorTest.php @@ -19,6 +19,9 @@ final class MergeTemplateSetFileToTemplateRenderRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteCodeQuality/Rector/Class_/MoveInjectToExistingConstructorRector/MoveInjectToExistingConstructorRectorTest.php b/rules-tests/NetteCodeQuality/Rector/Class_/MoveInjectToExistingConstructorRector/MoveInjectToExistingConstructorRectorTest.php index 2a1fc964415..c521fd504f3 100644 --- a/rules-tests/NetteCodeQuality/Rector/Class_/MoveInjectToExistingConstructorRector/MoveInjectToExistingConstructorRectorTest.php +++ b/rules-tests/NetteCodeQuality/Rector/Class_/MoveInjectToExistingConstructorRector/MoveInjectToExistingConstructorRectorTest.php @@ -19,6 +19,9 @@ final class MoveInjectToExistingConstructorRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteCodeQuality/Rector/Identical/SubstrMinusToStringEndsWithRector/SubstrMinusToStringEndsWithRectorTest.php b/rules-tests/NetteCodeQuality/Rector/Identical/SubstrMinusToStringEndsWithRector/SubstrMinusToStringEndsWithRectorTest.php index 804bbc4b5dc..7743efa8641 100644 --- a/rules-tests/NetteCodeQuality/Rector/Identical/SubstrMinusToStringEndsWithRector/SubstrMinusToStringEndsWithRectorTest.php +++ b/rules-tests/NetteCodeQuality/Rector/Identical/SubstrMinusToStringEndsWithRector/SubstrMinusToStringEndsWithRectorTest.php @@ -19,6 +19,9 @@ final class SubstrMinusToStringEndsWithRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteKdyby/Rector/ClassMethod/ChangeNetteEventNamesInGetSubscribedEventsRector/ChangeNetteEventNamesInGetSubscribedEventsRectorTest.php b/rules-tests/NetteKdyby/Rector/ClassMethod/ChangeNetteEventNamesInGetSubscribedEventsRector/ChangeNetteEventNamesInGetSubscribedEventsRectorTest.php index 4de3b590bd7..6dbb885003a 100644 --- a/rules-tests/NetteKdyby/Rector/ClassMethod/ChangeNetteEventNamesInGetSubscribedEventsRector/ChangeNetteEventNamesInGetSubscribedEventsRectorTest.php +++ b/rules-tests/NetteKdyby/Rector/ClassMethod/ChangeNetteEventNamesInGetSubscribedEventsRector/ChangeNetteEventNamesInGetSubscribedEventsRectorTest.php @@ -19,6 +19,9 @@ final class ChangeNetteEventNamesInGetSubscribedEventsRectorTest extends Abstrac $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteKdyby/Rector/ClassMethod/ReplaceMagicPropertyWithEventClassRector/ReplaceMagicPropertyWithEventClassRectorTest.php b/rules-tests/NetteKdyby/Rector/ClassMethod/ReplaceMagicPropertyWithEventClassRector/ReplaceMagicPropertyWithEventClassRectorTest.php index 76361825700..5b4936c318f 100644 --- a/rules-tests/NetteKdyby/Rector/ClassMethod/ReplaceMagicPropertyWithEventClassRector/ReplaceMagicPropertyWithEventClassRectorTest.php +++ b/rules-tests/NetteKdyby/Rector/ClassMethod/ReplaceMagicPropertyWithEventClassRector/ReplaceMagicPropertyWithEventClassRectorTest.php @@ -19,6 +19,9 @@ final class ReplaceMagicPropertyWithEventClassRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteTesterToPHPUnit/Rector/Class_/NetteTesterClassToPHPUnitClassRector/NetteTesterClassToPHPUnitClassRectorTest.php b/rules-tests/NetteTesterToPHPUnit/Rector/Class_/NetteTesterClassToPHPUnitClassRector/NetteTesterClassToPHPUnitClassRectorTest.php index ba1f87988ee..4d02a99f929 100644 --- a/rules-tests/NetteTesterToPHPUnit/Rector/Class_/NetteTesterClassToPHPUnitClassRector/NetteTesterClassToPHPUnitClassRectorTest.php +++ b/rules-tests/NetteTesterToPHPUnit/Rector/Class_/NetteTesterClassToPHPUnitClassRector/NetteTesterClassToPHPUnitClassRectorTest.php @@ -18,6 +18,9 @@ final class NetteTesterClassToPHPUnitClassRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteToSymfony/Rector/ClassMethod/RenameEventNamesInEventSubscriberRector/RenameEventNamesInEventSubscriberRectorTest.php b/rules-tests/NetteToSymfony/Rector/ClassMethod/RenameEventNamesInEventSubscriberRector/RenameEventNamesInEventSubscriberRectorTest.php index 805c5fc570d..6b79f290c27 100644 --- a/rules-tests/NetteToSymfony/Rector/ClassMethod/RenameEventNamesInEventSubscriberRector/RenameEventNamesInEventSubscriberRectorTest.php +++ b/rules-tests/NetteToSymfony/Rector/ClassMethod/RenameEventNamesInEventSubscriberRector/RenameEventNamesInEventSubscriberRectorTest.php @@ -19,6 +19,9 @@ final class RenameEventNamesInEventSubscriberRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteToSymfony/Rector/ClassMethod/RouterListToControllerAnnotationsRector/RouterListToControllerAnnotationsRectorTest.php b/rules-tests/NetteToSymfony/Rector/ClassMethod/RouterListToControllerAnnotationsRector/RouterListToControllerAnnotationsRectorTest.php index 904067c99b3..dfe597f0604 100644 --- a/rules-tests/NetteToSymfony/Rector/ClassMethod/RouterListToControllerAnnotationsRector/RouterListToControllerAnnotationsRectorTest.php +++ b/rules-tests/NetteToSymfony/Rector/ClassMethod/RouterListToControllerAnnotationsRector/RouterListToControllerAnnotationsRectorTest.php @@ -19,6 +19,9 @@ final class RouterListToControllerAnnotationsRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteToSymfony/Rector/Class_/NetteControlToSymfonyControllerRector/NetteControlToSymfonyControllerRectorTest.php b/rules-tests/NetteToSymfony/Rector/Class_/NetteControlToSymfonyControllerRector/NetteControlToSymfonyControllerRectorTest.php index 14ded3c45c2..6891005bb2b 100644 --- a/rules-tests/NetteToSymfony/Rector/Class_/NetteControlToSymfonyControllerRector/NetteControlToSymfonyControllerRectorTest.php +++ b/rules-tests/NetteToSymfony/Rector/Class_/NetteControlToSymfonyControllerRector/NetteControlToSymfonyControllerRectorTest.php @@ -19,6 +19,9 @@ final class NetteControlToSymfonyControllerRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteToSymfony/Rector/Interface_/DeleteFactoryInterfaceRector/DeleteFactoryInterfaceFileSystemRectorTest.php b/rules-tests/NetteToSymfony/Rector/Interface_/DeleteFactoryInterfaceRector/DeleteFactoryInterfaceFileSystemRectorTest.php index 728b2c2fa00..b76c0018e85 100644 --- a/rules-tests/NetteToSymfony/Rector/Interface_/DeleteFactoryInterfaceRector/DeleteFactoryInterfaceFileSystemRectorTest.php +++ b/rules-tests/NetteToSymfony/Rector/Interface_/DeleteFactoryInterfaceRector/DeleteFactoryInterfaceFileSystemRectorTest.php @@ -20,6 +20,9 @@ final class DeleteFactoryInterfaceFileSystemRectorTest extends AbstractRectorTes $this->assertFileWasRemoved($this->originalTempFileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteToSymfony/Rector/MethodCall/FromHttpRequestGetHeaderToHeadersGetRector/FromHttpRequestGetHeaderToHeadersGetRectorTest.php b/rules-tests/NetteToSymfony/Rector/MethodCall/FromHttpRequestGetHeaderToHeadersGetRector/FromHttpRequestGetHeaderToHeadersGetRectorTest.php index edaed84ca10..b2065623f7b 100644 --- a/rules-tests/NetteToSymfony/Rector/MethodCall/FromHttpRequestGetHeaderToHeadersGetRector/FromHttpRequestGetHeaderToHeadersGetRectorTest.php +++ b/rules-tests/NetteToSymfony/Rector/MethodCall/FromHttpRequestGetHeaderToHeadersGetRector/FromHttpRequestGetHeaderToHeadersGetRectorTest.php @@ -19,6 +19,9 @@ final class FromHttpRequestGetHeaderToHeadersGetRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteToSymfony/Rector/MethodCall/FromRequestGetParameterToAttributesGetRector/FromRequestGetParameterToAttributesGetRectorTest.php b/rules-tests/NetteToSymfony/Rector/MethodCall/FromRequestGetParameterToAttributesGetRector/FromRequestGetParameterToAttributesGetRectorTest.php index e85f8e9589b..848f8bc841e 100644 --- a/rules-tests/NetteToSymfony/Rector/MethodCall/FromRequestGetParameterToAttributesGetRector/FromRequestGetParameterToAttributesGetRectorTest.php +++ b/rules-tests/NetteToSymfony/Rector/MethodCall/FromRequestGetParameterToAttributesGetRector/FromRequestGetParameterToAttributesGetRectorTest.php @@ -19,6 +19,9 @@ final class FromRequestGetParameterToAttributesGetRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteToSymfony/Rector/MethodCall/NetteFormToSymfonyFormRector/NetteFormToSymfonyFormRectorTest.php b/rules-tests/NetteToSymfony/Rector/MethodCall/NetteFormToSymfonyFormRector/NetteFormToSymfonyFormRectorTest.php index f42bf9ef88a..ec5a6cd95bf 100644 --- a/rules-tests/NetteToSymfony/Rector/MethodCall/NetteFormToSymfonyFormRector/NetteFormToSymfonyFormRectorTest.php +++ b/rules-tests/NetteToSymfony/Rector/MethodCall/NetteFormToSymfonyFormRector/NetteFormToSymfonyFormRectorTest.php @@ -19,6 +19,9 @@ final class NetteFormToSymfonyFormRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/NetteToSymfony/Rector/MethodCall/WrapTransParameterNameRector/WrapTransParameterNameRectorTest.php b/rules-tests/NetteToSymfony/Rector/MethodCall/WrapTransParameterNameRector/WrapTransParameterNameRectorTest.php index 6971cc266bc..d6290de1c3e 100644 --- a/rules-tests/NetteToSymfony/Rector/MethodCall/WrapTransParameterNameRector/WrapTransParameterNameRectorTest.php +++ b/rules-tests/NetteToSymfony/Rector/MethodCall/WrapTransParameterNameRector/WrapTransParameterNameRectorTest.php @@ -19,6 +19,9 @@ final class WrapTransParameterNameRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Order/Rector/Class_/OrderClassConstantsByIntegerValueRector/OrderClassConstantsByIntegerValueRectorTest.php b/rules-tests/Order/Rector/Class_/OrderClassConstantsByIntegerValueRector/OrderClassConstantsByIntegerValueRectorTest.php index fcae5f3e95e..f40fedee7c2 100644 --- a/rules-tests/Order/Rector/Class_/OrderClassConstantsByIntegerValueRector/OrderClassConstantsByIntegerValueRectorTest.php +++ b/rules-tests/Order/Rector/Class_/OrderClassConstantsByIntegerValueRector/OrderClassConstantsByIntegerValueRectorTest.php @@ -19,6 +19,9 @@ final class OrderClassConstantsByIntegerValueRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Order/Rector/Class_/OrderConstantsByVisibilityRector/OrderConstantsByVisibilityRectorTest.php b/rules-tests/Order/Rector/Class_/OrderConstantsByVisibilityRector/OrderConstantsByVisibilityRectorTest.php index a43e37aae40..787a7b861b2 100644 --- a/rules-tests/Order/Rector/Class_/OrderConstantsByVisibilityRector/OrderConstantsByVisibilityRectorTest.php +++ b/rules-tests/Order/Rector/Class_/OrderConstantsByVisibilityRector/OrderConstantsByVisibilityRectorTest.php @@ -19,6 +19,9 @@ final class OrderConstantsByVisibilityRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Order/Rector/Class_/OrderFirstLevelClassStatementsRector/OrderFirstLevelClassStatementsRectorTest.php b/rules-tests/Order/Rector/Class_/OrderFirstLevelClassStatementsRector/OrderFirstLevelClassStatementsRectorTest.php index db305ca4e2b..7220897fea6 100644 --- a/rules-tests/Order/Rector/Class_/OrderFirstLevelClassStatementsRector/OrderFirstLevelClassStatementsRectorTest.php +++ b/rules-tests/Order/Rector/Class_/OrderFirstLevelClassStatementsRector/OrderFirstLevelClassStatementsRectorTest.php @@ -19,6 +19,9 @@ final class OrderFirstLevelClassStatementsRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Order/Rector/Class_/OrderMethodsByVisibilityRector/OrderMethodsByVisibilityRectorTest.php b/rules-tests/Order/Rector/Class_/OrderMethodsByVisibilityRector/OrderMethodsByVisibilityRectorTest.php index 52da07a1331..2447423421b 100644 --- a/rules-tests/Order/Rector/Class_/OrderMethodsByVisibilityRector/OrderMethodsByVisibilityRectorTest.php +++ b/rules-tests/Order/Rector/Class_/OrderMethodsByVisibilityRector/OrderMethodsByVisibilityRectorTest.php @@ -21,6 +21,9 @@ final class OrderMethodsByVisibilityRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Order/Rector/Class_/OrderPrivateMethodsByUseRector/OrderPrivateMethodsByUseRectorTest.php b/rules-tests/Order/Rector/Class_/OrderPrivateMethodsByUseRector/OrderPrivateMethodsByUseRectorTest.php index 3aa7d33cbc0..95532c6549a 100644 --- a/rules-tests/Order/Rector/Class_/OrderPrivateMethodsByUseRector/OrderPrivateMethodsByUseRectorTest.php +++ b/rules-tests/Order/Rector/Class_/OrderPrivateMethodsByUseRector/OrderPrivateMethodsByUseRectorTest.php @@ -19,6 +19,9 @@ final class OrderPrivateMethodsByUseRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Order/Rector/Class_/OrderPropertiesByVisibilityRector/OrderPropertiesByVisibilityRectorTest.php b/rules-tests/Order/Rector/Class_/OrderPropertiesByVisibilityRector/OrderPropertiesByVisibilityRectorTest.php index 68eb148e317..91c71e3c19f 100644 --- a/rules-tests/Order/Rector/Class_/OrderPropertiesByVisibilityRector/OrderPropertiesByVisibilityRectorTest.php +++ b/rules-tests/Order/Rector/Class_/OrderPropertiesByVisibilityRector/OrderPropertiesByVisibilityRectorTest.php @@ -19,6 +19,9 @@ final class OrderPropertiesByVisibilityRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalGetConditionRector/ChangeConditionalGetConditionRectorTest.php b/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalGetConditionRector/ChangeConditionalGetConditionRectorTest.php index 517b98bd351..dadb8e05812 100644 --- a/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalGetConditionRector/ChangeConditionalGetConditionRectorTest.php +++ b/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalGetConditionRector/ChangeConditionalGetConditionRectorTest.php @@ -19,6 +19,9 @@ final class ChangeConditionalGetConditionRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalReturnedCellRector/ChangeConditionalReturnedCellRectorTest.php b/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalReturnedCellRector/ChangeConditionalReturnedCellRectorTest.php index 8e80cfc9543..78d5d4f2957 100644 --- a/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalReturnedCellRector/ChangeConditionalReturnedCellRectorTest.php +++ b/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalReturnedCellRector/ChangeConditionalReturnedCellRectorTest.php @@ -19,6 +19,9 @@ final class ChangeConditionalReturnedCellRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalSetConditionRector/ChangeConditionalSetConditionRectorTest.php b/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalSetConditionRector/ChangeConditionalSetConditionRectorTest.php index 5808225b267..2df90b132a8 100644 --- a/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalSetConditionRector/ChangeConditionalSetConditionRectorTest.php +++ b/rules-tests/PHPOffice/Rector/MethodCall/ChangeConditionalSetConditionRector/ChangeConditionalSetConditionRectorTest.php @@ -19,6 +19,9 @@ final class ChangeConditionalSetConditionRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/MethodCall/ChangeDuplicateStyleArrayToApplyFromArrayRector/ChangeDuplicateStyleArrayToApplyFromArrayRectorTest.php b/rules-tests/PHPOffice/Rector/MethodCall/ChangeDuplicateStyleArrayToApplyFromArrayRector/ChangeDuplicateStyleArrayToApplyFromArrayRectorTest.php index d283436b0f9..1a42ff926b7 100644 --- a/rules-tests/PHPOffice/Rector/MethodCall/ChangeDuplicateStyleArrayToApplyFromArrayRector/ChangeDuplicateStyleArrayToApplyFromArrayRectorTest.php +++ b/rules-tests/PHPOffice/Rector/MethodCall/ChangeDuplicateStyleArrayToApplyFromArrayRector/ChangeDuplicateStyleArrayToApplyFromArrayRectorTest.php @@ -19,6 +19,9 @@ final class ChangeDuplicateStyleArrayToApplyFromArrayRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/MethodCall/GetDefaultStyleToGetParentRector/GetDefaultStyleToGetParentRectorTest.php b/rules-tests/PHPOffice/Rector/MethodCall/GetDefaultStyleToGetParentRector/GetDefaultStyleToGetParentRectorTest.php index 0660b20e8c8..0c2b939293e 100644 --- a/rules-tests/PHPOffice/Rector/MethodCall/GetDefaultStyleToGetParentRector/GetDefaultStyleToGetParentRectorTest.php +++ b/rules-tests/PHPOffice/Rector/MethodCall/GetDefaultStyleToGetParentRector/GetDefaultStyleToGetParentRectorTest.php @@ -19,6 +19,9 @@ final class GetDefaultStyleToGetParentRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/MethodCall/IncreaseColumnIndexRector/IncreaseColumnIndexRectorTest.php b/rules-tests/PHPOffice/Rector/MethodCall/IncreaseColumnIndexRector/IncreaseColumnIndexRectorTest.php index 14ab318b692..3c61c12ef8d 100644 --- a/rules-tests/PHPOffice/Rector/MethodCall/IncreaseColumnIndexRector/IncreaseColumnIndexRectorTest.php +++ b/rules-tests/PHPOffice/Rector/MethodCall/IncreaseColumnIndexRector/IncreaseColumnIndexRectorTest.php @@ -19,6 +19,9 @@ final class IncreaseColumnIndexRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/MethodCall/RemoveSetTempDirOnExcelWriterRector/RemoveSetTempDirOnExcelWriterRectorTest.php b/rules-tests/PHPOffice/Rector/MethodCall/RemoveSetTempDirOnExcelWriterRector/RemoveSetTempDirOnExcelWriterRectorTest.php index aa5514d75c3..7ef788fdb31 100644 --- a/rules-tests/PHPOffice/Rector/MethodCall/RemoveSetTempDirOnExcelWriterRector/RemoveSetTempDirOnExcelWriterRectorTest.php +++ b/rules-tests/PHPOffice/Rector/MethodCall/RemoveSetTempDirOnExcelWriterRector/RemoveSetTempDirOnExcelWriterRectorTest.php @@ -19,6 +19,9 @@ final class RemoveSetTempDirOnExcelWriterRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/StaticCall/AddRemovedDefaultValuesRector/AddRemovedDefaultValuesRectorTest.php b/rules-tests/PHPOffice/Rector/StaticCall/AddRemovedDefaultValuesRector/AddRemovedDefaultValuesRectorTest.php index 31ba9ad0d7c..a85dc6aaa6a 100644 --- a/rules-tests/PHPOffice/Rector/StaticCall/AddRemovedDefaultValuesRector/AddRemovedDefaultValuesRectorTest.php +++ b/rules-tests/PHPOffice/Rector/StaticCall/AddRemovedDefaultValuesRector/AddRemovedDefaultValuesRectorTest.php @@ -19,6 +19,9 @@ final class AddRemovedDefaultValuesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/StaticCall/CellStaticToCoordinateRector/CellStaticToCoordinateRectorTest.php b/rules-tests/PHPOffice/Rector/StaticCall/CellStaticToCoordinateRector/CellStaticToCoordinateRectorTest.php index 2578904fc71..5b8631ddd42 100644 --- a/rules-tests/PHPOffice/Rector/StaticCall/CellStaticToCoordinateRector/CellStaticToCoordinateRectorTest.php +++ b/rules-tests/PHPOffice/Rector/StaticCall/CellStaticToCoordinateRector/CellStaticToCoordinateRectorTest.php @@ -19,6 +19,9 @@ final class CellStaticToCoordinateRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/StaticCall/ChangeChartRendererRector/ChangeChartRendererRectorTest.php b/rules-tests/PHPOffice/Rector/StaticCall/ChangeChartRendererRector/ChangeChartRendererRectorTest.php index 371cf33fb6f..d5841bad668 100644 --- a/rules-tests/PHPOffice/Rector/StaticCall/ChangeChartRendererRector/ChangeChartRendererRectorTest.php +++ b/rules-tests/PHPOffice/Rector/StaticCall/ChangeChartRendererRector/ChangeChartRendererRectorTest.php @@ -19,6 +19,9 @@ final class ChangeChartRendererRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/StaticCall/ChangeDataTypeForValueRector/ChangeDataTypeForValueRectorTest.php b/rules-tests/PHPOffice/Rector/StaticCall/ChangeDataTypeForValueRector/ChangeDataTypeForValueRectorTest.php index 917b14d1961..ea627a2fb44 100644 --- a/rules-tests/PHPOffice/Rector/StaticCall/ChangeDataTypeForValueRector/ChangeDataTypeForValueRectorTest.php +++ b/rules-tests/PHPOffice/Rector/StaticCall/ChangeDataTypeForValueRector/ChangeDataTypeForValueRectorTest.php @@ -19,6 +19,9 @@ final class ChangeDataTypeForValueRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/StaticCall/ChangeIOFactoryArgumentRector/ChangeIOFactoryArgumentRectorTest.php b/rules-tests/PHPOffice/Rector/StaticCall/ChangeIOFactoryArgumentRector/ChangeIOFactoryArgumentRectorTest.php index 43ecea0b4c8..e03b42d5c04 100644 --- a/rules-tests/PHPOffice/Rector/StaticCall/ChangeIOFactoryArgumentRector/ChangeIOFactoryArgumentRectorTest.php +++ b/rules-tests/PHPOffice/Rector/StaticCall/ChangeIOFactoryArgumentRector/ChangeIOFactoryArgumentRectorTest.php @@ -19,6 +19,9 @@ final class ChangeIOFactoryArgumentRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/StaticCall/ChangePdfWriterRector/ChangePdfWriterRectorTest.php b/rules-tests/PHPOffice/Rector/StaticCall/ChangePdfWriterRector/ChangePdfWriterRectorTest.php index 2379ca86aa1..bbef049a6f4 100644 --- a/rules-tests/PHPOffice/Rector/StaticCall/ChangePdfWriterRector/ChangePdfWriterRectorTest.php +++ b/rules-tests/PHPOffice/Rector/StaticCall/ChangePdfWriterRector/ChangePdfWriterRectorTest.php @@ -19,6 +19,9 @@ final class ChangePdfWriterRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPOffice/Rector/StaticCall/ChangeSearchLocationToRegisterReaderRector/ChangeSearchLocationToRegisterReaderRectorTest.php b/rules-tests/PHPOffice/Rector/StaticCall/ChangeSearchLocationToRegisterReaderRector/ChangeSearchLocationToRegisterReaderRectorTest.php index 922957513f7..b15b7e31ec2 100644 --- a/rules-tests/PHPOffice/Rector/StaticCall/ChangeSearchLocationToRegisterReaderRector/ChangeSearchLocationToRegisterReaderRectorTest.php +++ b/rules-tests/PHPOffice/Rector/StaticCall/ChangeSearchLocationToRegisterReaderRector/ChangeSearchLocationToRegisterReaderRectorTest.php @@ -19,6 +19,9 @@ final class ChangeSearchLocationToRegisterReaderRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/AddDoesNotPerformAssertionToNonAssertingTestRectorTest.php b/rules-tests/PHPUnit/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/AddDoesNotPerformAssertionToNonAssertingTestRectorTest.php index 3e0fc8b0528..024af04185c 100644 --- a/rules-tests/PHPUnit/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/AddDoesNotPerformAssertionToNonAssertingTestRectorTest.php +++ b/rules-tests/PHPUnit/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/AddDoesNotPerformAssertionToNonAssertingTestRectorTest.php @@ -19,6 +19,9 @@ final class AddDoesNotPerformAssertionToNonAssertingTestRectorTest extends Abstr $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/ClassMethod/ExceptionAnnotationRector/ExceptionAnnotationRectorTest.php b/rules-tests/PHPUnit/Rector/ClassMethod/ExceptionAnnotationRector/ExceptionAnnotationRectorTest.php index 082f8eadb2d..daba42d7a86 100644 --- a/rules-tests/PHPUnit/Rector/ClassMethod/ExceptionAnnotationRector/ExceptionAnnotationRectorTest.php +++ b/rules-tests/PHPUnit/Rector/ClassMethod/ExceptionAnnotationRector/ExceptionAnnotationRectorTest.php @@ -19,6 +19,9 @@ final class ExceptionAnnotationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/ClassMethod/RemoveEmptyTestMethodRector/RemoveEmptyTestMethodRectorTest.php b/rules-tests/PHPUnit/Rector/ClassMethod/RemoveEmptyTestMethodRector/RemoveEmptyTestMethodRectorTest.php index 6c86d8e9362..7dd70c3582d 100644 --- a/rules-tests/PHPUnit/Rector/ClassMethod/RemoveEmptyTestMethodRector/RemoveEmptyTestMethodRectorTest.php +++ b/rules-tests/PHPUnit/Rector/ClassMethod/RemoveEmptyTestMethodRector/RemoveEmptyTestMethodRectorTest.php @@ -19,6 +19,9 @@ final class RemoveEmptyTestMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/ClassMethod/TryCatchToExpectExceptionRector/TryCatchToExpectExceptionRectorTest.php b/rules-tests/PHPUnit/Rector/ClassMethod/TryCatchToExpectExceptionRector/TryCatchToExpectExceptionRectorTest.php index bc0ffb16ecb..47167e5df4e 100644 --- a/rules-tests/PHPUnit/Rector/ClassMethod/TryCatchToExpectExceptionRector/TryCatchToExpectExceptionRectorTest.php +++ b/rules-tests/PHPUnit/Rector/ClassMethod/TryCatchToExpectExceptionRector/TryCatchToExpectExceptionRectorTest.php @@ -19,6 +19,9 @@ final class TryCatchToExpectExceptionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/Class_/AddProphecyTraitRector/AddProphecyTraitRectorTest.php b/rules-tests/PHPUnit/Rector/Class_/AddProphecyTraitRector/AddProphecyTraitRectorTest.php index 1bdee89d206..10bed2803c7 100644 --- a/rules-tests/PHPUnit/Rector/Class_/AddProphecyTraitRector/AddProphecyTraitRectorTest.php +++ b/rules-tests/PHPUnit/Rector/Class_/AddProphecyTraitRector/AddProphecyTraitRectorTest.php @@ -19,6 +19,9 @@ final class AddProphecyTraitRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/Class_/AddSeeTestAnnotationRector/AddSeeTestAnnotationRectorTest.php b/rules-tests/PHPUnit/Rector/Class_/AddSeeTestAnnotationRector/AddSeeTestAnnotationRectorTest.php index 5051d6da535..aeaa92e401a 100644 --- a/rules-tests/PHPUnit/Rector/Class_/AddSeeTestAnnotationRector/AddSeeTestAnnotationRectorTest.php +++ b/rules-tests/PHPUnit/Rector/Class_/AddSeeTestAnnotationRector/AddSeeTestAnnotationRectorTest.php @@ -19,6 +19,9 @@ final class AddSeeTestAnnotationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/Class_/ArrayArgumentToDataProviderRector/ArrayArgumentToDataProviderRectorTest.php b/rules-tests/PHPUnit/Rector/Class_/ArrayArgumentToDataProviderRector/ArrayArgumentToDataProviderRectorTest.php index f0707f3b165..d85ae7db73a 100644 --- a/rules-tests/PHPUnit/Rector/Class_/ArrayArgumentToDataProviderRector/ArrayArgumentToDataProviderRectorTest.php +++ b/rules-tests/PHPUnit/Rector/Class_/ArrayArgumentToDataProviderRector/ArrayArgumentToDataProviderRectorTest.php @@ -18,6 +18,9 @@ final class ArrayArgumentToDataProviderRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/Class_/ConstructClassMethodToSetUpTestCaseRector/ConstructClassMethodToSetUpTestCaseRectorTest.php b/rules-tests/PHPUnit/Rector/Class_/ConstructClassMethodToSetUpTestCaseRector/ConstructClassMethodToSetUpTestCaseRectorTest.php index 7c0e5065d54..04af05ea23a 100644 --- a/rules-tests/PHPUnit/Rector/Class_/ConstructClassMethodToSetUpTestCaseRector/ConstructClassMethodToSetUpTestCaseRectorTest.php +++ b/rules-tests/PHPUnit/Rector/Class_/ConstructClassMethodToSetUpTestCaseRector/ConstructClassMethodToSetUpTestCaseRectorTest.php @@ -19,6 +19,9 @@ final class ConstructClassMethodToSetUpTestCaseRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/Class_/RemoveDataProviderTestPrefixRector/RemoveDataProviderTestPrefixRectorTest.php b/rules-tests/PHPUnit/Rector/Class_/RemoveDataProviderTestPrefixRector/RemoveDataProviderTestPrefixRectorTest.php index 1780486a07d..112eb6fe5f1 100644 --- a/rules-tests/PHPUnit/Rector/Class_/RemoveDataProviderTestPrefixRector/RemoveDataProviderTestPrefixRectorTest.php +++ b/rules-tests/PHPUnit/Rector/Class_/RemoveDataProviderTestPrefixRector/RemoveDataProviderTestPrefixRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDataProviderTestPrefixRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/Class_/TestListenerToHooksRector/TestListenerToHooksRectorTest.php b/rules-tests/PHPUnit/Rector/Class_/TestListenerToHooksRector/TestListenerToHooksRectorTest.php index 753c62e9de6..241a09a770e 100644 --- a/rules-tests/PHPUnit/Rector/Class_/TestListenerToHooksRector/TestListenerToHooksRectorTest.php +++ b/rules-tests/PHPUnit/Rector/Class_/TestListenerToHooksRector/TestListenerToHooksRectorTest.php @@ -19,6 +19,9 @@ final class TestListenerToHooksRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/Foreach_/SimplifyForeachInstanceOfRector/SimplifyForeachInstanceOfRectorTest.php b/rules-tests/PHPUnit/Rector/Foreach_/SimplifyForeachInstanceOfRector/SimplifyForeachInstanceOfRectorTest.php index 4f38959ad13..daec64c12ad 100644 --- a/rules-tests/PHPUnit/Rector/Foreach_/SimplifyForeachInstanceOfRector/SimplifyForeachInstanceOfRectorTest.php +++ b/rules-tests/PHPUnit/Rector/Foreach_/SimplifyForeachInstanceOfRector/SimplifyForeachInstanceOfRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyForeachInstanceOfRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertCompareToSpecificMethodRector/AssertCompareToSpecificMethodRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertCompareToSpecificMethodRector/AssertCompareToSpecificMethodRectorTest.php index 1e5e09ee705..1ffbe04d95c 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertCompareToSpecificMethodRector/AssertCompareToSpecificMethodRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertCompareToSpecificMethodRector/AssertCompareToSpecificMethodRectorTest.php @@ -19,6 +19,9 @@ final class AssertCompareToSpecificMethodRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertComparisonToSpecificMethodRector/AssertComparisonToSpecificMethodRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertComparisonToSpecificMethodRector/AssertComparisonToSpecificMethodRectorTest.php index 82254016d29..fb55da01d0c 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertComparisonToSpecificMethodRector/AssertComparisonToSpecificMethodRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertComparisonToSpecificMethodRector/AssertComparisonToSpecificMethodRectorTest.php @@ -19,6 +19,9 @@ final class AssertComparisonToSpecificMethodRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector/AssertEqualsParameterToSpecificMethodsTypeRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector/AssertEqualsParameterToSpecificMethodsTypeRectorTest.php index 5e3b991a971..e3b4c9b8fae 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector/AssertEqualsParameterToSpecificMethodsTypeRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector/AssertEqualsParameterToSpecificMethodsTypeRectorTest.php @@ -19,6 +19,9 @@ final class AssertEqualsParameterToSpecificMethodsTypeRectorTest extends Abstrac $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertEqualsToSameRector/AssertEqualsToSameRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertEqualsToSameRector/AssertEqualsToSameRectorTest.php index 15b4308513d..ce8160aaaa2 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertEqualsToSameRector/AssertEqualsToSameRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertEqualsToSameRector/AssertEqualsToSameRectorTest.php @@ -19,6 +19,9 @@ final class AssertEqualsToSameRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertFalseStrposToContainsRector/AssertFalseStrposToContainsRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertFalseStrposToContainsRector/AssertFalseStrposToContainsRectorTest.php index a5e7feddbe1..125d9cb620c 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertFalseStrposToContainsRector/AssertFalseStrposToContainsRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertFalseStrposToContainsRector/AssertFalseStrposToContainsRectorTest.php @@ -19,6 +19,9 @@ final class AssertFalseStrposToContainsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertInstanceOfComparisonRector/AssertInstanceOfComparisonRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertInstanceOfComparisonRector/AssertInstanceOfComparisonRectorTest.php index dc8d264c70e..0f23a082b31 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertInstanceOfComparisonRector/AssertInstanceOfComparisonRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertInstanceOfComparisonRector/AssertInstanceOfComparisonRectorTest.php @@ -19,6 +19,9 @@ final class AssertInstanceOfComparisonRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertIssetToSpecificMethodRector/AssertIssetToSpecificMethodRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertIssetToSpecificMethodRector/AssertIssetToSpecificMethodRectorTest.php index bf84a4c8857..6b0b6c2236f 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertIssetToSpecificMethodRector/AssertIssetToSpecificMethodRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertIssetToSpecificMethodRector/AssertIssetToSpecificMethodRectorTest.php @@ -19,6 +19,9 @@ final class AssertIssetToSpecificMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertNotOperatorRector/AssertNotOperatorRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertNotOperatorRector/AssertNotOperatorRectorTest.php index feb4b19ae7f..4026fb7e13b 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertNotOperatorRector/AssertNotOperatorRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertNotOperatorRector/AssertNotOperatorRectorTest.php @@ -19,6 +19,9 @@ final class AssertNotOperatorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertPropertyExistsRector/AssertPropertyExistsRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertPropertyExistsRector/AssertPropertyExistsRectorTest.php index cb22c6e0e9c..2ecc56fd8da 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertPropertyExistsRector/AssertPropertyExistsRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertPropertyExistsRector/AssertPropertyExistsRectorTest.php @@ -19,6 +19,9 @@ final class AssertPropertyExistsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertRegExpRector/AssertRegExpRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertRegExpRector/AssertRegExpRectorTest.php index 6c180decf17..c587a984f29 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertRegExpRector/AssertRegExpRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertRegExpRector/AssertRegExpRectorTest.php @@ -19,6 +19,9 @@ final class AssertRegExpRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertResourceToClosedResourceRector/AssertResourceToClosedResourceRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertResourceToClosedResourceRector/AssertResourceToClosedResourceRectorTest.php index ac1fc36242e..9484c80533c 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertResourceToClosedResourceRector/AssertResourceToClosedResourceRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertResourceToClosedResourceRector/AssertResourceToClosedResourceRectorTest.php @@ -19,6 +19,9 @@ final class AssertResourceToClosedResourceRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertSameBoolNullToSpecificMethodRector/AssertSameBoolNullToSpecificMethodRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertSameBoolNullToSpecificMethodRector/AssertSameBoolNullToSpecificMethodRectorTest.php index 9777fceff75..e51fec21c49 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertSameBoolNullToSpecificMethodRector/AssertSameBoolNullToSpecificMethodRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertSameBoolNullToSpecificMethodRector/AssertSameBoolNullToSpecificMethodRectorTest.php @@ -19,6 +19,9 @@ final class AssertSameBoolNullToSpecificMethodRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertSameTrueFalseToAssertTrueFalseRector/AssertSameTrueFalseToAssertTrueFalseRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertSameTrueFalseToAssertTrueFalseRector/AssertSameTrueFalseToAssertTrueFalseRectorTest.php index 3b093eaf864..66757ca7284 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertSameTrueFalseToAssertTrueFalseRector/AssertSameTrueFalseToAssertTrueFalseRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertSameTrueFalseToAssertTrueFalseRector/AssertSameTrueFalseToAssertTrueFalseRectorTest.php @@ -19,6 +19,9 @@ final class AssertSameTrueFalseToAssertTrueFalseRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertTrueFalseInternalTypeToSpecificMethodRector/AssertTrueFalseInternalTypeToSpecificMethodRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertTrueFalseInternalTypeToSpecificMethodRector/AssertTrueFalseInternalTypeToSpecificMethodRectorTest.php index 74a7f4212e9..aeefbd1a623 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertTrueFalseInternalTypeToSpecificMethodRector/AssertTrueFalseInternalTypeToSpecificMethodRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertTrueFalseInternalTypeToSpecificMethodRector/AssertTrueFalseInternalTypeToSpecificMethodRectorTest.php @@ -19,6 +19,9 @@ final class AssertTrueFalseInternalTypeToSpecificMethodRectorTest extends Abstra $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector/AssertTrueFalseToSpecificMethodRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector/AssertTrueFalseToSpecificMethodRectorTest.php index 49ac3bc7be2..6710cb9755c 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector/AssertTrueFalseToSpecificMethodRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector/AssertTrueFalseToSpecificMethodRectorTest.php @@ -19,6 +19,9 @@ final class AssertTrueFalseToSpecificMethodRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/CreateMockToCreateStubRector/CreateMockToCreateStubRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/CreateMockToCreateStubRector/CreateMockToCreateStubRectorTest.php index 8b89b837df6..fd8a1d5f408 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/CreateMockToCreateStubRector/CreateMockToCreateStubRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/CreateMockToCreateStubRector/CreateMockToCreateStubRectorTest.php @@ -19,6 +19,9 @@ final class CreateMockToCreateStubRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/DelegateExceptionArgumentsRector/DelegateExceptionArgumentsRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/DelegateExceptionArgumentsRector/DelegateExceptionArgumentsRectorTest.php index f2fdcfd849f..9a3e882b474 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/DelegateExceptionArgumentsRector/DelegateExceptionArgumentsRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/DelegateExceptionArgumentsRector/DelegateExceptionArgumentsRectorTest.php @@ -19,6 +19,9 @@ final class DelegateExceptionArgumentsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/ExplicitPhpErrorApiRector/ExplicitPhpErrorApiRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/ExplicitPhpErrorApiRector/ExplicitPhpErrorApiRectorTest.php index e5a52ef96ad..7a27e6aabc7 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/ExplicitPhpErrorApiRector/ExplicitPhpErrorApiRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/ExplicitPhpErrorApiRector/ExplicitPhpErrorApiRectorTest.php @@ -19,6 +19,9 @@ final class ExplicitPhpErrorApiRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/GetMockBuilderGetMockToCreateMockRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/GetMockBuilderGetMockToCreateMockRectorTest.php index 0e529882f59..7ee753e3a98 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/GetMockBuilderGetMockToCreateMockRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/GetMockBuilderGetMockToCreateMockRectorTest.php @@ -19,6 +19,9 @@ final class GetMockBuilderGetMockToCreateMockRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/RemoveExpectAnyFromMockRector/RemoveExpectAnyFromMockRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/RemoveExpectAnyFromMockRector/RemoveExpectAnyFromMockRectorTest.php index 19b42247ae1..b5c2f897a8d 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/RemoveExpectAnyFromMockRector/RemoveExpectAnyFromMockRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/RemoveExpectAnyFromMockRector/RemoveExpectAnyFromMockRectorTest.php @@ -19,6 +19,9 @@ final class RemoveExpectAnyFromMockRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/ReplaceAssertArraySubsetWithDmsPolyfillRector/ReplaceAssertArraySubsetWithDmsPolyfillRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/ReplaceAssertArraySubsetWithDmsPolyfillRector/ReplaceAssertArraySubsetWithDmsPolyfillRectorTest.php index d80a3b6c181..d169ec0febf 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/ReplaceAssertArraySubsetWithDmsPolyfillRector/ReplaceAssertArraySubsetWithDmsPolyfillRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/ReplaceAssertArraySubsetWithDmsPolyfillRector/ReplaceAssertArraySubsetWithDmsPolyfillRectorTest.php @@ -19,6 +19,9 @@ final class ReplaceAssertArraySubsetWithDmsPolyfillRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertContainsRector/SpecificAssertContainsRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertContainsRector/SpecificAssertContainsRectorTest.php index a73f6317b1c..9a0ec647519 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertContainsRector/SpecificAssertContainsRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertContainsRector/SpecificAssertContainsRectorTest.php @@ -19,6 +19,9 @@ final class SpecificAssertContainsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertContainsWithoutIdentityRector/SpecificAssertContainsWithoutIdentityRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertContainsWithoutIdentityRector/SpecificAssertContainsWithoutIdentityRectorTest.php index 92bbc3f9483..4db588fc27d 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertContainsWithoutIdentityRector/SpecificAssertContainsWithoutIdentityRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertContainsWithoutIdentityRector/SpecificAssertContainsWithoutIdentityRectorTest.php @@ -19,6 +19,9 @@ final class SpecificAssertContainsWithoutIdentityRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertInternalTypeRector/SpecificAssertInternalTypeRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertInternalTypeRector/SpecificAssertInternalTypeRectorTest.php index 9981d761a48..d3a6f063fba 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertInternalTypeRector/SpecificAssertInternalTypeRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/SpecificAssertInternalTypeRector/SpecificAssertInternalTypeRectorTest.php @@ -19,6 +19,9 @@ final class SpecificAssertInternalTypeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/UseSpecificWillMethodRector/UseSpecificWillMethodRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/UseSpecificWillMethodRector/UseSpecificWillMethodRectorTest.php index efe203b232e..efb4bde792a 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/UseSpecificWillMethodRector/UseSpecificWillMethodRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/UseSpecificWillMethodRector/UseSpecificWillMethodRectorTest.php @@ -19,6 +19,9 @@ final class UseSpecificWillMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/MethodCall/WithConsecutiveArgToArrayRector/WithConsecutiveArgToArrayRectorTest.php b/rules-tests/PHPUnit/Rector/MethodCall/WithConsecutiveArgToArrayRector/WithConsecutiveArgToArrayRectorTest.php index 17aec7792cd..c1604310d75 100644 --- a/rules-tests/PHPUnit/Rector/MethodCall/WithConsecutiveArgToArrayRector/WithConsecutiveArgToArrayRectorTest.php +++ b/rules-tests/PHPUnit/Rector/MethodCall/WithConsecutiveArgToArrayRector/WithConsecutiveArgToArrayRectorTest.php @@ -19,6 +19,9 @@ final class WithConsecutiveArgToArrayRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PHPUnit/Rector/StaticCall/GetMockRector/GetMockRectorTest.php b/rules-tests/PHPUnit/Rector/StaticCall/GetMockRector/GetMockRectorTest.php index b70b3c8d960..4c91b969f95 100644 --- a/rules-tests/PHPUnit/Rector/StaticCall/GetMockRector/GetMockRectorTest.php +++ b/rules-tests/PHPUnit/Rector/StaticCall/GetMockRector/GetMockRectorTest.php @@ -19,6 +19,9 @@ final class GetMockRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PSR4/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector/NormalizeNamespaceByPSR4ComposerAutoloadRectorTest.php b/rules-tests/PSR4/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector/NormalizeNamespaceByPSR4ComposerAutoloadRectorTest.php index 9523e9d449a..6a3fc97a661 100644 --- a/rules-tests/PSR4/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector/NormalizeNamespaceByPSR4ComposerAutoloadRectorTest.php +++ b/rules-tests/PSR4/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector/NormalizeNamespaceByPSR4ComposerAutoloadRectorTest.php @@ -18,6 +18,9 @@ final class NormalizeNamespaceByPSR4ComposerAutoloadRectorTest extends AbstractR $this->doTestFileInfo($smartFileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php52/Rector/Property/VarToPublicPropertyRector/VarToPublicPropertyRectorTest.php b/rules-tests/Php52/Rector/Property/VarToPublicPropertyRector/VarToPublicPropertyRectorTest.php index a2b395f1ff9..8400c91fbb3 100644 --- a/rules-tests/Php52/Rector/Property/VarToPublicPropertyRector/VarToPublicPropertyRectorTest.php +++ b/rules-tests/Php52/Rector/Property/VarToPublicPropertyRector/VarToPublicPropertyRectorTest.php @@ -19,6 +19,9 @@ final class VarToPublicPropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php52/Rector/Switch_/ContinueToBreakInSwitchRector/ContinueToBreakInSwitchRectorTest.php b/rules-tests/Php52/Rector/Switch_/ContinueToBreakInSwitchRector/ContinueToBreakInSwitchRectorTest.php index 10fe3922732..1008db08738 100644 --- a/rules-tests/Php52/Rector/Switch_/ContinueToBreakInSwitchRector/ContinueToBreakInSwitchRectorTest.php +++ b/rules-tests/Php52/Rector/Switch_/ContinueToBreakInSwitchRector/ContinueToBreakInSwitchRectorTest.php @@ -19,6 +19,9 @@ final class ContinueToBreakInSwitchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php53/Rector/FuncCall/DirNameFileConstantToDirConstantRector/DirNameFileConstantToDirConstantRectorTest.php b/rules-tests/Php53/Rector/FuncCall/DirNameFileConstantToDirConstantRector/DirNameFileConstantToDirConstantRectorTest.php index 0953aa3923e..4eb79bae84b 100644 --- a/rules-tests/Php53/Rector/FuncCall/DirNameFileConstantToDirConstantRector/DirNameFileConstantToDirConstantRectorTest.php +++ b/rules-tests/Php53/Rector/FuncCall/DirNameFileConstantToDirConstantRector/DirNameFileConstantToDirConstantRectorTest.php @@ -19,6 +19,9 @@ final class DirNameFileConstantToDirConstantRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php53/Rector/Ternary/TernaryToElvisRector/TernaryToElvisRectorTest.php b/rules-tests/Php53/Rector/Ternary/TernaryToElvisRector/TernaryToElvisRectorTest.php index beb29723925..5662fb4a68e 100644 --- a/rules-tests/Php53/Rector/Ternary/TernaryToElvisRector/TernaryToElvisRectorTest.php +++ b/rules-tests/Php53/Rector/Ternary/TernaryToElvisRector/TernaryToElvisRectorTest.php @@ -19,6 +19,9 @@ final class TernaryToElvisRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php54/Rector/Break_/RemoveZeroBreakContinueRector/RemoveZeroBreakContinueRectorTest.php b/rules-tests/Php54/Rector/Break_/RemoveZeroBreakContinueRector/RemoveZeroBreakContinueRectorTest.php index ecbd161b450..79d49713ad3 100644 --- a/rules-tests/Php54/Rector/Break_/RemoveZeroBreakContinueRector/RemoveZeroBreakContinueRectorTest.php +++ b/rules-tests/Php54/Rector/Break_/RemoveZeroBreakContinueRector/RemoveZeroBreakContinueRectorTest.php @@ -20,6 +20,9 @@ final class RemoveZeroBreakContinueRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php54/Rector/FuncCall/RemoveReferenceFromCallRector/RemoveReferenceFromCallRectorTest.php b/rules-tests/Php54/Rector/FuncCall/RemoveReferenceFromCallRector/RemoveReferenceFromCallRectorTest.php index e617e9a881a..f35f6d74d86 100644 --- a/rules-tests/Php54/Rector/FuncCall/RemoveReferenceFromCallRector/RemoveReferenceFromCallRectorTest.php +++ b/rules-tests/Php54/Rector/FuncCall/RemoveReferenceFromCallRector/RemoveReferenceFromCallRectorTest.php @@ -19,6 +19,9 @@ final class RemoveReferenceFromCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php55/Rector/Class_/ClassConstantToSelfClassRector/ClassConstantToSelfClassRectorTest.php b/rules-tests/Php55/Rector/Class_/ClassConstantToSelfClassRector/ClassConstantToSelfClassRectorTest.php index 30c117537b2..d903b26aabf 100644 --- a/rules-tests/Php55/Rector/Class_/ClassConstantToSelfClassRector/ClassConstantToSelfClassRectorTest.php +++ b/rules-tests/Php55/Rector/Class_/ClassConstantToSelfClassRector/ClassConstantToSelfClassRectorTest.php @@ -19,6 +19,9 @@ final class ClassConstantToSelfClassRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php55/Rector/FuncCall/PregReplaceEModifierRector/PregReplaceEModifierRectorTest.php b/rules-tests/Php55/Rector/FuncCall/PregReplaceEModifierRector/PregReplaceEModifierRectorTest.php index 38d1abd482c..bcdd8f8c22d 100644 --- a/rules-tests/Php55/Rector/FuncCall/PregReplaceEModifierRector/PregReplaceEModifierRectorTest.php +++ b/rules-tests/Php55/Rector/FuncCall/PregReplaceEModifierRector/PregReplaceEModifierRectorTest.php @@ -19,6 +19,9 @@ final class PregReplaceEModifierRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php55/Rector/String_/StringClassNameToClassConstantRector/ImportClassNameRectorTest.php b/rules-tests/Php55/Rector/String_/StringClassNameToClassConstantRector/ImportClassNameRectorTest.php index 64a28d4de1e..366e59dcd98 100644 --- a/rules-tests/Php55/Rector/String_/StringClassNameToClassConstantRector/ImportClassNameRectorTest.php +++ b/rules-tests/Php55/Rector/String_/StringClassNameToClassConstantRector/ImportClassNameRectorTest.php @@ -18,6 +18,9 @@ final class ImportClassNameRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureImport'); diff --git a/rules-tests/Php55/Rector/String_/StringClassNameToClassConstantRector/StringClassNameToClassConstantRectorTest.php b/rules-tests/Php55/Rector/String_/StringClassNameToClassConstantRector/StringClassNameToClassConstantRectorTest.php index 8360daa7236..750eb2a02d1 100644 --- a/rules-tests/Php55/Rector/String_/StringClassNameToClassConstantRector/StringClassNameToClassConstantRectorTest.php +++ b/rules-tests/Php55/Rector/String_/StringClassNameToClassConstantRector/StringClassNameToClassConstantRectorTest.php @@ -19,6 +19,9 @@ final class StringClassNameToClassConstantRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php56/Rector/FuncCall/PowToExpRector/PowToExpRectorTest.php b/rules-tests/Php56/Rector/FuncCall/PowToExpRector/PowToExpRectorTest.php index 8534e42da96..bd8374f8664 100644 --- a/rules-tests/Php56/Rector/FuncCall/PowToExpRector/PowToExpRectorTest.php +++ b/rules-tests/Php56/Rector/FuncCall/PowToExpRector/PowToExpRectorTest.php @@ -23,6 +23,9 @@ final class PowToExpRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php56/Rector/FunctionLike/AddDefaultValueForUndefinedVariableRector/AddDefaultValueForUndefinedVariableRectorTest.php b/rules-tests/Php56/Rector/FunctionLike/AddDefaultValueForUndefinedVariableRector/AddDefaultValueForUndefinedVariableRectorTest.php index 2ff2928df4e..6f7e012a6f6 100644 --- a/rules-tests/Php56/Rector/FunctionLike/AddDefaultValueForUndefinedVariableRector/AddDefaultValueForUndefinedVariableRectorTest.php +++ b/rules-tests/Php56/Rector/FunctionLike/AddDefaultValueForUndefinedVariableRector/AddDefaultValueForUndefinedVariableRectorTest.php @@ -19,6 +19,9 @@ final class AddDefaultValueForUndefinedVariableRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php56/Rector/FunctionLike/AddDefaultValueForUndefinedVariableRector/Php74Test.php b/rules-tests/Php56/Rector/FunctionLike/AddDefaultValueForUndefinedVariableRector/Php74Test.php index 60e3c989804..acf5528e1d9 100644 --- a/rules-tests/Php56/Rector/FunctionLike/AddDefaultValueForUndefinedVariableRector/Php74Test.php +++ b/rules-tests/Php56/Rector/FunctionLike/AddDefaultValueForUndefinedVariableRector/Php74Test.php @@ -20,6 +20,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/Php70/Rector/Assign/ListSplitStringRector/ListSplitStringRectorTest.php b/rules-tests/Php70/Rector/Assign/ListSplitStringRector/ListSplitStringRectorTest.php index ea0156212e9..d6f0ac6e9ba 100644 --- a/rules-tests/Php70/Rector/Assign/ListSplitStringRector/ListSplitStringRectorTest.php +++ b/rules-tests/Php70/Rector/Assign/ListSplitStringRector/ListSplitStringRectorTest.php @@ -19,6 +19,9 @@ final class ListSplitStringRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/Assign/ListSwapArrayOrderRector/ListSwapArrayOrderRectorTest.php b/rules-tests/Php70/Rector/Assign/ListSwapArrayOrderRector/ListSwapArrayOrderRectorTest.php index 384835d02c5..80a755e2387 100644 --- a/rules-tests/Php70/Rector/Assign/ListSwapArrayOrderRector/ListSwapArrayOrderRectorTest.php +++ b/rules-tests/Php70/Rector/Assign/ListSwapArrayOrderRector/ListSwapArrayOrderRectorTest.php @@ -19,6 +19,9 @@ final class ListSwapArrayOrderRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/Break_/BreakNotInLoopOrSwitchToReturnRector/BreakNotInLoopOrSwitchToReturnRectorTest.php b/rules-tests/Php70/Rector/Break_/BreakNotInLoopOrSwitchToReturnRector/BreakNotInLoopOrSwitchToReturnRectorTest.php index 157b611ec82..0a0fa383d88 100644 --- a/rules-tests/Php70/Rector/Break_/BreakNotInLoopOrSwitchToReturnRector/BreakNotInLoopOrSwitchToReturnRectorTest.php +++ b/rules-tests/Php70/Rector/Break_/BreakNotInLoopOrSwitchToReturnRector/BreakNotInLoopOrSwitchToReturnRectorTest.php @@ -19,6 +19,9 @@ final class BreakNotInLoopOrSwitchToReturnRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/ClassMethod/Php4ConstructorRector/Php4ConstructorRectorTest.php b/rules-tests/Php70/Rector/ClassMethod/Php4ConstructorRector/Php4ConstructorRectorTest.php index ca8e125397a..3264c4a75fc 100644 --- a/rules-tests/Php70/Rector/ClassMethod/Php4ConstructorRector/Php4ConstructorRectorTest.php +++ b/rules-tests/Php70/Rector/ClassMethod/Php4ConstructorRector/Php4ConstructorRectorTest.php @@ -23,6 +23,9 @@ final class Php4ConstructorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/FuncCall/CallUserMethodRector/CallUserMethodRectorTest.php b/rules-tests/Php70/Rector/FuncCall/CallUserMethodRector/CallUserMethodRectorTest.php index f77d1c47cbf..bf4d73c5efc 100644 --- a/rules-tests/Php70/Rector/FuncCall/CallUserMethodRector/CallUserMethodRectorTest.php +++ b/rules-tests/Php70/Rector/FuncCall/CallUserMethodRector/CallUserMethodRectorTest.php @@ -22,6 +22,9 @@ final class CallUserMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/EregToPregMatchRectorTest.php b/rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/EregToPregMatchRectorTest.php index 5b21eb0585c..36980b7857f 100644 --- a/rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/EregToPregMatchRectorTest.php +++ b/rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/EregToPregMatchRectorTest.php @@ -19,6 +19,9 @@ final class EregToPregMatchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/FuncCall/MultiDirnameRector/MultiDirnameRectorTest.php b/rules-tests/Php70/Rector/FuncCall/MultiDirnameRector/MultiDirnameRectorTest.php index e0a89f2b606..34b8dad1748 100644 --- a/rules-tests/Php70/Rector/FuncCall/MultiDirnameRector/MultiDirnameRectorTest.php +++ b/rules-tests/Php70/Rector/FuncCall/MultiDirnameRector/MultiDirnameRectorTest.php @@ -23,6 +23,9 @@ final class MultiDirnameRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/FuncCall/NonVariableToVariableOnFunctionCallRector/NonVariableToVariableOnFunctionCallRectorTest.php b/rules-tests/Php70/Rector/FuncCall/NonVariableToVariableOnFunctionCallRector/NonVariableToVariableOnFunctionCallRectorTest.php index bb774a46a22..6c1a55c2f06 100644 --- a/rules-tests/Php70/Rector/FuncCall/NonVariableToVariableOnFunctionCallRector/NonVariableToVariableOnFunctionCallRectorTest.php +++ b/rules-tests/Php70/Rector/FuncCall/NonVariableToVariableOnFunctionCallRector/NonVariableToVariableOnFunctionCallRectorTest.php @@ -19,6 +19,9 @@ final class NonVariableToVariableOnFunctionCallRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/FuncCall/RandomFunctionRector/RandomFunctionRectorTest.php b/rules-tests/Php70/Rector/FuncCall/RandomFunctionRector/RandomFunctionRectorTest.php index 1695e16538b..c01e0fc9c7d 100644 --- a/rules-tests/Php70/Rector/FuncCall/RandomFunctionRector/RandomFunctionRectorTest.php +++ b/rules-tests/Php70/Rector/FuncCall/RandomFunctionRector/RandomFunctionRectorTest.php @@ -22,6 +22,9 @@ final class RandomFunctionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector/RenameMktimeWithoutArgsToTimeRectorTest.php b/rules-tests/Php70/Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector/RenameMktimeWithoutArgsToTimeRectorTest.php index 85f669873c1..b5290ec8b72 100644 --- a/rules-tests/Php70/Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector/RenameMktimeWithoutArgsToTimeRectorTest.php +++ b/rules-tests/Php70/Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector/RenameMktimeWithoutArgsToTimeRectorTest.php @@ -19,6 +19,9 @@ final class RenameMktimeWithoutArgsToTimeRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/FunctionLike/ExceptionHandlerTypehintRector/ExceptionHandlerTypehintRectorTest.php b/rules-tests/Php70/Rector/FunctionLike/ExceptionHandlerTypehintRector/ExceptionHandlerTypehintRectorTest.php index c0de0977e18..63ed61730b2 100644 --- a/rules-tests/Php70/Rector/FunctionLike/ExceptionHandlerTypehintRector/ExceptionHandlerTypehintRectorTest.php +++ b/rules-tests/Php70/Rector/FunctionLike/ExceptionHandlerTypehintRector/ExceptionHandlerTypehintRectorTest.php @@ -19,6 +19,9 @@ final class ExceptionHandlerTypehintRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/If_/IfToSpaceshipRector/IfToSpaceshipRectorTest.php b/rules-tests/Php70/Rector/If_/IfToSpaceshipRector/IfToSpaceshipRectorTest.php index 91ae68a88f1..ddcc88c1830 100644 --- a/rules-tests/Php70/Rector/If_/IfToSpaceshipRector/IfToSpaceshipRectorTest.php +++ b/rules-tests/Php70/Rector/If_/IfToSpaceshipRector/IfToSpaceshipRectorTest.php @@ -19,6 +19,9 @@ final class IfToSpaceshipRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/List_/EmptyListRector/EmptyListRectorTest.php b/rules-tests/Php70/Rector/List_/EmptyListRector/EmptyListRectorTest.php index e4f7ce7007b..f7953fd65fa 100644 --- a/rules-tests/Php70/Rector/List_/EmptyListRector/EmptyListRectorTest.php +++ b/rules-tests/Php70/Rector/List_/EmptyListRector/EmptyListRectorTest.php @@ -19,6 +19,9 @@ final class EmptyListRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector/ThisCallOnStaticMethodToStaticCallRectorTest.php b/rules-tests/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector/ThisCallOnStaticMethodToStaticCallRectorTest.php index d4e3ccd985e..fd5a76aa992 100644 --- a/rules-tests/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector/ThisCallOnStaticMethodToStaticCallRectorTest.php +++ b/rules-tests/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector/ThisCallOnStaticMethodToStaticCallRectorTest.php @@ -19,6 +19,9 @@ final class ThisCallOnStaticMethodToStaticCallRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector/StaticCallOnNonStaticToInstanceCallRectorTest.php b/rules-tests/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector/StaticCallOnNonStaticToInstanceCallRectorTest.php index 1d154b8f9e3..171e9aa7482 100644 --- a/rules-tests/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector/StaticCallOnNonStaticToInstanceCallRectorTest.php +++ b/rules-tests/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector/StaticCallOnNonStaticToInstanceCallRectorTest.php @@ -19,6 +19,9 @@ final class StaticCallOnNonStaticToInstanceCallRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/Switch_/ReduceMultipleDefaultSwitchRector/ReduceMultipleDefaultSwitchRectorTest.php b/rules-tests/Php70/Rector/Switch_/ReduceMultipleDefaultSwitchRector/ReduceMultipleDefaultSwitchRectorTest.php index 2a0a1bf0f3f..a882a1c26d1 100644 --- a/rules-tests/Php70/Rector/Switch_/ReduceMultipleDefaultSwitchRector/ReduceMultipleDefaultSwitchRectorTest.php +++ b/rules-tests/Php70/Rector/Switch_/ReduceMultipleDefaultSwitchRector/ReduceMultipleDefaultSwitchRectorTest.php @@ -19,6 +19,9 @@ final class ReduceMultipleDefaultSwitchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/Ternary/TernaryToNullCoalescingRector/TernaryToNullCoalescingRectorTest.php b/rules-tests/Php70/Rector/Ternary/TernaryToNullCoalescingRector/TernaryToNullCoalescingRectorTest.php index 82c90e629c6..92d89c5126f 100644 --- a/rules-tests/Php70/Rector/Ternary/TernaryToNullCoalescingRector/TernaryToNullCoalescingRectorTest.php +++ b/rules-tests/Php70/Rector/Ternary/TernaryToNullCoalescingRector/TernaryToNullCoalescingRectorTest.php @@ -24,6 +24,9 @@ final class TernaryToNullCoalescingRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/Ternary/TernaryToSpaceshipRector/TernaryToSpaceshipRectorTest.php b/rules-tests/Php70/Rector/Ternary/TernaryToSpaceshipRector/TernaryToSpaceshipRectorTest.php index d848ef86a84..b62e4ebd8b8 100644 --- a/rules-tests/Php70/Rector/Ternary/TernaryToSpaceshipRector/TernaryToSpaceshipRectorTest.php +++ b/rules-tests/Php70/Rector/Ternary/TernaryToSpaceshipRector/TernaryToSpaceshipRectorTest.php @@ -19,6 +19,9 @@ final class TernaryToSpaceshipRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php70/Rector/Variable/WrapVariableVariableNameInCurlyBracesRector/WrapVariableVariableNameInCurlyBracesRectorTest.php b/rules-tests/Php70/Rector/Variable/WrapVariableVariableNameInCurlyBracesRector/WrapVariableVariableNameInCurlyBracesRectorTest.php index 23e2f8715c3..ce89bc8e033 100644 --- a/rules-tests/Php70/Rector/Variable/WrapVariableVariableNameInCurlyBracesRector/WrapVariableVariableNameInCurlyBracesRectorTest.php +++ b/rules-tests/Php70/Rector/Variable/WrapVariableVariableNameInCurlyBracesRector/WrapVariableVariableNameInCurlyBracesRectorTest.php @@ -19,6 +19,9 @@ final class WrapVariableVariableNameInCurlyBracesRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/Assign/AssignArrayToStringRector/AssignArrayToStringRectorTest.php b/rules-tests/Php71/Rector/Assign/AssignArrayToStringRector/AssignArrayToStringRectorTest.php index b1db15bf5d7..f19df552b9f 100644 --- a/rules-tests/Php71/Rector/Assign/AssignArrayToStringRector/AssignArrayToStringRectorTest.php +++ b/rules-tests/Php71/Rector/Assign/AssignArrayToStringRector/AssignArrayToStringRectorTest.php @@ -19,6 +19,9 @@ final class AssignArrayToStringRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/BinaryOp/BinaryOpBetweenNumberAndStringRector/BinaryOpBetweenNumberAndStringRectorTest.php b/rules-tests/Php71/Rector/BinaryOp/BinaryOpBetweenNumberAndStringRector/BinaryOpBetweenNumberAndStringRectorTest.php index a58f853c0a0..27c7cbefe2c 100644 --- a/rules-tests/Php71/Rector/BinaryOp/BinaryOpBetweenNumberAndStringRector/BinaryOpBetweenNumberAndStringRectorTest.php +++ b/rules-tests/Php71/Rector/BinaryOp/BinaryOpBetweenNumberAndStringRector/BinaryOpBetweenNumberAndStringRectorTest.php @@ -19,6 +19,9 @@ final class BinaryOpBetweenNumberAndStringRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/BooleanOr/IsIterableRector/IsIterableRectorTest.php b/rules-tests/Php71/Rector/BooleanOr/IsIterableRector/IsIterableRectorTest.php index 19a82725eb1..21de245d2d1 100644 --- a/rules-tests/Php71/Rector/BooleanOr/IsIterableRector/IsIterableRectorTest.php +++ b/rules-tests/Php71/Rector/BooleanOr/IsIterableRector/IsIterableRectorTest.php @@ -19,6 +19,9 @@ final class IsIterableRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/ClassConst/PublicConstantVisibilityRector/PublicConstantVisibilityRectorTest.php b/rules-tests/Php71/Rector/ClassConst/PublicConstantVisibilityRector/PublicConstantVisibilityRectorTest.php index 4e4844f1edf..7cfeb8d3d41 100644 --- a/rules-tests/Php71/Rector/ClassConst/PublicConstantVisibilityRector/PublicConstantVisibilityRectorTest.php +++ b/rules-tests/Php71/Rector/ClassConst/PublicConstantVisibilityRector/PublicConstantVisibilityRectorTest.php @@ -19,6 +19,9 @@ final class PublicConstantVisibilityRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/FuncCall/CountOnNullRector/CountOnNullRectorTest.php b/rules-tests/Php71/Rector/FuncCall/CountOnNullRector/CountOnNullRectorTest.php index c70c5806218..7421d4b97f3 100644 --- a/rules-tests/Php71/Rector/FuncCall/CountOnNullRector/CountOnNullRectorTest.php +++ b/rules-tests/Php71/Rector/FuncCall/CountOnNullRector/CountOnNullRectorTest.php @@ -18,6 +18,9 @@ final class CountOnNullRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/FuncCall/CountOnNullRector/CountOnNullRectorWithPHP73Test.php b/rules-tests/Php71/Rector/FuncCall/CountOnNullRector/CountOnNullRectorWithPHP73Test.php index 817f8300b35..81954098d28 100644 --- a/rules-tests/Php71/Rector/FuncCall/CountOnNullRector/CountOnNullRectorWithPHP73Test.php +++ b/rules-tests/Php71/Rector/FuncCall/CountOnNullRector/CountOnNullRectorWithPHP73Test.php @@ -18,6 +18,9 @@ final class CountOnNullRectorWithPHP73Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureForPhp73'); diff --git a/rules-tests/Php71/Rector/FuncCall/RemoveExtraParametersRector/RemoveExtraParametersRectorTest.php b/rules-tests/Php71/Rector/FuncCall/RemoveExtraParametersRector/RemoveExtraParametersRectorTest.php index cc7f387d4c5..1e179f43a0f 100644 --- a/rules-tests/Php71/Rector/FuncCall/RemoveExtraParametersRector/RemoveExtraParametersRectorTest.php +++ b/rules-tests/Php71/Rector/FuncCall/RemoveExtraParametersRector/RemoveExtraParametersRectorTest.php @@ -19,6 +19,9 @@ final class RemoveExtraParametersRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/List_/ListToArrayDestructRector/ListToArrayDestructRectorTest.php b/rules-tests/Php71/Rector/List_/ListToArrayDestructRector/ListToArrayDestructRectorTest.php index 22b2b0a0ce0..288ce95defd 100644 --- a/rules-tests/Php71/Rector/List_/ListToArrayDestructRector/ListToArrayDestructRectorTest.php +++ b/rules-tests/Php71/Rector/List_/ListToArrayDestructRector/ListToArrayDestructRectorTest.php @@ -19,6 +19,9 @@ final class ListToArrayDestructRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/Name/ReservedObjectRector/ReservedObjectRectorTest.php b/rules-tests/Php71/Rector/Name/ReservedObjectRector/ReservedObjectRectorTest.php index 9934b914465..0754519e47c 100644 --- a/rules-tests/Php71/Rector/Name/ReservedObjectRector/ReservedObjectRectorTest.php +++ b/rules-tests/Php71/Rector/Name/ReservedObjectRector/ReservedObjectRectorTest.php @@ -18,6 +18,9 @@ final class ReservedObjectRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php71/Rector/TryCatch/MultiExceptionCatchRector/MultiExceptionCatchRectorTest.php b/rules-tests/Php71/Rector/TryCatch/MultiExceptionCatchRector/MultiExceptionCatchRectorTest.php index a2bb40c9529..f1bc8929bf7 100644 --- a/rules-tests/Php71/Rector/TryCatch/MultiExceptionCatchRector/MultiExceptionCatchRectorTest.php +++ b/rules-tests/Php71/Rector/TryCatch/MultiExceptionCatchRector/MultiExceptionCatchRectorTest.php @@ -19,6 +19,9 @@ final class MultiExceptionCatchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/Assign/ListEachRector/ListEachRectorTest.php b/rules-tests/Php72/Rector/Assign/ListEachRector/ListEachRectorTest.php index 05764d65482..1dfd95578f1 100644 --- a/rules-tests/Php72/Rector/Assign/ListEachRector/ListEachRectorTest.php +++ b/rules-tests/Php72/Rector/Assign/ListEachRector/ListEachRectorTest.php @@ -25,6 +25,9 @@ final class ListEachRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/FuncCall/CreateFunctionToAnonymousFunctionRector/CreateFunctionToAnonymousFunctionRectorTest.php b/rules-tests/Php72/Rector/FuncCall/CreateFunctionToAnonymousFunctionRector/CreateFunctionToAnonymousFunctionRectorTest.php index a1fc88b71d6..8060d337bb7 100644 --- a/rules-tests/Php72/Rector/FuncCall/CreateFunctionToAnonymousFunctionRector/CreateFunctionToAnonymousFunctionRectorTest.php +++ b/rules-tests/Php72/Rector/FuncCall/CreateFunctionToAnonymousFunctionRector/CreateFunctionToAnonymousFunctionRectorTest.php @@ -19,6 +19,9 @@ final class CreateFunctionToAnonymousFunctionRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/FuncCall/GetClassOnNullRector/GetClassOnNullRectorTest.php b/rules-tests/Php72/Rector/FuncCall/GetClassOnNullRector/GetClassOnNullRectorTest.php index 2bb8aea2d4f..214920313b1 100644 --- a/rules-tests/Php72/Rector/FuncCall/GetClassOnNullRector/GetClassOnNullRectorTest.php +++ b/rules-tests/Php72/Rector/FuncCall/GetClassOnNullRector/GetClassOnNullRectorTest.php @@ -19,6 +19,9 @@ final class GetClassOnNullRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/FuncCall/GetClassOnNullRector/PostImportTest.php b/rules-tests/Php72/Rector/FuncCall/GetClassOnNullRector/PostImportTest.php index fa45b8d7f4f..5ddbebc7042 100644 --- a/rules-tests/Php72/Rector/FuncCall/GetClassOnNullRector/PostImportTest.php +++ b/rules-tests/Php72/Rector/FuncCall/GetClassOnNullRector/PostImportTest.php @@ -18,6 +18,9 @@ final class PostImportTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePostImport'); diff --git a/rules-tests/Php72/Rector/FuncCall/IsObjectOnIncompleteClassRector/IsObjectOnIncompleteClassRectorTest.php b/rules-tests/Php72/Rector/FuncCall/IsObjectOnIncompleteClassRector/IsObjectOnIncompleteClassRectorTest.php index 279b64012d6..2eb33a42f12 100644 --- a/rules-tests/Php72/Rector/FuncCall/IsObjectOnIncompleteClassRector/IsObjectOnIncompleteClassRectorTest.php +++ b/rules-tests/Php72/Rector/FuncCall/IsObjectOnIncompleteClassRector/IsObjectOnIncompleteClassRectorTest.php @@ -19,6 +19,9 @@ final class IsObjectOnIncompleteClassRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/FuncCall/ParseStrWithResultArgumentRector/ParseStrWithResultArgumentRectorTest.php b/rules-tests/Php72/Rector/FuncCall/ParseStrWithResultArgumentRector/ParseStrWithResultArgumentRectorTest.php index 88ed8a6abfa..70234c3d58a 100644 --- a/rules-tests/Php72/Rector/FuncCall/ParseStrWithResultArgumentRector/ParseStrWithResultArgumentRectorTest.php +++ b/rules-tests/Php72/Rector/FuncCall/ParseStrWithResultArgumentRector/ParseStrWithResultArgumentRectorTest.php @@ -22,6 +22,9 @@ final class ParseStrWithResultArgumentRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/FuncCall/StringifyDefineRector/StringifyDefineRectorTest.php b/rules-tests/Php72/Rector/FuncCall/StringifyDefineRector/StringifyDefineRectorTest.php index 3b4f3e03ab6..13b6dd72514 100644 --- a/rules-tests/Php72/Rector/FuncCall/StringifyDefineRector/StringifyDefineRectorTest.php +++ b/rules-tests/Php72/Rector/FuncCall/StringifyDefineRector/StringifyDefineRectorTest.php @@ -22,6 +22,9 @@ final class StringifyDefineRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/FuncCall/StringsAssertNakedRector/StringsAssertNakedRectorTest.php b/rules-tests/Php72/Rector/FuncCall/StringsAssertNakedRector/StringsAssertNakedRectorTest.php index 03ab3e3dbae..1a63a97f081 100644 --- a/rules-tests/Php72/Rector/FuncCall/StringsAssertNakedRector/StringsAssertNakedRectorTest.php +++ b/rules-tests/Php72/Rector/FuncCall/StringsAssertNakedRector/StringsAssertNakedRectorTest.php @@ -22,6 +22,9 @@ final class StringsAssertNakedRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/Unset_/UnsetCastRector/UnsetCastRectorTest.php b/rules-tests/Php72/Rector/Unset_/UnsetCastRector/UnsetCastRectorTest.php index 4f4e899a4e1..9807a62cec1 100644 --- a/rules-tests/Php72/Rector/Unset_/UnsetCastRector/UnsetCastRectorTest.php +++ b/rules-tests/Php72/Rector/Unset_/UnsetCastRector/UnsetCastRectorTest.php @@ -22,6 +22,9 @@ final class UnsetCastRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php72/Rector/While_/WhileEachToForeachRector/WhileEachToForeachRectorTest.php b/rules-tests/Php72/Rector/While_/WhileEachToForeachRector/WhileEachToForeachRectorTest.php index b7f1a8806fe..c5eedf8a524 100644 --- a/rules-tests/Php72/Rector/While_/WhileEachToForeachRector/WhileEachToForeachRectorTest.php +++ b/rules-tests/Php72/Rector/While_/WhileEachToForeachRector/WhileEachToForeachRectorTest.php @@ -22,6 +22,9 @@ final class WhileEachToForeachRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/BinaryOr/IsCountableRector/IsCountableRectorTest.php b/rules-tests/Php73/Rector/BinaryOr/IsCountableRector/IsCountableRectorTest.php index 0afcfa3681c..b4790cad28c 100644 --- a/rules-tests/Php73/Rector/BinaryOr/IsCountableRector/IsCountableRectorTest.php +++ b/rules-tests/Php73/Rector/BinaryOr/IsCountableRector/IsCountableRectorTest.php @@ -20,6 +20,9 @@ final class IsCountableRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/BinaryOr/IsCountableRector/PolyfillRectorTest.php b/rules-tests/Php73/Rector/BinaryOr/IsCountableRector/PolyfillRectorTest.php index 8a5fbce4f05..8cbd8125337 100644 --- a/rules-tests/Php73/Rector/BinaryOr/IsCountableRector/PolyfillRectorTest.php +++ b/rules-tests/Php73/Rector/BinaryOr/IsCountableRector/PolyfillRectorTest.php @@ -18,6 +18,9 @@ final class PolyfillRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureWithPolyfill'); diff --git a/rules-tests/Php73/Rector/ConstFetch/SensitiveConstantNameRector/SensitiveConstantNameRectorTest.php b/rules-tests/Php73/Rector/ConstFetch/SensitiveConstantNameRector/SensitiveConstantNameRectorTest.php index 665e9b5f54c..dfc1e45c599 100644 --- a/rules-tests/Php73/Rector/ConstFetch/SensitiveConstantNameRector/SensitiveConstantNameRectorTest.php +++ b/rules-tests/Php73/Rector/ConstFetch/SensitiveConstantNameRector/SensitiveConstantNameRectorTest.php @@ -19,6 +19,9 @@ final class SensitiveConstantNameRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/FuncCall/ArrayKeyFirstLastRector/ArrayKeyFirstLastRectorTest.php b/rules-tests/Php73/Rector/FuncCall/ArrayKeyFirstLastRector/ArrayKeyFirstLastRectorTest.php index 422637844e1..6784363fbf5 100644 --- a/rules-tests/Php73/Rector/FuncCall/ArrayKeyFirstLastRector/ArrayKeyFirstLastRectorTest.php +++ b/rules-tests/Php73/Rector/FuncCall/ArrayKeyFirstLastRector/ArrayKeyFirstLastRectorTest.php @@ -19,6 +19,9 @@ final class ArrayKeyFirstLastRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/FuncCall/JsonThrowOnErrorRector/JsonThrowOnErrorRectorTest.php b/rules-tests/Php73/Rector/FuncCall/JsonThrowOnErrorRector/JsonThrowOnErrorRectorTest.php index 993867675bf..3a7a63028c8 100644 --- a/rules-tests/Php73/Rector/FuncCall/JsonThrowOnErrorRector/JsonThrowOnErrorRectorTest.php +++ b/rules-tests/Php73/Rector/FuncCall/JsonThrowOnErrorRector/JsonThrowOnErrorRectorTest.php @@ -19,6 +19,9 @@ final class JsonThrowOnErrorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/RegexDashEscapeRectorTest.php b/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/RegexDashEscapeRectorTest.php index ef9f72c97c8..6fc3f8894a2 100644 --- a/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/RegexDashEscapeRectorTest.php +++ b/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/RegexDashEscapeRectorTest.php @@ -19,6 +19,9 @@ final class RegexDashEscapeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/FuncCall/SensitiveDefineRector/SensitiveDefineRectorTest.php b/rules-tests/Php73/Rector/FuncCall/SensitiveDefineRector/SensitiveDefineRectorTest.php index 2122de74e95..f796d7f35f2 100644 --- a/rules-tests/Php73/Rector/FuncCall/SensitiveDefineRector/SensitiveDefineRectorTest.php +++ b/rules-tests/Php73/Rector/FuncCall/SensitiveDefineRector/SensitiveDefineRectorTest.php @@ -19,6 +19,9 @@ final class SensitiveDefineRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/FuncCall/SetcookieRector/SetCookieRectorTest.php b/rules-tests/Php73/Rector/FuncCall/SetcookieRector/SetCookieRectorTest.php index ad7e6bd28ca..dbb7b57f5dd 100644 --- a/rules-tests/Php73/Rector/FuncCall/SetcookieRector/SetCookieRectorTest.php +++ b/rules-tests/Php73/Rector/FuncCall/SetcookieRector/SetCookieRectorTest.php @@ -19,6 +19,9 @@ final class SetCookieRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/FuncCall/StringifyStrNeedlesRector/StringifyStrNeedlesRectorTest.php b/rules-tests/Php73/Rector/FuncCall/StringifyStrNeedlesRector/StringifyStrNeedlesRectorTest.php index bb9de2d0acb..ea760dc1dde 100644 --- a/rules-tests/Php73/Rector/FuncCall/StringifyStrNeedlesRector/StringifyStrNeedlesRectorTest.php +++ b/rules-tests/Php73/Rector/FuncCall/StringifyStrNeedlesRector/StringifyStrNeedlesRectorTest.php @@ -19,6 +19,9 @@ final class StringifyStrNeedlesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php73/Rector/String_/SensitiveHereNowDocRector/SensitiveHereNowDocRectorTest.php b/rules-tests/Php73/Rector/String_/SensitiveHereNowDocRector/SensitiveHereNowDocRectorTest.php index 1e09010aa4b..224b00605e9 100644 --- a/rules-tests/Php73/Rector/String_/SensitiveHereNowDocRector/SensitiveHereNowDocRectorTest.php +++ b/rules-tests/Php73/Rector/String_/SensitiveHereNowDocRector/SensitiveHereNowDocRectorTest.php @@ -19,6 +19,9 @@ final class SensitiveHereNowDocRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/Assign/NullCoalescingOperatorRector/NullCoalescingOperatorRectorTest.php b/rules-tests/Php74/Rector/Assign/NullCoalescingOperatorRector/NullCoalescingOperatorRectorTest.php index dd7afb25126..4dc32e3b67d 100644 --- a/rules-tests/Php74/Rector/Assign/NullCoalescingOperatorRector/NullCoalescingOperatorRectorTest.php +++ b/rules-tests/Php74/Rector/Assign/NullCoalescingOperatorRector/NullCoalescingOperatorRectorTest.php @@ -19,6 +19,9 @@ final class NullCoalescingOperatorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/Closure/ClosureToArrowFunctionRector/ClosureToArrowFunctionRectorTest.php b/rules-tests/Php74/Rector/Closure/ClosureToArrowFunctionRector/ClosureToArrowFunctionRectorTest.php index 841a081bb00..f49ecedea46 100644 --- a/rules-tests/Php74/Rector/Closure/ClosureToArrowFunctionRector/ClosureToArrowFunctionRectorTest.php +++ b/rules-tests/Php74/Rector/Closure/ClosureToArrowFunctionRector/ClosureToArrowFunctionRectorTest.php @@ -19,6 +19,9 @@ final class ClosureToArrowFunctionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/Double/RealToFloatTypeCastRector/RealToFloatTypeCastRectorTest.php b/rules-tests/Php74/Rector/Double/RealToFloatTypeCastRector/RealToFloatTypeCastRectorTest.php index 91819b6c070..a02e40f9f19 100644 --- a/rules-tests/Php74/Rector/Double/RealToFloatTypeCastRector/RealToFloatTypeCastRectorTest.php +++ b/rules-tests/Php74/Rector/Double/RealToFloatTypeCastRector/RealToFloatTypeCastRectorTest.php @@ -22,6 +22,9 @@ final class RealToFloatTypeCastRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/FuncCall/ArrayKeyExistsOnPropertyRector/ArrayKeyExistsOnPropertyRectorTest.php b/rules-tests/Php74/Rector/FuncCall/ArrayKeyExistsOnPropertyRector/ArrayKeyExistsOnPropertyRectorTest.php index 230eb9afe96..73ed3e6ae2d 100644 --- a/rules-tests/Php74/Rector/FuncCall/ArrayKeyExistsOnPropertyRector/ArrayKeyExistsOnPropertyRectorTest.php +++ b/rules-tests/Php74/Rector/FuncCall/ArrayKeyExistsOnPropertyRector/ArrayKeyExistsOnPropertyRectorTest.php @@ -22,6 +22,9 @@ final class ArrayKeyExistsOnPropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/FuncCall/ArraySpreadInsteadOfArrayMergeRector/ArraySpreadInsteadOfArrayMergeRectorTest.php b/rules-tests/Php74/Rector/FuncCall/ArraySpreadInsteadOfArrayMergeRector/ArraySpreadInsteadOfArrayMergeRectorTest.php index 74403b82a42..5d0d1662c63 100644 --- a/rules-tests/Php74/Rector/FuncCall/ArraySpreadInsteadOfArrayMergeRector/ArraySpreadInsteadOfArrayMergeRectorTest.php +++ b/rules-tests/Php74/Rector/FuncCall/ArraySpreadInsteadOfArrayMergeRector/ArraySpreadInsteadOfArrayMergeRectorTest.php @@ -19,6 +19,9 @@ final class ArraySpreadInsteadOfArrayMergeRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/FuncCall/FilterVarToAddSlashesRector/FilterVarToAddSlashesRectorTest.php b/rules-tests/Php74/Rector/FuncCall/FilterVarToAddSlashesRector/FilterVarToAddSlashesRectorTest.php index c4201cc0e62..97e4a360dc1 100644 --- a/rules-tests/Php74/Rector/FuncCall/FilterVarToAddSlashesRector/FilterVarToAddSlashesRectorTest.php +++ b/rules-tests/Php74/Rector/FuncCall/FilterVarToAddSlashesRector/FilterVarToAddSlashesRectorTest.php @@ -22,6 +22,9 @@ final class FilterVarToAddSlashesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/FuncCall/GetCalledClassToStaticClassRector/GetCalledClassToStaticClassRectorTest.php b/rules-tests/Php74/Rector/FuncCall/GetCalledClassToStaticClassRector/GetCalledClassToStaticClassRectorTest.php index 544ab2dcbe8..b6f16463c81 100644 --- a/rules-tests/Php74/Rector/FuncCall/GetCalledClassToStaticClassRector/GetCalledClassToStaticClassRectorTest.php +++ b/rules-tests/Php74/Rector/FuncCall/GetCalledClassToStaticClassRector/GetCalledClassToStaticClassRectorTest.php @@ -19,6 +19,9 @@ final class GetCalledClassToStaticClassRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/FuncCall/MbStrrposEncodingArgumentPositionRector/MbStrrposEncodingArgumentPositionRectorTest.php b/rules-tests/Php74/Rector/FuncCall/MbStrrposEncodingArgumentPositionRector/MbStrrposEncodingArgumentPositionRectorTest.php index adae3011975..dbb4e615fdb 100644 --- a/rules-tests/Php74/Rector/FuncCall/MbStrrposEncodingArgumentPositionRector/MbStrrposEncodingArgumentPositionRectorTest.php +++ b/rules-tests/Php74/Rector/FuncCall/MbStrrposEncodingArgumentPositionRector/MbStrrposEncodingArgumentPositionRectorTest.php @@ -19,6 +19,9 @@ final class MbStrrposEncodingArgumentPositionRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php b/rules-tests/Php74/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php index 1746f4c682a..4556506400a 100644 --- a/rules-tests/Php74/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php +++ b/rules-tests/Php74/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php @@ -18,6 +18,9 @@ final class ReservedFnFunctionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/LNumber/AddLiteralSeparatorToNumberRector/AddLiteralSeparatorToNumberRectorTest.php b/rules-tests/Php74/Rector/LNumber/AddLiteralSeparatorToNumberRector/AddLiteralSeparatorToNumberRectorTest.php index 60977c87fc3..179b0bcbd34 100644 --- a/rules-tests/Php74/Rector/LNumber/AddLiteralSeparatorToNumberRector/AddLiteralSeparatorToNumberRectorTest.php +++ b/rules-tests/Php74/Rector/LNumber/AddLiteralSeparatorToNumberRector/AddLiteralSeparatorToNumberRectorTest.php @@ -18,6 +18,9 @@ final class AddLiteralSeparatorToNumberRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/MethodCall/ChangeReflectionTypeToStringToGetNameRector/ChangeReflectionTypeToStringToGetNameRectorTest.php b/rules-tests/Php74/Rector/MethodCall/ChangeReflectionTypeToStringToGetNameRector/ChangeReflectionTypeToStringToGetNameRectorTest.php index 8ea635a315b..91bd477da96 100644 --- a/rules-tests/Php74/Rector/MethodCall/ChangeReflectionTypeToStringToGetNameRector/ChangeReflectionTypeToStringToGetNameRectorTest.php +++ b/rules-tests/Php74/Rector/MethodCall/ChangeReflectionTypeToStringToGetNameRector/ChangeReflectionTypeToStringToGetNameRectorTest.php @@ -19,6 +19,9 @@ final class ChangeReflectionTypeToStringToGetNameRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/Property/RestoreDefaultNullToNullableTypePropertyRector/RestoreDefaultNullToNullableTypePropertyRectorTest.php b/rules-tests/Php74/Rector/Property/RestoreDefaultNullToNullableTypePropertyRector/RestoreDefaultNullToNullableTypePropertyRectorTest.php index d04f807ed29..1d70708abb7 100644 --- a/rules-tests/Php74/Rector/Property/RestoreDefaultNullToNullableTypePropertyRector/RestoreDefaultNullToNullableTypePropertyRectorTest.php +++ b/rules-tests/Php74/Rector/Property/RestoreDefaultNullToNullableTypePropertyRector/RestoreDefaultNullToNullableTypePropertyRectorTest.php @@ -20,6 +20,9 @@ final class RestoreDefaultNullToNullableTypePropertyRectorTest extends AbstractR $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/Property/TypedPropertyRector/ClassLikeTypesOnlyTest.php b/rules-tests/Php74/Rector/Property/TypedPropertyRector/ClassLikeTypesOnlyTest.php index 6d0a42d29ec..5f8f25099c2 100644 --- a/rules-tests/Php74/Rector/Property/TypedPropertyRector/ClassLikeTypesOnlyTest.php +++ b/rules-tests/Php74/Rector/Property/TypedPropertyRector/ClassLikeTypesOnlyTest.php @@ -18,6 +18,9 @@ final class ClassLikeTypesOnlyTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureClassLikeTypeOnly'); diff --git a/rules-tests/Php74/Rector/Property/TypedPropertyRector/DoctrineTypedPropertyRectorTest.php b/rules-tests/Php74/Rector/Property/TypedPropertyRector/DoctrineTypedPropertyRectorTest.php index 64b6f72d6ef..c82ea185ce7 100644 --- a/rules-tests/Php74/Rector/Property/TypedPropertyRector/DoctrineTypedPropertyRectorTest.php +++ b/rules-tests/Php74/Rector/Property/TypedPropertyRector/DoctrineTypedPropertyRectorTest.php @@ -18,6 +18,9 @@ final class DoctrineTypedPropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureDoctrine'); diff --git a/rules-tests/Php74/Rector/Property/TypedPropertyRector/ImportedTest.php b/rules-tests/Php74/Rector/Property/TypedPropertyRector/ImportedTest.php index d5c85a2173c..470f07efe94 100644 --- a/rules-tests/Php74/Rector/Property/TypedPropertyRector/ImportedTest.php +++ b/rules-tests/Php74/Rector/Property/TypedPropertyRector/ImportedTest.php @@ -18,6 +18,9 @@ final class ImportedTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureImported'); diff --git a/rules-tests/Php74/Rector/Property/TypedPropertyRector/TypedPropertyRectorTest.php b/rules-tests/Php74/Rector/Property/TypedPropertyRector/TypedPropertyRectorTest.php index eeb71c270ca..2ea7c6fbf41 100644 --- a/rules-tests/Php74/Rector/Property/TypedPropertyRector/TypedPropertyRectorTest.php +++ b/rules-tests/Php74/Rector/Property/TypedPropertyRector/TypedPropertyRectorTest.php @@ -18,6 +18,9 @@ final class TypedPropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php74/Rector/Property/TypedPropertyRector/UnionTypedPropertyRectorTest.php b/rules-tests/Php74/Rector/Property/TypedPropertyRector/UnionTypedPropertyRectorTest.php index a8e804d3723..2f07de7e8e0 100644 --- a/rules-tests/Php74/Rector/Property/TypedPropertyRector/UnionTypedPropertyRectorTest.php +++ b/rules-tests/Php74/Rector/Property/TypedPropertyRector/UnionTypedPropertyRectorTest.php @@ -19,6 +19,9 @@ final class UnionTypedPropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureUnionTypes'); diff --git a/rules-tests/Php74/Rector/StaticCall/ExportToReflectionFunctionRector/ExportToReflectionFunctionRectorTest.php b/rules-tests/Php74/Rector/StaticCall/ExportToReflectionFunctionRector/ExportToReflectionFunctionRectorTest.php index bda1792c96a..c729086f8b2 100644 --- a/rules-tests/Php74/Rector/StaticCall/ExportToReflectionFunctionRector/ExportToReflectionFunctionRectorTest.php +++ b/rules-tests/Php74/Rector/StaticCall/ExportToReflectionFunctionRector/ExportToReflectionFunctionRectorTest.php @@ -19,6 +19,9 @@ final class ExportToReflectionFunctionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/Catch_/RemoveUnusedVariableInCatchRector/RemoveUnusedVariableInCatchRectorTest.php b/rules-tests/Php80/Rector/Catch_/RemoveUnusedVariableInCatchRector/RemoveUnusedVariableInCatchRectorTest.php index 5597bdf1270..021397dfc9a 100644 --- a/rules-tests/Php80/Rector/Catch_/RemoveUnusedVariableInCatchRector/RemoveUnusedVariableInCatchRectorTest.php +++ b/rules-tests/Php80/Rector/Catch_/RemoveUnusedVariableInCatchRector/RemoveUnusedVariableInCatchRectorTest.php @@ -19,6 +19,9 @@ final class RemoveUnusedVariableInCatchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/ClassMethod/FinalPrivateToPrivateVisibilityRector/FinalPrivateToPrivateVisibilityRectorTest.php b/rules-tests/Php80/Rector/ClassMethod/FinalPrivateToPrivateVisibilityRector/FinalPrivateToPrivateVisibilityRectorTest.php index 10761070499..8b9d69ac69e 100644 --- a/rules-tests/Php80/Rector/ClassMethod/FinalPrivateToPrivateVisibilityRector/FinalPrivateToPrivateVisibilityRectorTest.php +++ b/rules-tests/Php80/Rector/ClassMethod/FinalPrivateToPrivateVisibilityRector/FinalPrivateToPrivateVisibilityRectorTest.php @@ -20,6 +20,9 @@ final class FinalPrivateToPrivateVisibilityRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/ClassMethod/OptionalParametersAfterRequiredRector/OptionalParametersAfterRequiredRectorTest.php b/rules-tests/Php80/Rector/ClassMethod/OptionalParametersAfterRequiredRector/OptionalParametersAfterRequiredRectorTest.php index 51571cb23ea..ef7a4476c37 100644 --- a/rules-tests/Php80/Rector/ClassMethod/OptionalParametersAfterRequiredRector/OptionalParametersAfterRequiredRectorTest.php +++ b/rules-tests/Php80/Rector/ClassMethod/OptionalParametersAfterRequiredRector/OptionalParametersAfterRequiredRectorTest.php @@ -19,6 +19,9 @@ final class OptionalParametersAfterRequiredRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/ClassMethod/SetStateToStaticRector/SetStateToStaticRectorTest.php b/rules-tests/Php80/Rector/ClassMethod/SetStateToStaticRector/SetStateToStaticRectorTest.php index a6dc43386a9..467563c646a 100644 --- a/rules-tests/Php80/Rector/ClassMethod/SetStateToStaticRector/SetStateToStaticRectorTest.php +++ b/rules-tests/Php80/Rector/ClassMethod/SetStateToStaticRector/SetStateToStaticRectorTest.php @@ -20,6 +20,9 @@ final class SetStateToStaticRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/AnnotationToAttributeRectorTest.php b/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/AnnotationToAttributeRectorTest.php index b2b0df3b248..57e60701111 100644 --- a/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/AnnotationToAttributeRectorTest.php +++ b/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/AnnotationToAttributeRectorTest.php @@ -19,6 +19,9 @@ final class AnnotationToAttributeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/AutoImportedAnnotationToAttributeRectorTest.php b/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/AutoImportedAnnotationToAttributeRectorTest.php index 7fbe6017de3..eaaca34ff48 100644 --- a/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/AutoImportedAnnotationToAttributeRectorTest.php +++ b/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/AutoImportedAnnotationToAttributeRectorTest.php @@ -18,6 +18,9 @@ final class AutoImportedAnnotationToAttributeRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImported'); diff --git a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/ClassPropertyAssignToConstructorPromotionRectorTest.php b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/ClassPropertyAssignToConstructorPromotionRectorTest.php index 0fd1df941bd..dda355f8383 100644 --- a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/ClassPropertyAssignToConstructorPromotionRectorTest.php +++ b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/ClassPropertyAssignToConstructorPromotionRectorTest.php @@ -20,6 +20,9 @@ final class ClassPropertyAssignToConstructorPromotionRectorTest extends Abstract $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/Class_/StringableForToStringRector/StringableForToStringRectorTest.php b/rules-tests/Php80/Rector/Class_/StringableForToStringRector/StringableForToStringRectorTest.php index 3d37bbbf2c8..7f1e849c592 100644 --- a/rules-tests/Php80/Rector/Class_/StringableForToStringRector/StringableForToStringRectorTest.php +++ b/rules-tests/Php80/Rector/Class_/StringableForToStringRector/StringableForToStringRectorTest.php @@ -19,6 +19,9 @@ final class StringableForToStringRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/FuncCall/ClassOnObjectRector/ClassOnObjectRectorTest.php b/rules-tests/Php80/Rector/FuncCall/ClassOnObjectRector/ClassOnObjectRectorTest.php index 62ea0bb45ff..f99cc1490b4 100644 --- a/rules-tests/Php80/Rector/FuncCall/ClassOnObjectRector/ClassOnObjectRectorTest.php +++ b/rules-tests/Php80/Rector/FuncCall/ClassOnObjectRector/ClassOnObjectRectorTest.php @@ -19,6 +19,9 @@ final class ClassOnObjectRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/FuncCall/TokenGetAllToObjectRector/TokenGetAllToObjectRectorTest.php b/rules-tests/Php80/Rector/FuncCall/TokenGetAllToObjectRector/TokenGetAllToObjectRectorTest.php index 2d712be18b9..40545747de4 100644 --- a/rules-tests/Php80/Rector/FuncCall/TokenGetAllToObjectRector/TokenGetAllToObjectRectorTest.php +++ b/rules-tests/Php80/Rector/FuncCall/TokenGetAllToObjectRector/TokenGetAllToObjectRectorTest.php @@ -19,6 +19,9 @@ final class TokenGetAllToObjectRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/FunctionLike/UnionTypesRector/UnionTypesRectorTest.php b/rules-tests/Php80/Rector/FunctionLike/UnionTypesRector/UnionTypesRectorTest.php index e7f4c5ff0d1..5f6118d9190 100644 --- a/rules-tests/Php80/Rector/FunctionLike/UnionTypesRector/UnionTypesRectorTest.php +++ b/rules-tests/Php80/Rector/FunctionLike/UnionTypesRector/UnionTypesRectorTest.php @@ -19,6 +19,9 @@ final class UnionTypesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/Identical/StrEndsWithRector/StrEndsWithRectorTest.php b/rules-tests/Php80/Rector/Identical/StrEndsWithRector/StrEndsWithRectorTest.php index 64840612b2a..345a3804895 100644 --- a/rules-tests/Php80/Rector/Identical/StrEndsWithRector/StrEndsWithRectorTest.php +++ b/rules-tests/Php80/Rector/Identical/StrEndsWithRector/StrEndsWithRectorTest.php @@ -19,6 +19,9 @@ final class StrEndsWithRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/Identical/StrStartsWithRector/StrStartsWithRectorTest.php b/rules-tests/Php80/Rector/Identical/StrStartsWithRector/StrStartsWithRectorTest.php index d3a13593cc5..860c7442208 100644 --- a/rules-tests/Php80/Rector/Identical/StrStartsWithRector/StrStartsWithRectorTest.php +++ b/rules-tests/Php80/Rector/Identical/StrStartsWithRector/StrStartsWithRectorTest.php @@ -19,6 +19,9 @@ final class StrStartsWithRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/If_/NullsafeOperatorRector/NullsafeOperatorRectorTest.php b/rules-tests/Php80/Rector/If_/NullsafeOperatorRector/NullsafeOperatorRectorTest.php index 4746b0186b3..03c381566db 100644 --- a/rules-tests/Php80/Rector/If_/NullsafeOperatorRector/NullsafeOperatorRectorTest.php +++ b/rules-tests/Php80/Rector/If_/NullsafeOperatorRector/NullsafeOperatorRectorTest.php @@ -19,6 +19,9 @@ final class NullsafeOperatorRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/NotIdentical/StrContainsRector/StrContainsRectorTest.php b/rules-tests/Php80/Rector/NotIdentical/StrContainsRector/StrContainsRectorTest.php index 040ed72de64..ebf1638d079 100644 --- a/rules-tests/Php80/Rector/NotIdentical/StrContainsRector/StrContainsRectorTest.php +++ b/rules-tests/Php80/Rector/NotIdentical/StrContainsRector/StrContainsRectorTest.php @@ -19,6 +19,9 @@ final class StrContainsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/Switch_/ChangeSwitchToMatchRector/ChangeSwitchToMatchRectorTest.php b/rules-tests/Php80/Rector/Switch_/ChangeSwitchToMatchRector/ChangeSwitchToMatchRectorTest.php index 3a7a9cab9ad..f9024e4ed98 100644 --- a/rules-tests/Php80/Rector/Switch_/ChangeSwitchToMatchRector/ChangeSwitchToMatchRectorTest.php +++ b/rules-tests/Php80/Rector/Switch_/ChangeSwitchToMatchRector/ChangeSwitchToMatchRectorTest.php @@ -19,6 +19,9 @@ final class ChangeSwitchToMatchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Php80/Rector/Ternary/GetDebugTypeRector/GetDebugTypeRectorTest.php b/rules-tests/Php80/Rector/Ternary/GetDebugTypeRector/GetDebugTypeRectorTest.php index a2ebb457f96..727c32a7f65 100644 --- a/rules-tests/Php80/Rector/Ternary/GetDebugTypeRector/GetDebugTypeRectorTest.php +++ b/rules-tests/Php80/Rector/Ternary/GetDebugTypeRector/GetDebugTypeRectorTest.php @@ -19,6 +19,9 @@ final class GetDebugTypeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/PhpSpecToPHPUnit/Rector/FileNode/RenameSpecFileToTestFileRector/RenameSpecFileToTestFileRectorTest.php b/rules-tests/PhpSpecToPHPUnit/Rector/FileNode/RenameSpecFileToTestFileRector/RenameSpecFileToTestFileRectorTest.php index c7cc28178d7..d0d8c6a4ed3 100644 --- a/rules-tests/PhpSpecToPHPUnit/Rector/FileNode/RenameSpecFileToTestFileRector/RenameSpecFileToTestFileRectorTest.php +++ b/rules-tests/PhpSpecToPHPUnit/Rector/FileNode/RenameSpecFileToTestFileRector/RenameSpecFileToTestFileRectorTest.php @@ -27,6 +27,9 @@ final class RenameSpecFileToTestFileRectorTest extends AbstractRectorTestCase $this->assertTrue(Strings::endsWith($movedFile->getNewPathname(), 'Test.php')); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture', '*.php'); diff --git a/rules-tests/PhpSpecToPHPUnit/Rector/Variable/PhpSpecToPHPUnitRector/PhpSpecToPHPUnitRectorTest.php b/rules-tests/PhpSpecToPHPUnit/Rector/Variable/PhpSpecToPHPUnitRector/PhpSpecToPHPUnitRectorTest.php index 97cea528f06..6c6afef9457 100644 --- a/rules-tests/PhpSpecToPHPUnit/Rector/Variable/PhpSpecToPHPUnitRector/PhpSpecToPHPUnitRectorTest.php +++ b/rules-tests/PhpSpecToPHPUnit/Rector/Variable/PhpSpecToPHPUnitRector/PhpSpecToPHPUnitRectorTest.php @@ -6,6 +6,7 @@ namespace Rector\Tests\PhpSpecToPHPUnit\Rector\Variable\PhpSpecToPHPUnitRector; use Iterator; use Rector\Testing\PHPUnit\AbstractRectorTestCase; +use Symplify\EasyTesting\DataProvider\StaticFixtureFinder; use Symplify\SmartFileSystem\SmartFileInfo; final class PhpSpecToPHPUnitRectorTest extends AbstractRectorTestCase @@ -20,7 +21,7 @@ final class PhpSpecToPHPUnitRectorTest extends AbstractRectorTestCase public function provideData(): Iterator { - return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); + return StaticFixtureFinder::yieldDirectory(__DIR__ . '/Fixture', '*.php.inc'); } protected function provideConfigFilePath(): string diff --git a/rules-tests/Privatization/Rector/ClassConst/PrivatizeLocalClassConstantRector/PrivatizeLocalClassConstantRectorTest.php b/rules-tests/Privatization/Rector/ClassConst/PrivatizeLocalClassConstantRector/PrivatizeLocalClassConstantRectorTest.php index 7d329bc2aa3..0cdb3b2dd33 100644 --- a/rules-tests/Privatization/Rector/ClassConst/PrivatizeLocalClassConstantRector/PrivatizeLocalClassConstantRectorTest.php +++ b/rules-tests/Privatization/Rector/ClassConst/PrivatizeLocalClassConstantRector/PrivatizeLocalClassConstantRectorTest.php @@ -19,6 +19,9 @@ final class PrivatizeLocalClassConstantRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/ClassMethod/ChangeGlobalVariablesToPropertiesRector/ChangeGlobalVariablesToPropertiesRectorTest.php b/rules-tests/Privatization/Rector/ClassMethod/ChangeGlobalVariablesToPropertiesRector/ChangeGlobalVariablesToPropertiesRectorTest.php index 0c01dca420a..a9422712d76 100644 --- a/rules-tests/Privatization/Rector/ClassMethod/ChangeGlobalVariablesToPropertiesRector/ChangeGlobalVariablesToPropertiesRectorTest.php +++ b/rules-tests/Privatization/Rector/ClassMethod/ChangeGlobalVariablesToPropertiesRector/ChangeGlobalVariablesToPropertiesRectorTest.php @@ -19,6 +19,9 @@ final class ChangeGlobalVariablesToPropertiesRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/MakeOnlyUsedByChildrenProtectedRectorTest.php b/rules-tests/Privatization/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/MakeOnlyUsedByChildrenProtectedRectorTest.php index e96229091c7..07daa064dcd 100644 --- a/rules-tests/Privatization/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/MakeOnlyUsedByChildrenProtectedRectorTest.php +++ b/rules-tests/Privatization/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/MakeOnlyUsedByChildrenProtectedRectorTest.php @@ -19,6 +19,9 @@ final class MakeOnlyUsedByChildrenProtectedRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/OpenSourceRectorTest.php b/rules-tests/Privatization/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/OpenSourceRectorTest.php index cee3cbc7505..e115022d4a5 100644 --- a/rules-tests/Privatization/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/OpenSourceRectorTest.php +++ b/rules-tests/Privatization/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/OpenSourceRectorTest.php @@ -18,6 +18,9 @@ final class OpenSourceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); diff --git a/rules-tests/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector/PrivatizeFinalClassMethodRectorTest.php b/rules-tests/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector/PrivatizeFinalClassMethodRectorTest.php index 549d78efa91..2a4a7417155 100644 --- a/rules-tests/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector/PrivatizeFinalClassMethodRectorTest.php +++ b/rules-tests/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector/PrivatizeFinalClassMethodRectorTest.php @@ -19,6 +19,9 @@ final class PrivatizeFinalClassMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/ClassMethod/PrivatizeLocalOnlyMethodRector/Php8Test.php b/rules-tests/Privatization/Rector/ClassMethod/PrivatizeLocalOnlyMethodRector/Php8Test.php index 1bfa5e2ac66..58c8f2a5a0f 100644 --- a/rules-tests/Privatization/Rector/ClassMethod/PrivatizeLocalOnlyMethodRector/Php8Test.php +++ b/rules-tests/Privatization/Rector/ClassMethod/PrivatizeLocalOnlyMethodRector/Php8Test.php @@ -19,6 +19,9 @@ final class Php8Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp8'); diff --git a/rules-tests/Privatization/Rector/ClassMethod/PrivatizeLocalOnlyMethodRector/PrivatizeLocalOnlyMethodRectorTest.php b/rules-tests/Privatization/Rector/ClassMethod/PrivatizeLocalOnlyMethodRector/PrivatizeLocalOnlyMethodRectorTest.php index ac88259485e..437a23ac43a 100644 --- a/rules-tests/Privatization/Rector/ClassMethod/PrivatizeLocalOnlyMethodRector/PrivatizeLocalOnlyMethodRectorTest.php +++ b/rules-tests/Privatization/Rector/ClassMethod/PrivatizeLocalOnlyMethodRector/PrivatizeLocalOnlyMethodRectorTest.php @@ -19,6 +19,9 @@ final class PrivatizeLocalOnlyMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/Class_/ChangeLocalPropertyToVariableRector/ChangeLocalPropertyToVariableRectorTest.php b/rules-tests/Privatization/Rector/Class_/ChangeLocalPropertyToVariableRector/ChangeLocalPropertyToVariableRectorTest.php index ddd2e632d6f..fd35ace4c92 100644 --- a/rules-tests/Privatization/Rector/Class_/ChangeLocalPropertyToVariableRector/ChangeLocalPropertyToVariableRectorTest.php +++ b/rules-tests/Privatization/Rector/Class_/ChangeLocalPropertyToVariableRector/ChangeLocalPropertyToVariableRectorTest.php @@ -19,6 +19,9 @@ final class ChangeLocalPropertyToVariableRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/Class_/ChangeReadOnlyVariableWithDefaultValueToConstantRector/ChangeReadOnlyVariableWithDefaultValueToConstantRectorTest.php b/rules-tests/Privatization/Rector/Class_/ChangeReadOnlyVariableWithDefaultValueToConstantRector/ChangeReadOnlyVariableWithDefaultValueToConstantRectorTest.php index cdd7c4d7b1e..ab2ce6a712f 100644 --- a/rules-tests/Privatization/Rector/Class_/ChangeReadOnlyVariableWithDefaultValueToConstantRector/ChangeReadOnlyVariableWithDefaultValueToConstantRectorTest.php +++ b/rules-tests/Privatization/Rector/Class_/ChangeReadOnlyVariableWithDefaultValueToConstantRector/ChangeReadOnlyVariableWithDefaultValueToConstantRectorTest.php @@ -19,6 +19,9 @@ final class ChangeReadOnlyVariableWithDefaultValueToConstantRectorTest extends A $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/Class_/FinalizeClassesWithoutChildrenRector/FinalizeClassesWithoutChildrenRectorTest.php b/rules-tests/Privatization/Rector/Class_/FinalizeClassesWithoutChildrenRector/FinalizeClassesWithoutChildrenRectorTest.php index 164707744c0..78b2c763292 100644 --- a/rules-tests/Privatization/Rector/Class_/FinalizeClassesWithoutChildrenRector/FinalizeClassesWithoutChildrenRectorTest.php +++ b/rules-tests/Privatization/Rector/Class_/FinalizeClassesWithoutChildrenRector/FinalizeClassesWithoutChildrenRectorTest.php @@ -19,6 +19,9 @@ final class FinalizeClassesWithoutChildrenRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/Class_/MakeUnusedClassesWithChildrenAbstractRector/MakeUnusedClassesWithChildrenAbstractRectorTest.php b/rules-tests/Privatization/Rector/Class_/MakeUnusedClassesWithChildrenAbstractRector/MakeUnusedClassesWithChildrenAbstractRectorTest.php index c52b5259686..31a95238385 100644 --- a/rules-tests/Privatization/Rector/Class_/MakeUnusedClassesWithChildrenAbstractRector/MakeUnusedClassesWithChildrenAbstractRectorTest.php +++ b/rules-tests/Privatization/Rector/Class_/MakeUnusedClassesWithChildrenAbstractRector/MakeUnusedClassesWithChildrenAbstractRectorTest.php @@ -19,6 +19,9 @@ final class MakeUnusedClassesWithChildrenAbstractRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/Class_/RepeatedLiteralToClassConstantRector/RepeatedLiteralToClassConstantRectorTest.php b/rules-tests/Privatization/Rector/Class_/RepeatedLiteralToClassConstantRector/RepeatedLiteralToClassConstantRectorTest.php index 46b356a6ba4..5babbfbca21 100644 --- a/rules-tests/Privatization/Rector/Class_/RepeatedLiteralToClassConstantRector/RepeatedLiteralToClassConstantRectorTest.php +++ b/rules-tests/Privatization/Rector/Class_/RepeatedLiteralToClassConstantRector/RepeatedLiteralToClassConstantRectorTest.php @@ -19,6 +19,9 @@ final class RepeatedLiteralToClassConstantRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector/PrivatizeLocalGetterToPropertyRectorTest.php b/rules-tests/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector/PrivatizeLocalGetterToPropertyRectorTest.php index 23fb8841e2a..4392a050db6 100644 --- a/rules-tests/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector/PrivatizeLocalGetterToPropertyRectorTest.php +++ b/rules-tests/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector/PrivatizeLocalGetterToPropertyRectorTest.php @@ -19,6 +19,9 @@ final class PrivatizeLocalGetterToPropertyRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/MethodCall/ReplaceStringWithClassConstantRector/ReplaceStringWithClassConstantRectorTest.php b/rules-tests/Privatization/Rector/MethodCall/ReplaceStringWithClassConstantRector/ReplaceStringWithClassConstantRectorTest.php index ab4b456009c..bf820bc24f2 100644 --- a/rules-tests/Privatization/Rector/MethodCall/ReplaceStringWithClassConstantRector/ReplaceStringWithClassConstantRectorTest.php +++ b/rules-tests/Privatization/Rector/MethodCall/ReplaceStringWithClassConstantRector/ReplaceStringWithClassConstantRectorTest.php @@ -18,6 +18,9 @@ final class ReplaceStringWithClassConstantRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/Property/ChangeReadOnlyPropertyWithDefaultValueToConstantRector/ChangeReadOnlyPropertyWithDefaultValueToConstantRectorTest.php b/rules-tests/Privatization/Rector/Property/ChangeReadOnlyPropertyWithDefaultValueToConstantRector/ChangeReadOnlyPropertyWithDefaultValueToConstantRectorTest.php index ddf1b7557d4..203676f5321 100644 --- a/rules-tests/Privatization/Rector/Property/ChangeReadOnlyPropertyWithDefaultValueToConstantRector/ChangeReadOnlyPropertyWithDefaultValueToConstantRectorTest.php +++ b/rules-tests/Privatization/Rector/Property/ChangeReadOnlyPropertyWithDefaultValueToConstantRector/ChangeReadOnlyPropertyWithDefaultValueToConstantRectorTest.php @@ -19,6 +19,9 @@ final class ChangeReadOnlyPropertyWithDefaultValueToConstantRectorTest extends A $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/Property/PrivatizeFinalClassPropertyRector/PrivatizeFinalClassPropertyRectorTest.php b/rules-tests/Privatization/Rector/Property/PrivatizeFinalClassPropertyRector/PrivatizeFinalClassPropertyRectorTest.php index a0fc8b96336..03bb224d90f 100644 --- a/rules-tests/Privatization/Rector/Property/PrivatizeFinalClassPropertyRector/PrivatizeFinalClassPropertyRectorTest.php +++ b/rules-tests/Privatization/Rector/Property/PrivatizeFinalClassPropertyRector/PrivatizeFinalClassPropertyRectorTest.php @@ -19,6 +19,9 @@ final class PrivatizeFinalClassPropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Privatization/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/OpenSourceRectorTest.php b/rules-tests/Privatization/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/OpenSourceRectorTest.php index 4b54b77f4b1..cfcf3746843 100644 --- a/rules-tests/Privatization/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/OpenSourceRectorTest.php +++ b/rules-tests/Privatization/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/OpenSourceRectorTest.php @@ -18,6 +18,9 @@ final class OpenSourceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); diff --git a/rules-tests/Privatization/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/PrivatizeLocalPropertyToPrivatePropertyRectorTest.php b/rules-tests/Privatization/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/PrivatizeLocalPropertyToPrivatePropertyRectorTest.php index 3be76a82a30..0fd0a8f7fa6 100644 --- a/rules-tests/Privatization/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/PrivatizeLocalPropertyToPrivatePropertyRectorTest.php +++ b/rules-tests/Privatization/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/PrivatizeLocalPropertyToPrivatePropertyRectorTest.php @@ -19,6 +19,9 @@ final class PrivatizeLocalPropertyToPrivatePropertyRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Removing/Rector/ClassMethod/ArgumentRemoverRector/ArgumentRemoverRectorTest.php b/rules-tests/Removing/Rector/ClassMethod/ArgumentRemoverRector/ArgumentRemoverRectorTest.php index f134adaf1a6..13045e5b6f1 100644 --- a/rules-tests/Removing/Rector/ClassMethod/ArgumentRemoverRector/ArgumentRemoverRectorTest.php +++ b/rules-tests/Removing/Rector/ClassMethod/ArgumentRemoverRector/ArgumentRemoverRectorTest.php @@ -18,6 +18,9 @@ final class ArgumentRemoverRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Removing/Rector/Class_/RemoveInterfacesRector/RemoveInterfacesRectorTest.php b/rules-tests/Removing/Rector/Class_/RemoveInterfacesRector/RemoveInterfacesRectorTest.php index 177202175d4..662855a371b 100644 --- a/rules-tests/Removing/Rector/Class_/RemoveInterfacesRector/RemoveInterfacesRectorTest.php +++ b/rules-tests/Removing/Rector/Class_/RemoveInterfacesRector/RemoveInterfacesRectorTest.php @@ -18,6 +18,9 @@ final class RemoveInterfacesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Removing/Rector/Class_/RemoveParentRector/RemoveParentRectorTest.php b/rules-tests/Removing/Rector/Class_/RemoveParentRector/RemoveParentRectorTest.php index f8f46da7ed0..acb236867ec 100644 --- a/rules-tests/Removing/Rector/Class_/RemoveParentRector/RemoveParentRectorTest.php +++ b/rules-tests/Removing/Rector/Class_/RemoveParentRector/RemoveParentRectorTest.php @@ -18,6 +18,9 @@ final class RemoveParentRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Removing/Rector/Class_/RemoveTraitRector/RemoveTraitRectorTest.php b/rules-tests/Removing/Rector/Class_/RemoveTraitRector/RemoveTraitRectorTest.php index de4ae04505d..349db5de34f 100644 --- a/rules-tests/Removing/Rector/Class_/RemoveTraitRector/RemoveTraitRectorTest.php +++ b/rules-tests/Removing/Rector/Class_/RemoveTraitRector/RemoveTraitRectorTest.php @@ -18,6 +18,9 @@ final class RemoveTraitRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/RemovingStatic/Rector/ClassMethod/LocallyCalledStaticMethodToNonStaticRector/LocallyCalledStaticMethodToNonStaticRectorTest.php b/rules-tests/RemovingStatic/Rector/ClassMethod/LocallyCalledStaticMethodToNonStaticRector/LocallyCalledStaticMethodToNonStaticRectorTest.php index 5bcac0dd1f5..911a8080253 100644 --- a/rules-tests/RemovingStatic/Rector/ClassMethod/LocallyCalledStaticMethodToNonStaticRector/LocallyCalledStaticMethodToNonStaticRectorTest.php +++ b/rules-tests/RemovingStatic/Rector/ClassMethod/LocallyCalledStaticMethodToNonStaticRector/LocallyCalledStaticMethodToNonStaticRectorTest.php @@ -19,6 +19,9 @@ final class LocallyCalledStaticMethodToNonStaticRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/RemovingStatic/Rector/Class_/DesiredClassTypeToDynamicRector/DesiredClassTypeToDynamicRectorTest.php b/rules-tests/RemovingStatic/Rector/Class_/DesiredClassTypeToDynamicRector/DesiredClassTypeToDynamicRectorTest.php index 56def935da8..8b7e97d46d1 100644 --- a/rules-tests/RemovingStatic/Rector/Class_/DesiredClassTypeToDynamicRector/DesiredClassTypeToDynamicRectorTest.php +++ b/rules-tests/RemovingStatic/Rector/Class_/DesiredClassTypeToDynamicRector/DesiredClassTypeToDynamicRectorTest.php @@ -18,6 +18,9 @@ final class DesiredClassTypeToDynamicRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/RemovingStatic/Rector/Class_/PHPUnitStaticToKernelTestCaseGetRector/PHPUnitStaticToKernelTestCaseGetRectorTest.php b/rules-tests/RemovingStatic/Rector/Class_/PHPUnitStaticToKernelTestCaseGetRector/PHPUnitStaticToKernelTestCaseGetRectorTest.php index fef14182eb6..ba34d6b29b5 100644 --- a/rules-tests/RemovingStatic/Rector/Class_/PHPUnitStaticToKernelTestCaseGetRector/PHPUnitStaticToKernelTestCaseGetRectorTest.php +++ b/rules-tests/RemovingStatic/Rector/Class_/PHPUnitStaticToKernelTestCaseGetRector/PHPUnitStaticToKernelTestCaseGetRectorTest.php @@ -18,6 +18,9 @@ final class PHPUnitStaticToKernelTestCaseGetRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/RemovingStatic/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php b/rules-tests/RemovingStatic/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php index b6fc87e90b9..c272dccd68e 100644 --- a/rules-tests/RemovingStatic/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php +++ b/rules-tests/RemovingStatic/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php @@ -27,6 +27,9 @@ final class PassFactoryToEntityRectorTest extends AbstractRectorTestCase ); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureWithMultipleArguments'); diff --git a/rules-tests/RemovingStatic/Rector/Class_/StaticTypeToSetterInjectionRector/StaticTypeToSetterInjectionRectorTest.php b/rules-tests/RemovingStatic/Rector/Class_/StaticTypeToSetterInjectionRector/StaticTypeToSetterInjectionRectorTest.php index 3d7938d3225..09ea966f8f6 100644 --- a/rules-tests/RemovingStatic/Rector/Class_/StaticTypeToSetterInjectionRector/StaticTypeToSetterInjectionRectorTest.php +++ b/rules-tests/RemovingStatic/Rector/Class_/StaticTypeToSetterInjectionRector/StaticTypeToSetterInjectionRectorTest.php @@ -18,6 +18,9 @@ final class StaticTypeToSetterInjectionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/RemovingStatic/Rector/Property/DesiredPropertyClassMethodTypeToDynamicRector/DesiredPropertyClassMethodTypeToDynamicRectorTest.php b/rules-tests/RemovingStatic/Rector/Property/DesiredPropertyClassMethodTypeToDynamicRector/DesiredPropertyClassMethodTypeToDynamicRectorTest.php index 6e347ff3ecc..4131e8c68a4 100644 --- a/rules-tests/RemovingStatic/Rector/Property/DesiredPropertyClassMethodTypeToDynamicRector/DesiredPropertyClassMethodTypeToDynamicRectorTest.php +++ b/rules-tests/RemovingStatic/Rector/Property/DesiredPropertyClassMethodTypeToDynamicRector/DesiredPropertyClassMethodTypeToDynamicRectorTest.php @@ -18,6 +18,9 @@ final class DesiredPropertyClassMethodTypeToDynamicRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/RemovingStatic/Rector/StaticCall/DesiredStaticCallTypeToDynamicRector/DesiredStaticCallTypeToDynamicRectorTest.php b/rules-tests/RemovingStatic/Rector/StaticCall/DesiredStaticCallTypeToDynamicRector/DesiredStaticCallTypeToDynamicRectorTest.php index 1e4e4e18dc5..0400b7262ed 100644 --- a/rules-tests/RemovingStatic/Rector/StaticCall/DesiredStaticCallTypeToDynamicRector/DesiredStaticCallTypeToDynamicRectorTest.php +++ b/rules-tests/RemovingStatic/Rector/StaticCall/DesiredStaticCallTypeToDynamicRector/DesiredStaticCallTypeToDynamicRectorTest.php @@ -18,6 +18,9 @@ final class DesiredStaticCallTypeToDynamicRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/RemovingStatic/Rector/StaticPropertyFetch/DesiredStaticPropertyFetchTypeToDynamicRector/DesiredStaticPropertyFetchTypeToDynamicRectorTest.php b/rules-tests/RemovingStatic/Rector/StaticPropertyFetch/DesiredStaticPropertyFetchTypeToDynamicRector/DesiredStaticPropertyFetchTypeToDynamicRectorTest.php index d39368c45e8..d3168a73bea 100644 --- a/rules-tests/RemovingStatic/Rector/StaticPropertyFetch/DesiredStaticPropertyFetchTypeToDynamicRector/DesiredStaticPropertyFetchTypeToDynamicRectorTest.php +++ b/rules-tests/RemovingStatic/Rector/StaticPropertyFetch/DesiredStaticPropertyFetchTypeToDynamicRector/DesiredStaticPropertyFetchTypeToDynamicRectorTest.php @@ -18,6 +18,9 @@ final class DesiredStaticPropertyFetchTypeToDynamicRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/ClassConstFetch/RenameClassConstFetchRector/RenameClassConstFetchRectorTest.php b/rules-tests/Renaming/Rector/ClassConstFetch/RenameClassConstFetchRector/RenameClassConstFetchRectorTest.php index 4f04a525c4c..f86e4bb6333 100644 --- a/rules-tests/Renaming/Rector/ClassConstFetch/RenameClassConstFetchRector/RenameClassConstFetchRectorTest.php +++ b/rules-tests/Renaming/Rector/ClassConstFetch/RenameClassConstFetchRector/RenameClassConstFetchRectorTest.php @@ -18,6 +18,9 @@ final class RenameClassConstFetchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationRectorTest.php b/rules-tests/Renaming/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationRectorTest.php index 68ad1e254a0..74baf980745 100644 --- a/rules-tests/Renaming/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationRectorTest.php +++ b/rules-tests/Renaming/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationRectorTest.php @@ -18,6 +18,9 @@ final class RenameAnnotationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/ConstFetch/RenameConstantRector/RenameConstantRectorTest.php b/rules-tests/Renaming/Rector/ConstFetch/RenameConstantRector/RenameConstantRectorTest.php index 3720816ba42..898aef1aca3 100644 --- a/rules-tests/Renaming/Rector/ConstFetch/RenameConstantRector/RenameConstantRectorTest.php +++ b/rules-tests/Renaming/Rector/ConstFetch/RenameConstantRector/RenameConstantRectorTest.php @@ -18,6 +18,9 @@ final class RenameConstantRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/DateTime.php b/rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/DateTime.php deleted file mode 100644 index 78e2406c091..00000000000 --- a/rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/DateTime.php +++ /dev/null @@ -1,7 +0,0 @@ -doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/FuncCall/RenameFunctionAutoImportRector/RenameFunctionAutoImportRectorTest.php b/rules-tests/Renaming/Rector/FuncCall/RenameFunctionAutoImportRector/RenameFunctionAutoImportRectorTest.php index cb8d903cac9..c0e507b5f77 100644 --- a/rules-tests/Renaming/Rector/FuncCall/RenameFunctionAutoImportRector/RenameFunctionAutoImportRectorTest.php +++ b/rules-tests/Renaming/Rector/FuncCall/RenameFunctionAutoImportRector/RenameFunctionAutoImportRectorTest.php @@ -18,6 +18,9 @@ final class RenameFunctionAutoImportRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/FuncCall/RenameFunctionRector/RenameFunctionRectorTest.php b/rules-tests/Renaming/Rector/FuncCall/RenameFunctionRector/RenameFunctionRectorTest.php index 211710b5ac2..a563907d6a9 100644 --- a/rules-tests/Renaming/Rector/FuncCall/RenameFunctionRector/RenameFunctionRectorTest.php +++ b/rules-tests/Renaming/Rector/FuncCall/RenameFunctionRector/RenameFunctionRectorTest.php @@ -18,6 +18,9 @@ final class RenameFunctionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/MethodCall/RenameMethodRector/RenameMethodRectorTest.php b/rules-tests/Renaming/Rector/MethodCall/RenameMethodRector/RenameMethodRectorTest.php index f6a11819091..e35fa94da15 100644 --- a/rules-tests/Renaming/Rector/MethodCall/RenameMethodRector/RenameMethodRectorTest.php +++ b/rules-tests/Renaming/Rector/MethodCall/RenameMethodRector/RenameMethodRectorTest.php @@ -18,6 +18,9 @@ final class RenameMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/Name/RenameClassRector/AutoImportNamesPhp74Test.php b/rules-tests/Renaming/Rector/Name/RenameClassRector/AutoImportNamesPhp74Test.php index ca4746929f4..409d5988279 100644 --- a/rules-tests/Renaming/Rector/Name/RenameClassRector/AutoImportNamesPhp74Test.php +++ b/rules-tests/Renaming/Rector/Name/RenameClassRector/AutoImportNamesPhp74Test.php @@ -22,6 +22,9 @@ final class AutoImportNamesPhp74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImportNamesPhp74'); diff --git a/rules-tests/Renaming/Rector/Name/RenameClassRector/AutoImportNamesTest.php b/rules-tests/Renaming/Rector/Name/RenameClassRector/AutoImportNamesTest.php index 8b395ad7a35..5e669e7a820 100644 --- a/rules-tests/Renaming/Rector/Name/RenameClassRector/AutoImportNamesTest.php +++ b/rules-tests/Renaming/Rector/Name/RenameClassRector/AutoImportNamesTest.php @@ -21,6 +21,9 @@ final class AutoImportNamesTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImportNames'); diff --git a/rules-tests/Renaming/Rector/Name/RenameClassRector/RenameClassRectorTest.php b/rules-tests/Renaming/Rector/Name/RenameClassRector/RenameClassRectorTest.php index be383f6fee3..ff0bea1a52d 100644 --- a/rules-tests/Renaming/Rector/Name/RenameClassRector/RenameClassRectorTest.php +++ b/rules-tests/Renaming/Rector/Name/RenameClassRector/RenameClassRectorTest.php @@ -18,6 +18,9 @@ final class RenameClassRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/Name/RenameClassRector/RenameNonPhpTest.php b/rules-tests/Renaming/Rector/Name/RenameClassRector/RenameNonPhpTest.php index f8e919d87c4..5a6f5fc15fb 100644 --- a/rules-tests/Renaming/Rector/Name/RenameClassRector/RenameNonPhpTest.php +++ b/rules-tests/Renaming/Rector/Name/RenameClassRector/RenameNonPhpTest.php @@ -19,6 +19,9 @@ final class RenameNonPhpTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory( diff --git a/rules-tests/Renaming/Rector/Name/RenameClassRector/Fixture/DuplicatedClass.php b/rules-tests/Renaming/Rector/Name/RenameClassRector/Source/DuplicatedClass.php similarity index 100% rename from rules-tests/Renaming/Rector/Name/RenameClassRector/Fixture/DuplicatedClass.php rename to rules-tests/Renaming/Rector/Name/RenameClassRector/Source/DuplicatedClass.php diff --git a/rules-tests/Renaming/Rector/Namespace_/RenameNamespaceRector/RenameNamespaceRectorTest.php b/rules-tests/Renaming/Rector/Namespace_/RenameNamespaceRector/RenameNamespaceRectorTest.php index 5dbf8be0e05..804be629091 100644 --- a/rules-tests/Renaming/Rector/Namespace_/RenameNamespaceRector/RenameNamespaceRectorTest.php +++ b/rules-tests/Renaming/Rector/Namespace_/RenameNamespaceRector/RenameNamespaceRectorTest.php @@ -18,6 +18,9 @@ final class RenameNamespaceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/PropertyFetch/RenamePropertyRector/RenamePropertyRectorTest.php b/rules-tests/Renaming/Rector/PropertyFetch/RenamePropertyRector/RenamePropertyRectorTest.php index 87309232ad5..a51c1d879cf 100644 --- a/rules-tests/Renaming/Rector/PropertyFetch/RenamePropertyRector/RenamePropertyRectorTest.php +++ b/rules-tests/Renaming/Rector/PropertyFetch/RenamePropertyRector/RenamePropertyRectorTest.php @@ -18,6 +18,9 @@ final class RenamePropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/StaticCall/RenameStaticMethodRector/RenameStaticMethodRectorTest.php b/rules-tests/Renaming/Rector/StaticCall/RenameStaticMethodRector/RenameStaticMethodRectorTest.php index 69137ffc35c..414d6aa0090 100644 --- a/rules-tests/Renaming/Rector/StaticCall/RenameStaticMethodRector/RenameStaticMethodRectorTest.php +++ b/rules-tests/Renaming/Rector/StaticCall/RenameStaticMethodRector/RenameStaticMethodRectorTest.php @@ -18,6 +18,9 @@ final class RenameStaticMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Renaming/Rector/String_/RenameStringRector/RenameStringRectorTest.php b/rules-tests/Renaming/Rector/String_/RenameStringRector/RenameStringRectorTest.php index e2847ba0332..db43591b141 100644 --- a/rules-tests/Renaming/Rector/String_/RenameStringRector/RenameStringRectorTest.php +++ b/rules-tests/Renaming/Rector/String_/RenameStringRector/RenameStringRectorTest.php @@ -18,6 +18,9 @@ final class RenameStringRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Restoration/Rector/ClassConstFetch/MissingClassConstantReferenceToStringRector/MissingClassConstantReferenceToStringRectorTest.php b/rules-tests/Restoration/Rector/ClassConstFetch/MissingClassConstantReferenceToStringRector/MissingClassConstantReferenceToStringRectorTest.php index c53601e732f..832bb819eb9 100644 --- a/rules-tests/Restoration/Rector/ClassConstFetch/MissingClassConstantReferenceToStringRector/MissingClassConstantReferenceToStringRectorTest.php +++ b/rules-tests/Restoration/Rector/ClassConstFetch/MissingClassConstantReferenceToStringRector/MissingClassConstantReferenceToStringRectorTest.php @@ -19,6 +19,9 @@ final class MissingClassConstantReferenceToStringRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Restoration/Rector/ClassLike/UpdateFileNameByClassNameFileSystemRector/UpdateFileNameByClassNameFileSystemRectorTest.php b/rules-tests/Restoration/Rector/ClassLike/UpdateFileNameByClassNameFileSystemRector/UpdateFileNameByClassNameFileSystemRectorTest.php index 002e418964e..715bb566ed4 100644 --- a/rules-tests/Restoration/Rector/ClassLike/UpdateFileNameByClassNameFileSystemRector/UpdateFileNameByClassNameFileSystemRectorTest.php +++ b/rules-tests/Restoration/Rector/ClassLike/UpdateFileNameByClassNameFileSystemRector/UpdateFileNameByClassNameFileSystemRectorTest.php @@ -21,6 +21,9 @@ final class UpdateFileNameByClassNameFileSystemRectorTest extends AbstractRector $this->doTestExtraFile('SkipDifferentClassName.php', __DIR__ . '/Fixture/skip_different_class_name.php.inc'); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Restoration/Rector/ClassMethod/InferParamFromClassMethodReturnRector/InferParamFromClassMethodReturnRectorTest.php b/rules-tests/Restoration/Rector/ClassMethod/InferParamFromClassMethodReturnRector/InferParamFromClassMethodReturnRectorTest.php index 377c8752d9e..dd80ec71129 100644 --- a/rules-tests/Restoration/Rector/ClassMethod/InferParamFromClassMethodReturnRector/InferParamFromClassMethodReturnRectorTest.php +++ b/rules-tests/Restoration/Rector/ClassMethod/InferParamFromClassMethodReturnRector/InferParamFromClassMethodReturnRectorTest.php @@ -18,6 +18,9 @@ final class InferParamFromClassMethodReturnRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Restoration/Rector/Class_/RemoveFinalFromEntityRector/RemoveFinalFromEntityRectorTest.php b/rules-tests/Restoration/Rector/Class_/RemoveFinalFromEntityRector/RemoveFinalFromEntityRectorTest.php index 7e0141eb92a..60764b64118 100644 --- a/rules-tests/Restoration/Rector/Class_/RemoveFinalFromEntityRector/RemoveFinalFromEntityRectorTest.php +++ b/rules-tests/Restoration/Rector/Class_/RemoveFinalFromEntityRector/RemoveFinalFromEntityRectorTest.php @@ -19,6 +19,9 @@ final class RemoveFinalFromEntityRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Restoration/Rector/Namespace_/CompleteImportForPartialAnnotationRector/CompleteImportForPartialAnnotationRectorTest.php b/rules-tests/Restoration/Rector/Namespace_/CompleteImportForPartialAnnotationRector/CompleteImportForPartialAnnotationRectorTest.php index d4856e5d7e0..ef0abd306ca 100644 --- a/rules-tests/Restoration/Rector/Namespace_/CompleteImportForPartialAnnotationRector/CompleteImportForPartialAnnotationRectorTest.php +++ b/rules-tests/Restoration/Rector/Namespace_/CompleteImportForPartialAnnotationRector/CompleteImportForPartialAnnotationRectorTest.php @@ -18,6 +18,9 @@ final class CompleteImportForPartialAnnotationRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Restoration/Rector/New_/CompleteMissingDependencyInNewRector/CompleteMissingDependencyInNewRectorTest.php b/rules-tests/Restoration/Rector/New_/CompleteMissingDependencyInNewRector/CompleteMissingDependencyInNewRectorTest.php index 369b7abb53e..bfbd443b46f 100644 --- a/rules-tests/Restoration/Rector/New_/CompleteMissingDependencyInNewRector/CompleteMissingDependencyInNewRectorTest.php +++ b/rules-tests/Restoration/Rector/New_/CompleteMissingDependencyInNewRector/CompleteMissingDependencyInNewRectorTest.php @@ -18,6 +18,9 @@ final class CompleteMissingDependencyInNewRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Restoration/Rector/Property/MakeTypedPropertyNullableIfCheckedRector/MakeTypedPropertyNullableIfCheckedRectorTest.php b/rules-tests/Restoration/Rector/Property/MakeTypedPropertyNullableIfCheckedRector/MakeTypedPropertyNullableIfCheckedRectorTest.php index 6e2835f0846..ff55c1fd457 100644 --- a/rules-tests/Restoration/Rector/Property/MakeTypedPropertyNullableIfCheckedRector/MakeTypedPropertyNullableIfCheckedRectorTest.php +++ b/rules-tests/Restoration/Rector/Property/MakeTypedPropertyNullableIfCheckedRector/MakeTypedPropertyNullableIfCheckedRectorTest.php @@ -20,6 +20,9 @@ final class MakeTypedPropertyNullableIfCheckedRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Restoration/Rector/Use_/RestoreFullyQualifiedNameRector/RestoreFullyQualifiedNameRectorTest.php b/rules-tests/Restoration/Rector/Use_/RestoreFullyQualifiedNameRector/RestoreFullyQualifiedNameRectorTest.php index 93dbe02f192..61d7b147b71 100644 --- a/rules-tests/Restoration/Rector/Use_/RestoreFullyQualifiedNameRector/RestoreFullyQualifiedNameRectorTest.php +++ b/rules-tests/Restoration/Rector/Use_/RestoreFullyQualifiedNameRector/RestoreFullyQualifiedNameRectorTest.php @@ -19,6 +19,9 @@ final class RestoreFullyQualifiedNameRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/BinaryOp/ResponseStatusCodeRector/ResponseStatusCodeRectorTest.php b/rules-tests/Symfony/Rector/BinaryOp/ResponseStatusCodeRector/ResponseStatusCodeRectorTest.php index 9433e4299db..7490bc45c9f 100644 --- a/rules-tests/Symfony/Rector/BinaryOp/ResponseStatusCodeRector/ResponseStatusCodeRectorTest.php +++ b/rules-tests/Symfony/Rector/BinaryOp/ResponseStatusCodeRector/ResponseStatusCodeRectorTest.php @@ -19,6 +19,9 @@ final class ResponseStatusCodeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/ClassMethod/ActionSuffixRemoverRector/ActionSuffixRemoverRectorTest.php b/rules-tests/Symfony/Rector/ClassMethod/ActionSuffixRemoverRector/ActionSuffixRemoverRectorTest.php index 7b82d788a71..663456f9a81 100644 --- a/rules-tests/Symfony/Rector/ClassMethod/ActionSuffixRemoverRector/ActionSuffixRemoverRectorTest.php +++ b/rules-tests/Symfony/Rector/ClassMethod/ActionSuffixRemoverRector/ActionSuffixRemoverRectorTest.php @@ -19,6 +19,9 @@ final class ActionSuffixRemoverRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/ClassMethod/NormalizeAutowireMethodNamingRector/NormalizeAutowireMethodNamingRectorTest.php b/rules-tests/Symfony/Rector/ClassMethod/NormalizeAutowireMethodNamingRector/NormalizeAutowireMethodNamingRectorTest.php index 7165d939a7a..dedbc000a58 100644 --- a/rules-tests/Symfony/Rector/ClassMethod/NormalizeAutowireMethodNamingRector/NormalizeAutowireMethodNamingRectorTest.php +++ b/rules-tests/Symfony/Rector/ClassMethod/NormalizeAutowireMethodNamingRector/NormalizeAutowireMethodNamingRectorTest.php @@ -19,6 +19,9 @@ final class NormalizeAutowireMethodNamingRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/ClassMethod/RemoveServiceFromSensioRouteRector/RemoveServiceFromSensioRouteRectorTest.php b/rules-tests/Symfony/Rector/ClassMethod/RemoveServiceFromSensioRouteRector/RemoveServiceFromSensioRouteRectorTest.php index 6e051be219b..c28759e3cb5 100644 --- a/rules-tests/Symfony/Rector/ClassMethod/RemoveServiceFromSensioRouteRector/RemoveServiceFromSensioRouteRectorTest.php +++ b/rules-tests/Symfony/Rector/ClassMethod/RemoveServiceFromSensioRouteRector/RemoveServiceFromSensioRouteRectorTest.php @@ -19,6 +19,9 @@ final class RemoveServiceFromSensioRouteRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/ClassMethod/ReplaceSensioRouteAnnotationWithSymfonyRector/ReplaceSensioRouteAnnotationWithSymfonyRectorTest.php b/rules-tests/Symfony/Rector/ClassMethod/ReplaceSensioRouteAnnotationWithSymfonyRector/ReplaceSensioRouteAnnotationWithSymfonyRectorTest.php index 6c772241260..495ddb4b084 100644 --- a/rules-tests/Symfony/Rector/ClassMethod/ReplaceSensioRouteAnnotationWithSymfonyRector/ReplaceSensioRouteAnnotationWithSymfonyRectorTest.php +++ b/rules-tests/Symfony/Rector/ClassMethod/ReplaceSensioRouteAnnotationWithSymfonyRector/ReplaceSensioRouteAnnotationWithSymfonyRectorTest.php @@ -19,6 +19,9 @@ final class ReplaceSensioRouteAnnotationWithSymfonyRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/ClassMethod/TemplateAnnotationToThisRenderRector/TemplateAnnotationToThisRenderRectorTest.php b/rules-tests/Symfony/Rector/ClassMethod/TemplateAnnotationToThisRenderRector/TemplateAnnotationToThisRenderRectorTest.php index ddcd9a6705b..12092ac08cc 100644 --- a/rules-tests/Symfony/Rector/ClassMethod/TemplateAnnotationToThisRenderRector/TemplateAnnotationToThisRenderRectorTest.php +++ b/rules-tests/Symfony/Rector/ClassMethod/TemplateAnnotationToThisRenderRector/TemplateAnnotationToThisRenderRectorTest.php @@ -19,6 +19,9 @@ final class TemplateAnnotationToThisRenderRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/Class_/ChangeFileLoaderInExtensionAndKernelRector/ChangeFileLoaderInExtensionAndKernelRectorTest.php b/rules-tests/Symfony/Rector/Class_/ChangeFileLoaderInExtensionAndKernelRector/ChangeFileLoaderInExtensionAndKernelRectorTest.php index cf5675f1d87..cce43a94ff4 100644 --- a/rules-tests/Symfony/Rector/Class_/ChangeFileLoaderInExtensionAndKernelRector/ChangeFileLoaderInExtensionAndKernelRectorTest.php +++ b/rules-tests/Symfony/Rector/Class_/ChangeFileLoaderInExtensionAndKernelRector/ChangeFileLoaderInExtensionAndKernelRectorTest.php @@ -18,6 +18,9 @@ final class ChangeFileLoaderInExtensionAndKernelRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/Class_/EventListenerToEventSubscriberRector/EventListenerToEventSubscriberRectorTest.php b/rules-tests/Symfony/Rector/Class_/EventListenerToEventSubscriberRector/EventListenerToEventSubscriberRectorTest.php index e73c9336b56..e48b9041795 100644 --- a/rules-tests/Symfony/Rector/Class_/EventListenerToEventSubscriberRector/EventListenerToEventSubscriberRectorTest.php +++ b/rules-tests/Symfony/Rector/Class_/EventListenerToEventSubscriberRector/EventListenerToEventSubscriberRectorTest.php @@ -18,6 +18,9 @@ final class EventListenerToEventSubscriberRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/Class_/MakeCommandLazyRector/MakeCommandLazyRectorTest.php b/rules-tests/Symfony/Rector/Class_/MakeCommandLazyRector/MakeCommandLazyRectorTest.php index 4db89f1fe2c..814c3397a10 100644 --- a/rules-tests/Symfony/Rector/Class_/MakeCommandLazyRector/MakeCommandLazyRectorTest.php +++ b/rules-tests/Symfony/Rector/Class_/MakeCommandLazyRector/MakeCommandLazyRectorTest.php @@ -19,6 +19,9 @@ final class MakeCommandLazyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/Class_/MakeCommandLazyRector/Php80Test.php b/rules-tests/Symfony/Rector/Class_/MakeCommandLazyRector/Php80Test.php index 94b1cda1fff..9a89aa2983c 100644 --- a/rules-tests/Symfony/Rector/Class_/MakeCommandLazyRector/Php80Test.php +++ b/rules-tests/Symfony/Rector/Class_/MakeCommandLazyRector/Php80Test.php @@ -20,6 +20,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/Symfony/Rector/MethodCall/GetParameterToConstructorInjectionRector/GetParameterToConstructorInjectionRectorTest.php b/rules-tests/Symfony/Rector/MethodCall/GetParameterToConstructorInjectionRector/GetParameterToConstructorInjectionRectorTest.php index 734342dfb04..0eee3162f76 100644 --- a/rules-tests/Symfony/Rector/MethodCall/GetParameterToConstructorInjectionRector/GetParameterToConstructorInjectionRectorTest.php +++ b/rules-tests/Symfony/Rector/MethodCall/GetParameterToConstructorInjectionRector/GetParameterToConstructorInjectionRectorTest.php @@ -19,6 +19,9 @@ final class GetParameterToConstructorInjectionRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/MethodCall/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php b/rules-tests/Symfony/Rector/MethodCall/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php index a5350f9bd87..79ac1f5ad7b 100644 --- a/rules-tests/Symfony/Rector/MethodCall/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php +++ b/rules-tests/Symfony/Rector/MethodCall/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php @@ -18,6 +18,9 @@ final class GetToConstructorInjectionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/Return_/SimpleFunctionAndFilterRector/SimpleFunctionAndFilterRectorTest.php b/rules-tests/Symfony/Rector/Return_/SimpleFunctionAndFilterRector/SimpleFunctionAndFilterRectorTest.php index e62f964d5b9..e5e2f6ddce2 100644 --- a/rules-tests/Symfony/Rector/Return_/SimpleFunctionAndFilterRector/SimpleFunctionAndFilterRectorTest.php +++ b/rules-tests/Symfony/Rector/Return_/SimpleFunctionAndFilterRector/SimpleFunctionAndFilterRectorTest.php @@ -19,6 +19,9 @@ final class SimpleFunctionAndFilterRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony/Rector/StaticCall/AddMessageToEqualsResponseCodeRector/AddMessageToEqualsResponseCodeRectorTest.php b/rules-tests/Symfony/Rector/StaticCall/AddMessageToEqualsResponseCodeRector/AddMessageToEqualsResponseCodeRectorTest.php index b87768121c6..0adddc7271c 100644 --- a/rules-tests/Symfony/Rector/StaticCall/AddMessageToEqualsResponseCodeRector/AddMessageToEqualsResponseCodeRectorTest.php +++ b/rules-tests/Symfony/Rector/StaticCall/AddMessageToEqualsResponseCodeRector/AddMessageToEqualsResponseCodeRectorTest.php @@ -19,6 +19,9 @@ final class AddMessageToEqualsResponseCodeRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony2/Rector/MethodCall/AddFlashRector/AddFlashRectorTest.php b/rules-tests/Symfony2/Rector/MethodCall/AddFlashRector/AddFlashRectorTest.php index 3bfc553122d..f2825b2f7e0 100644 --- a/rules-tests/Symfony2/Rector/MethodCall/AddFlashRector/AddFlashRectorTest.php +++ b/rules-tests/Symfony2/Rector/MethodCall/AddFlashRector/AddFlashRectorTest.php @@ -19,6 +19,9 @@ final class AddFlashRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony2/Rector/MethodCall/RedirectToRouteRector/RedirectToRouteRectorTest.php b/rules-tests/Symfony2/Rector/MethodCall/RedirectToRouteRector/RedirectToRouteRectorTest.php index 4bf45b38d43..dcbc04e7326 100644 --- a/rules-tests/Symfony2/Rector/MethodCall/RedirectToRouteRector/RedirectToRouteRectorTest.php +++ b/rules-tests/Symfony2/Rector/MethodCall/RedirectToRouteRector/RedirectToRouteRectorTest.php @@ -19,6 +19,9 @@ final class RedirectToRouteRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony2/Rector/StaticCall/ParseFileRector/ParseFileRectorTest.php b/rules-tests/Symfony2/Rector/StaticCall/ParseFileRector/ParseFileRectorTest.php index cc2dce3b414..98033abd33e 100644 --- a/rules-tests/Symfony2/Rector/StaticCall/ParseFileRector/ParseFileRectorTest.php +++ b/rules-tests/Symfony2/Rector/StaticCall/ParseFileRector/ParseFileRectorTest.php @@ -19,6 +19,9 @@ final class ParseFileRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/ClassConstFetch/ConsoleExceptionToErrorEventConstantRector/ConsoleExceptionToErrorEventConstantRectorTest.php b/rules-tests/Symfony3/Rector/ClassConstFetch/ConsoleExceptionToErrorEventConstantRector/ConsoleExceptionToErrorEventConstantRectorTest.php index bfe7ebd8614..0865c04c453 100644 --- a/rules-tests/Symfony3/Rector/ClassConstFetch/ConsoleExceptionToErrorEventConstantRector/ConsoleExceptionToErrorEventConstantRectorTest.php +++ b/rules-tests/Symfony3/Rector/ClassConstFetch/ConsoleExceptionToErrorEventConstantRector/ConsoleExceptionToErrorEventConstantRectorTest.php @@ -19,6 +19,9 @@ final class ConsoleExceptionToErrorEventConstantRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/ClassMethod/FormTypeGetParentRector/FormTypeGetParentRectorTest.php b/rules-tests/Symfony3/Rector/ClassMethod/FormTypeGetParentRector/FormTypeGetParentRectorTest.php index 3b3d099b4c7..ad3a65d6f47 100644 --- a/rules-tests/Symfony3/Rector/ClassMethod/FormTypeGetParentRector/FormTypeGetParentRectorTest.php +++ b/rules-tests/Symfony3/Rector/ClassMethod/FormTypeGetParentRector/FormTypeGetParentRectorTest.php @@ -19,6 +19,9 @@ final class FormTypeGetParentRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/ClassMethod/GetRequestRector/GetRequestRectorTest.php b/rules-tests/Symfony3/Rector/ClassMethod/GetRequestRector/GetRequestRectorTest.php index b2e3c0979cc..d5d9adda36d 100644 --- a/rules-tests/Symfony3/Rector/ClassMethod/GetRequestRector/GetRequestRectorTest.php +++ b/rules-tests/Symfony3/Rector/ClassMethod/GetRequestRector/GetRequestRectorTest.php @@ -19,6 +19,9 @@ final class GetRequestRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/ClassMethod/MergeMethodAnnotationToRouteAnnotationRector/MergeMethodAnnotationToRouteAnnotationRectorTest.php b/rules-tests/Symfony3/Rector/ClassMethod/MergeMethodAnnotationToRouteAnnotationRector/MergeMethodAnnotationToRouteAnnotationRectorTest.php index 0c3a27a4f00..2ec6f38d2d8 100644 --- a/rules-tests/Symfony3/Rector/ClassMethod/MergeMethodAnnotationToRouteAnnotationRector/MergeMethodAnnotationToRouteAnnotationRectorTest.php +++ b/rules-tests/Symfony3/Rector/ClassMethod/MergeMethodAnnotationToRouteAnnotationRector/MergeMethodAnnotationToRouteAnnotationRectorTest.php @@ -19,6 +19,9 @@ final class MergeMethodAnnotationToRouteAnnotationRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/ClassMethod/RemoveDefaultGetBlockPrefixRector/RemoveDefaultGetBlockPrefixRectorTest.php b/rules-tests/Symfony3/Rector/ClassMethod/RemoveDefaultGetBlockPrefixRector/RemoveDefaultGetBlockPrefixRectorTest.php index 9656002ead9..6621aab450e 100644 --- a/rules-tests/Symfony3/Rector/ClassMethod/RemoveDefaultGetBlockPrefixRector/RemoveDefaultGetBlockPrefixRectorTest.php +++ b/rules-tests/Symfony3/Rector/ClassMethod/RemoveDefaultGetBlockPrefixRector/RemoveDefaultGetBlockPrefixRectorTest.php @@ -19,6 +19,9 @@ final class RemoveDefaultGetBlockPrefixRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/MethodCall/CascadeValidationFormBuilderRector/CascadeValidationFormBuilderRectorTest.php b/rules-tests/Symfony3/Rector/MethodCall/CascadeValidationFormBuilderRector/CascadeValidationFormBuilderRectorTest.php index 133d790a890..440cae3e4f6 100644 --- a/rules-tests/Symfony3/Rector/MethodCall/CascadeValidationFormBuilderRector/CascadeValidationFormBuilderRectorTest.php +++ b/rules-tests/Symfony3/Rector/MethodCall/CascadeValidationFormBuilderRector/CascadeValidationFormBuilderRectorTest.php @@ -19,6 +19,9 @@ final class CascadeValidationFormBuilderRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/MethodCall/ChangeCollectionTypeOptionNameFromTypeToEntryTypeRector/ChangeCollectionTypeOptionNameFromTypeToEntryTypeRectorTest.php b/rules-tests/Symfony3/Rector/MethodCall/ChangeCollectionTypeOptionNameFromTypeToEntryTypeRector/ChangeCollectionTypeOptionNameFromTypeToEntryTypeRectorTest.php index d4f6d68fd80..2b4dcd5aac1 100644 --- a/rules-tests/Symfony3/Rector/MethodCall/ChangeCollectionTypeOptionNameFromTypeToEntryTypeRector/ChangeCollectionTypeOptionNameFromTypeToEntryTypeRectorTest.php +++ b/rules-tests/Symfony3/Rector/MethodCall/ChangeCollectionTypeOptionNameFromTypeToEntryTypeRector/ChangeCollectionTypeOptionNameFromTypeToEntryTypeRectorTest.php @@ -19,6 +19,9 @@ final class ChangeCollectionTypeOptionNameFromTypeToEntryTypeRectorTest extends $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/MethodCall/ChangeStringCollectionOptionToConstantRector/ChangeStringCollectionOptionToConstantRectorTest.php b/rules-tests/Symfony3/Rector/MethodCall/ChangeStringCollectionOptionToConstantRector/ChangeStringCollectionOptionToConstantRectorTest.php index 9ff8e50a824..28fb762356f 100644 --- a/rules-tests/Symfony3/Rector/MethodCall/ChangeStringCollectionOptionToConstantRector/ChangeStringCollectionOptionToConstantRectorTest.php +++ b/rules-tests/Symfony3/Rector/MethodCall/ChangeStringCollectionOptionToConstantRector/ChangeStringCollectionOptionToConstantRectorTest.php @@ -19,6 +19,9 @@ final class ChangeStringCollectionOptionToConstantRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/MethodCall/FormTypeInstanceToClassConstRector/FormTypeInstanceToClassConstRectorTest.php b/rules-tests/Symfony3/Rector/MethodCall/FormTypeInstanceToClassConstRector/FormTypeInstanceToClassConstRectorTest.php index 74679f8f685..0792fb69fb6 100644 --- a/rules-tests/Symfony3/Rector/MethodCall/FormTypeInstanceToClassConstRector/FormTypeInstanceToClassConstRectorTest.php +++ b/rules-tests/Symfony3/Rector/MethodCall/FormTypeInstanceToClassConstRector/FormTypeInstanceToClassConstRectorTest.php @@ -19,6 +19,9 @@ final class FormTypeInstanceToClassConstRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/MethodCall/OptionNameRector/OptionNameRectorTest.php b/rules-tests/Symfony3/Rector/MethodCall/OptionNameRector/OptionNameRectorTest.php index b37cd249d2b..1cdc781c4ec 100644 --- a/rules-tests/Symfony3/Rector/MethodCall/OptionNameRector/OptionNameRectorTest.php +++ b/rules-tests/Symfony3/Rector/MethodCall/OptionNameRector/OptionNameRectorTest.php @@ -19,6 +19,9 @@ final class OptionNameRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/MethodCall/ReadOnlyOptionToAttributeRector/ReadOnlyOptionToAttributeRectorTest.php b/rules-tests/Symfony3/Rector/MethodCall/ReadOnlyOptionToAttributeRector/ReadOnlyOptionToAttributeRectorTest.php index 283f418de31..57cc7d6a64f 100644 --- a/rules-tests/Symfony3/Rector/MethodCall/ReadOnlyOptionToAttributeRector/ReadOnlyOptionToAttributeRectorTest.php +++ b/rules-tests/Symfony3/Rector/MethodCall/ReadOnlyOptionToAttributeRector/ReadOnlyOptionToAttributeRectorTest.php @@ -19,6 +19,9 @@ final class ReadOnlyOptionToAttributeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/MethodCall/StringFormTypeToClassRector/StringFormTypeToClassRectorTest.php b/rules-tests/Symfony3/Rector/MethodCall/StringFormTypeToClassRector/StringFormTypeToClassRectorTest.php index 1fc37b1c12a..1fdfdab7bd9 100644 --- a/rules-tests/Symfony3/Rector/MethodCall/StringFormTypeToClassRector/StringFormTypeToClassRectorTest.php +++ b/rules-tests/Symfony3/Rector/MethodCall/StringFormTypeToClassRector/StringFormTypeToClassRectorTest.php @@ -19,6 +19,9 @@ final class StringFormTypeToClassRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony3/Rector/MethodCall/StringFormTypeToClassRector/WithContainerTest.php b/rules-tests/Symfony3/Rector/MethodCall/StringFormTypeToClassRector/WithContainerTest.php index 645aa14a6b4..bd7d8f6bc33 100644 --- a/rules-tests/Symfony3/Rector/MethodCall/StringFormTypeToClassRector/WithContainerTest.php +++ b/rules-tests/Symfony3/Rector/MethodCall/StringFormTypeToClassRector/WithContainerTest.php @@ -18,6 +18,9 @@ final class WithContainerTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureWithContainer'); diff --git a/rules-tests/Symfony4/Rector/ClassMethod/ConsoleExecuteReturnIntRector/ConsoleExecuteReturnIntRectorTest.php b/rules-tests/Symfony4/Rector/ClassMethod/ConsoleExecuteReturnIntRector/ConsoleExecuteReturnIntRectorTest.php index 6f636dd5fec..85a1e303a3d 100644 --- a/rules-tests/Symfony4/Rector/ClassMethod/ConsoleExecuteReturnIntRector/ConsoleExecuteReturnIntRectorTest.php +++ b/rules-tests/Symfony4/Rector/ClassMethod/ConsoleExecuteReturnIntRector/ConsoleExecuteReturnIntRectorTest.php @@ -19,6 +19,9 @@ final class ConsoleExecuteReturnIntRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/ConstFetch/ConstraintUrlOptionRector/ConstraintUrlOptionRectorTest.php b/rules-tests/Symfony4/Rector/ConstFetch/ConstraintUrlOptionRector/ConstraintUrlOptionRectorTest.php index fb416e3edf9..b7f471f5425 100644 --- a/rules-tests/Symfony4/Rector/ConstFetch/ConstraintUrlOptionRector/ConstraintUrlOptionRectorTest.php +++ b/rules-tests/Symfony4/Rector/ConstFetch/ConstraintUrlOptionRector/ConstraintUrlOptionRectorTest.php @@ -19,6 +19,9 @@ final class ConstraintUrlOptionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/MethodCall/ContainerBuilderCompileEnvArgumentRector/ContainerBuilderCompileEnvArgumentRectorTest.php b/rules-tests/Symfony4/Rector/MethodCall/ContainerBuilderCompileEnvArgumentRector/ContainerBuilderCompileEnvArgumentRectorTest.php index 1bb798dbf84..78f65da61ff 100644 --- a/rules-tests/Symfony4/Rector/MethodCall/ContainerBuilderCompileEnvArgumentRector/ContainerBuilderCompileEnvArgumentRectorTest.php +++ b/rules-tests/Symfony4/Rector/MethodCall/ContainerBuilderCompileEnvArgumentRector/ContainerBuilderCompileEnvArgumentRectorTest.php @@ -19,6 +19,9 @@ final class ContainerBuilderCompileEnvArgumentRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/MethodCall/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php b/rules-tests/Symfony4/Rector/MethodCall/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php index 890ea52d4db..0ff61141e7a 100644 --- a/rules-tests/Symfony4/Rector/MethodCall/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php +++ b/rules-tests/Symfony4/Rector/MethodCall/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php @@ -18,6 +18,9 @@ final class ContainerGetToConstructorInjectionRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/MethodCall/FormIsValidRector/FormIsValidRectorTest.php b/rules-tests/Symfony4/Rector/MethodCall/FormIsValidRector/FormIsValidRectorTest.php index 44a5e22f839..c0106034351 100644 --- a/rules-tests/Symfony4/Rector/MethodCall/FormIsValidRector/FormIsValidRectorTest.php +++ b/rules-tests/Symfony4/Rector/MethodCall/FormIsValidRector/FormIsValidRectorTest.php @@ -19,6 +19,9 @@ final class FormIsValidRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/MethodCall/MakeDispatchFirstArgumentEventRector/MakeDispatchFirstArgumentEventRectorTest.php b/rules-tests/Symfony4/Rector/MethodCall/MakeDispatchFirstArgumentEventRector/MakeDispatchFirstArgumentEventRectorTest.php index 4df630f792b..ee0ff353a7f 100644 --- a/rules-tests/Symfony4/Rector/MethodCall/MakeDispatchFirstArgumentEventRector/MakeDispatchFirstArgumentEventRectorTest.php +++ b/rules-tests/Symfony4/Rector/MethodCall/MakeDispatchFirstArgumentEventRector/MakeDispatchFirstArgumentEventRectorTest.php @@ -19,6 +19,9 @@ final class MakeDispatchFirstArgumentEventRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/MethodCall/ProcessBuilderGetProcessRector/ProcessBuilderGetProcessRectorTest.php b/rules-tests/Symfony4/Rector/MethodCall/ProcessBuilderGetProcessRector/ProcessBuilderGetProcessRectorTest.php index 0f55d849974..cc67444ae3c 100644 --- a/rules-tests/Symfony4/Rector/MethodCall/ProcessBuilderGetProcessRector/ProcessBuilderGetProcessRectorTest.php +++ b/rules-tests/Symfony4/Rector/MethodCall/ProcessBuilderGetProcessRector/ProcessBuilderGetProcessRectorTest.php @@ -19,6 +19,9 @@ final class ProcessBuilderGetProcessRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/MethodCall/SimplifyWebTestCaseAssertionsRector/SimplifyWebTestCaseAssertionsRectorTest.php b/rules-tests/Symfony4/Rector/MethodCall/SimplifyWebTestCaseAssertionsRector/SimplifyWebTestCaseAssertionsRectorTest.php index a47b83788c9..e5e14f6aa2b 100644 --- a/rules-tests/Symfony4/Rector/MethodCall/SimplifyWebTestCaseAssertionsRector/SimplifyWebTestCaseAssertionsRectorTest.php +++ b/rules-tests/Symfony4/Rector/MethodCall/SimplifyWebTestCaseAssertionsRector/SimplifyWebTestCaseAssertionsRectorTest.php @@ -19,6 +19,9 @@ final class SimplifyWebTestCaseAssertionsRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/MethodCall/VarDumperTestTraitMethodArgsRector/VarDumperTestTraitMethodArgsRectorTest.php b/rules-tests/Symfony4/Rector/MethodCall/VarDumperTestTraitMethodArgsRector/VarDumperTestTraitMethodArgsRectorTest.php index bd0e689cb1a..6feefcac49d 100644 --- a/rules-tests/Symfony4/Rector/MethodCall/VarDumperTestTraitMethodArgsRector/VarDumperTestTraitMethodArgsRectorTest.php +++ b/rules-tests/Symfony4/Rector/MethodCall/VarDumperTestTraitMethodArgsRector/VarDumperTestTraitMethodArgsRectorTest.php @@ -19,6 +19,9 @@ final class VarDumperTestTraitMethodArgsRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/New_/RootNodeTreeBuilderRector/RootNodeTreeBuilderRectorTest.php b/rules-tests/Symfony4/Rector/New_/RootNodeTreeBuilderRector/RootNodeTreeBuilderRectorTest.php index b29cb79132e..e536aaf88d3 100644 --- a/rules-tests/Symfony4/Rector/New_/RootNodeTreeBuilderRector/RootNodeTreeBuilderRectorTest.php +++ b/rules-tests/Symfony4/Rector/New_/RootNodeTreeBuilderRector/RootNodeTreeBuilderRectorTest.php @@ -19,6 +19,9 @@ final class RootNodeTreeBuilderRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/New_/StringToArrayArgumentProcessRector/StringToArrayArgumentProcessRectorTest.php b/rules-tests/Symfony4/Rector/New_/StringToArrayArgumentProcessRector/StringToArrayArgumentProcessRectorTest.php index d69e83b17ab..3fa8f39cf47 100644 --- a/rules-tests/Symfony4/Rector/New_/StringToArrayArgumentProcessRector/StringToArrayArgumentProcessRectorTest.php +++ b/rules-tests/Symfony4/Rector/New_/StringToArrayArgumentProcessRector/StringToArrayArgumentProcessRectorTest.php @@ -19,6 +19,9 @@ final class StringToArrayArgumentProcessRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony4/Rector/StaticCall/ProcessBuilderInstanceRector/ProcessBuilderInstanceRectorTest.php b/rules-tests/Symfony4/Rector/StaticCall/ProcessBuilderInstanceRector/ProcessBuilderInstanceRectorTest.php index 33fad9ee44b..352395b525d 100644 --- a/rules-tests/Symfony4/Rector/StaticCall/ProcessBuilderInstanceRector/ProcessBuilderInstanceRectorTest.php +++ b/rules-tests/Symfony4/Rector/StaticCall/ProcessBuilderInstanceRector/ProcessBuilderInstanceRectorTest.php @@ -19,6 +19,9 @@ final class ProcessBuilderInstanceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/Class_/LogoutHandlerToLogoutEventSubscriberRector/LogoutHandlerToLogoutEventSubscriberRectorTest.php b/rules-tests/Symfony5/Rector/Class_/LogoutHandlerToLogoutEventSubscriberRector/LogoutHandlerToLogoutEventSubscriberRectorTest.php index d7d13734813..911fb07a4d9 100644 --- a/rules-tests/Symfony5/Rector/Class_/LogoutHandlerToLogoutEventSubscriberRector/LogoutHandlerToLogoutEventSubscriberRectorTest.php +++ b/rules-tests/Symfony5/Rector/Class_/LogoutHandlerToLogoutEventSubscriberRector/LogoutHandlerToLogoutEventSubscriberRectorTest.php @@ -19,6 +19,9 @@ final class LogoutHandlerToLogoutEventSubscriberRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/Class_/LogoutSuccessHandlerToLogoutEventSubscriberRector/LogoutSuccessHandlerToLogoutEventSubscriberRectorTest.php b/rules-tests/Symfony5/Rector/Class_/LogoutSuccessHandlerToLogoutEventSubscriberRector/LogoutSuccessHandlerToLogoutEventSubscriberRectorTest.php index 110cf3021c6..b82fc19f853 100644 --- a/rules-tests/Symfony5/Rector/Class_/LogoutSuccessHandlerToLogoutEventSubscriberRector/LogoutSuccessHandlerToLogoutEventSubscriberRectorTest.php +++ b/rules-tests/Symfony5/Rector/Class_/LogoutSuccessHandlerToLogoutEventSubscriberRector/LogoutSuccessHandlerToLogoutEventSubscriberRectorTest.php @@ -19,6 +19,9 @@ final class LogoutSuccessHandlerToLogoutEventSubscriberRectorTest extends Abstra $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/MethodCall/DefinitionAliasSetPrivateToSetPublicRector/DefinitionAliasSetPrivateToSetPublicRectorTest.php b/rules-tests/Symfony5/Rector/MethodCall/DefinitionAliasSetPrivateToSetPublicRector/DefinitionAliasSetPrivateToSetPublicRectorTest.php index 024aaf1fa3d..f725dfe7469 100644 --- a/rules-tests/Symfony5/Rector/MethodCall/DefinitionAliasSetPrivateToSetPublicRector/DefinitionAliasSetPrivateToSetPublicRectorTest.php +++ b/rules-tests/Symfony5/Rector/MethodCall/DefinitionAliasSetPrivateToSetPublicRector/DefinitionAliasSetPrivateToSetPublicRectorTest.php @@ -19,6 +19,9 @@ final class DefinitionAliasSetPrivateToSetPublicRectorTest extends AbstractRecto $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/MethodCall/FormBuilderSetDataMapperRector/FormBuilderSetDataMapperRectorTest.php b/rules-tests/Symfony5/Rector/MethodCall/FormBuilderSetDataMapperRector/FormBuilderSetDataMapperRectorTest.php index b5119b6456a..6de31155c21 100644 --- a/rules-tests/Symfony5/Rector/MethodCall/FormBuilderSetDataMapperRector/FormBuilderSetDataMapperRectorTest.php +++ b/rules-tests/Symfony5/Rector/MethodCall/FormBuilderSetDataMapperRector/FormBuilderSetDataMapperRectorTest.php @@ -19,6 +19,9 @@ final class FormBuilderSetDataMapperRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/MethodCall/ReflectionExtractorEnableMagicCallExtractorRector/ReflectionExtractorEnableMagicCallExtractorRectorTest.php b/rules-tests/Symfony5/Rector/MethodCall/ReflectionExtractorEnableMagicCallExtractorRector/ReflectionExtractorEnableMagicCallExtractorRectorTest.php index c2916ec44a4..20e6173001c 100644 --- a/rules-tests/Symfony5/Rector/MethodCall/ReflectionExtractorEnableMagicCallExtractorRector/ReflectionExtractorEnableMagicCallExtractorRectorTest.php +++ b/rules-tests/Symfony5/Rector/MethodCall/ReflectionExtractorEnableMagicCallExtractorRector/ReflectionExtractorEnableMagicCallExtractorRectorTest.php @@ -19,6 +19,9 @@ final class ReflectionExtractorEnableMagicCallExtractorRectorTest extends Abstra $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/MethodCall/ValidatorBuilderEnableAnnotationMappingRector/ValidatorBuilderEnableAnnotationMappingRectorTest.php b/rules-tests/Symfony5/Rector/MethodCall/ValidatorBuilderEnableAnnotationMappingRector/ValidatorBuilderEnableAnnotationMappingRectorTest.php index 89926c2ef89..bb6e5fb6e08 100644 --- a/rules-tests/Symfony5/Rector/MethodCall/ValidatorBuilderEnableAnnotationMappingRector/ValidatorBuilderEnableAnnotationMappingRectorTest.php +++ b/rules-tests/Symfony5/Rector/MethodCall/ValidatorBuilderEnableAnnotationMappingRector/ValidatorBuilderEnableAnnotationMappingRectorTest.php @@ -19,6 +19,9 @@ final class ValidatorBuilderEnableAnnotationMappingRectorTest extends AbstractRe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/New_/PropertyAccessorCreationBooleanToFlagsRector/PropertyAccessorCreationBooleanToFlagsRectorTest.php b/rules-tests/Symfony5/Rector/New_/PropertyAccessorCreationBooleanToFlagsRector/PropertyAccessorCreationBooleanToFlagsRectorTest.php index 1b153de01dd..056f579cc4f 100644 --- a/rules-tests/Symfony5/Rector/New_/PropertyAccessorCreationBooleanToFlagsRector/PropertyAccessorCreationBooleanToFlagsRectorTest.php +++ b/rules-tests/Symfony5/Rector/New_/PropertyAccessorCreationBooleanToFlagsRector/PropertyAccessorCreationBooleanToFlagsRectorTest.php @@ -19,6 +19,9 @@ final class PropertyAccessorCreationBooleanToFlagsRectorTest extends AbstractRec $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/New_/PropertyPathMapperToDataMapperRector/PropertyPathMapperToDataMapperRectorTest.php b/rules-tests/Symfony5/Rector/New_/PropertyPathMapperToDataMapperRector/PropertyPathMapperToDataMapperRectorTest.php index dc43696a594..70c98034905 100644 --- a/rules-tests/Symfony5/Rector/New_/PropertyPathMapperToDataMapperRector/PropertyPathMapperToDataMapperRectorTest.php +++ b/rules-tests/Symfony5/Rector/New_/PropertyPathMapperToDataMapperRector/PropertyPathMapperToDataMapperRectorTest.php @@ -19,6 +19,9 @@ final class PropertyPathMapperToDataMapperRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Symfony5/Rector/StaticCall/BinaryFileResponseCreateToNewInstanceRector/BinaryFileResponseCreateToNewInstanceRectorTest.php b/rules-tests/Symfony5/Rector/StaticCall/BinaryFileResponseCreateToNewInstanceRector/BinaryFileResponseCreateToNewInstanceRectorTest.php index 37a0f571650..fb677c0c5e9 100644 --- a/rules-tests/Symfony5/Rector/StaticCall/BinaryFileResponseCreateToNewInstanceRector/BinaryFileResponseCreateToNewInstanceRectorTest.php +++ b/rules-tests/Symfony5/Rector/StaticCall/BinaryFileResponseCreateToNewInstanceRector/BinaryFileResponseCreateToNewInstanceRectorTest.php @@ -19,6 +19,9 @@ final class BinaryFileResponseCreateToNewInstanceRectorTest extends AbstractRect $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Assign/DimFetchAssignToMethodCallRector/DimFetchAssignToMethodCallRectorTest.php b/rules-tests/Transform/Rector/Assign/DimFetchAssignToMethodCallRector/DimFetchAssignToMethodCallRectorTest.php index 6d0792ee1ab..1822b5dce53 100644 --- a/rules-tests/Transform/Rector/Assign/DimFetchAssignToMethodCallRector/DimFetchAssignToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/Assign/DimFetchAssignToMethodCallRector/DimFetchAssignToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class DimFetchAssignToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Assign/GetAndSetToMethodCallRector/GetAndSetToMethodCallRectorTest.php b/rules-tests/Transform/Rector/Assign/GetAndSetToMethodCallRector/GetAndSetToMethodCallRectorTest.php index 44a38245d0e..9844f2ab4c7 100644 --- a/rules-tests/Transform/Rector/Assign/GetAndSetToMethodCallRector/GetAndSetToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/Assign/GetAndSetToMethodCallRector/GetAndSetToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class GetAndSetToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Assign/PropertyAssignToMethodCallRector/PropertyAssignToMethodCallRectorTest.php b/rules-tests/Transform/Rector/Assign/PropertyAssignToMethodCallRector/PropertyAssignToMethodCallRectorTest.php index dbf320d1e69..39ea19b395b 100644 --- a/rules-tests/Transform/Rector/Assign/PropertyAssignToMethodCallRector/PropertyAssignToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/Assign/PropertyAssignToMethodCallRector/PropertyAssignToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class PropertyAssignToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Assign/PropertyFetchToMethodCallRector/PropertyFetchToMethodCallRectorTest.php b/rules-tests/Transform/Rector/Assign/PropertyFetchToMethodCallRector/PropertyFetchToMethodCallRectorTest.php index 15fbdab36bd..bfb532908a1 100644 --- a/rules-tests/Transform/Rector/Assign/PropertyFetchToMethodCallRector/PropertyFetchToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/Assign/PropertyFetchToMethodCallRector/PropertyFetchToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class PropertyFetchToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/ClassConstFetch/ClassConstFetchToValueRector/ClassConstFetchToValueRectorTest.php b/rules-tests/Transform/Rector/ClassConstFetch/ClassConstFetchToValueRector/ClassConstFetchToValueRectorTest.php index b45feeefca9..40f246f19dc 100644 --- a/rules-tests/Transform/Rector/ClassConstFetch/ClassConstFetchToValueRector/ClassConstFetchToValueRectorTest.php +++ b/rules-tests/Transform/Rector/ClassConstFetch/ClassConstFetchToValueRector/ClassConstFetchToValueRectorTest.php @@ -18,6 +18,9 @@ final class ClassConstFetchToValueRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/ClassMethod/SingleToManyMethodRector/SingleToManyMethodRectorTest.php b/rules-tests/Transform/Rector/ClassMethod/SingleToManyMethodRector/SingleToManyMethodRectorTest.php index 1feebd2fc6b..13ed63fd913 100644 --- a/rules-tests/Transform/Rector/ClassMethod/SingleToManyMethodRector/SingleToManyMethodRectorTest.php +++ b/rules-tests/Transform/Rector/ClassMethod/SingleToManyMethodRector/SingleToManyMethodRectorTest.php @@ -18,6 +18,9 @@ final class SingleToManyMethodRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/ClassMethod/WrapReturnRector/WrapReturnRectorTest.php b/rules-tests/Transform/Rector/ClassMethod/WrapReturnRector/WrapReturnRectorTest.php index bd8e0d89455..72b08394152 100644 --- a/rules-tests/Transform/Rector/ClassMethod/WrapReturnRector/WrapReturnRectorTest.php +++ b/rules-tests/Transform/Rector/ClassMethod/WrapReturnRector/WrapReturnRectorTest.php @@ -18,6 +18,9 @@ final class WrapReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Class_/AddInterfaceByTraitRector/AddInterfaceByTraitRectorTest.php b/rules-tests/Transform/Rector/Class_/AddInterfaceByTraitRector/AddInterfaceByTraitRectorTest.php index 1ff7b9ba130..4b5a0fae226 100644 --- a/rules-tests/Transform/Rector/Class_/AddInterfaceByTraitRector/AddInterfaceByTraitRectorTest.php +++ b/rules-tests/Transform/Rector/Class_/AddInterfaceByTraitRector/AddInterfaceByTraitRectorTest.php @@ -18,6 +18,9 @@ final class AddInterfaceByTraitRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Class_/ChangeSingletonToServiceRector/ChangeSingletonToServiceRectorTest.php b/rules-tests/Transform/Rector/Class_/ChangeSingletonToServiceRector/ChangeSingletonToServiceRectorTest.php index 942b1c272e1..6fa05ea0e8e 100644 --- a/rules-tests/Transform/Rector/Class_/ChangeSingletonToServiceRector/ChangeSingletonToServiceRectorTest.php +++ b/rules-tests/Transform/Rector/Class_/ChangeSingletonToServiceRector/ChangeSingletonToServiceRectorTest.php @@ -19,6 +19,9 @@ final class ChangeSingletonToServiceRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Class_/MergeInterfacesRector/MergeInterfacesRectorTest.php b/rules-tests/Transform/Rector/Class_/MergeInterfacesRector/MergeInterfacesRectorTest.php index 7cb8ff31711..c2d98358940 100644 --- a/rules-tests/Transform/Rector/Class_/MergeInterfacesRector/MergeInterfacesRectorTest.php +++ b/rules-tests/Transform/Rector/Class_/MergeInterfacesRector/MergeInterfacesRectorTest.php @@ -18,6 +18,9 @@ final class MergeInterfacesRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Class_/ParentClassToTraitsRector/ParentClassToTraitsRectorTest.php b/rules-tests/Transform/Rector/Class_/ParentClassToTraitsRector/ParentClassToTraitsRectorTest.php index 3dd67970b53..79169052546 100644 --- a/rules-tests/Transform/Rector/Class_/ParentClassToTraitsRector/ParentClassToTraitsRectorTest.php +++ b/rules-tests/Transform/Rector/Class_/ParentClassToTraitsRector/ParentClassToTraitsRectorTest.php @@ -18,6 +18,9 @@ final class ParentClassToTraitsRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Expression/MethodCallToReturnRector/MethodCallToReturnRectorTest.php b/rules-tests/Transform/Rector/Expression/MethodCallToReturnRector/MethodCallToReturnRectorTest.php index e1bed12317c..b05ffae256b 100644 --- a/rules-tests/Transform/Rector/Expression/MethodCallToReturnRector/MethodCallToReturnRectorTest.php +++ b/rules-tests/Transform/Rector/Expression/MethodCallToReturnRector/MethodCallToReturnRectorTest.php @@ -18,6 +18,9 @@ final class MethodCallToReturnRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/FileWithoutNamespace/FunctionToStaticMethodRector/FunctionToStaticMethodRectorTest.php b/rules-tests/Transform/Rector/FileWithoutNamespace/FunctionToStaticMethodRector/FunctionToStaticMethodRectorTest.php index dbefbedc1c7..2e4e9ea2042 100644 --- a/rules-tests/Transform/Rector/FileWithoutNamespace/FunctionToStaticMethodRector/FunctionToStaticMethodRectorTest.php +++ b/rules-tests/Transform/Rector/FileWithoutNamespace/FunctionToStaticMethodRector/FunctionToStaticMethodRectorTest.php @@ -20,6 +20,9 @@ final class FunctionToStaticMethodRectorTest extends AbstractRectorTestCase $this->doTestExtraFile('StaticFunctions.php', __DIR__ . '/Source/ExpectedStaticFunctions.php'); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php b/rules-tests/Transform/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php index e2d3aab47a0..1a60b113610 100644 --- a/rules-tests/Transform/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class ArgumentFuncCallToMethodCallRectorTest extends AbstractRectorTestCas $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/FuncCall/FuncCallToConstFetchRector/FunctionCallToConstantRectorTest.php b/rules-tests/Transform/Rector/FuncCall/FuncCallToConstFetchRector/FunctionCallToConstantRectorTest.php index 3050c616f4f..f48fec77b74 100644 --- a/rules-tests/Transform/Rector/FuncCall/FuncCallToConstFetchRector/FunctionCallToConstantRectorTest.php +++ b/rules-tests/Transform/Rector/FuncCall/FuncCallToConstFetchRector/FunctionCallToConstantRectorTest.php @@ -18,6 +18,9 @@ final class FunctionCallToConstantRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/FuncCall/FuncCallToMethodCallRector/FuncCallToMethodCallRectorTest.php b/rules-tests/Transform/Rector/FuncCall/FuncCallToMethodCallRector/FuncCallToMethodCallRectorTest.php index 7643eff4ecf..77bea46e4e2 100644 --- a/rules-tests/Transform/Rector/FuncCall/FuncCallToMethodCallRector/FuncCallToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/FuncCall/FuncCallToMethodCallRector/FuncCallToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class FuncCallToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/FuncCall/FuncCallToNewRector/FuncCallToNewRectorTest.php b/rules-tests/Transform/Rector/FuncCall/FuncCallToNewRector/FuncCallToNewRectorTest.php index 91633149275..7ac6103785e 100644 --- a/rules-tests/Transform/Rector/FuncCall/FuncCallToNewRector/FuncCallToNewRectorTest.php +++ b/rules-tests/Transform/Rector/FuncCall/FuncCallToNewRector/FuncCallToNewRectorTest.php @@ -18,6 +18,9 @@ final class FuncCallToNewRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/FuncCall/FuncCallToStaticCallRector/FuncCallToStaticCallRectorTest.php b/rules-tests/Transform/Rector/FuncCall/FuncCallToStaticCallRector/FuncCallToStaticCallRectorTest.php index 37b0b63a577..ce0f9f8c4b0 100644 --- a/rules-tests/Transform/Rector/FuncCall/FuncCallToStaticCallRector/FuncCallToStaticCallRectorTest.php +++ b/rules-tests/Transform/Rector/FuncCall/FuncCallToStaticCallRector/FuncCallToStaticCallRectorTest.php @@ -18,6 +18,9 @@ final class FuncCallToStaticCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/Isset_/UnsetAndIssetToMethodCallRector/UnsetAndIssetToMethodCallRectorTest.php b/rules-tests/Transform/Rector/Isset_/UnsetAndIssetToMethodCallRector/UnsetAndIssetToMethodCallRectorTest.php index 78795742e39..83df0ea1ca2 100644 --- a/rules-tests/Transform/Rector/Isset_/UnsetAndIssetToMethodCallRector/UnsetAndIssetToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/Isset_/UnsetAndIssetToMethodCallRector/UnsetAndIssetToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class UnsetAndIssetToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/MethodCall/CallableInMethodCallToVariableRector/CallableInMethodCallToVariableRectorTest.php b/rules-tests/Transform/Rector/MethodCall/CallableInMethodCallToVariableRector/CallableInMethodCallToVariableRectorTest.php index 6c95692d8f9..0bc9457b621 100644 --- a/rules-tests/Transform/Rector/MethodCall/CallableInMethodCallToVariableRector/CallableInMethodCallToVariableRectorTest.php +++ b/rules-tests/Transform/Rector/MethodCall/CallableInMethodCallToVariableRector/CallableInMethodCallToVariableRectorTest.php @@ -18,6 +18,9 @@ final class CallableInMethodCallToVariableRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector/MethodCallToAnotherMethodCallWithArgumentsRectorTest.php b/rules-tests/Transform/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector/MethodCallToAnotherMethodCallWithArgumentsRectorTest.php index de41642efa1..eee191fcbf5 100644 --- a/rules-tests/Transform/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector/MethodCallToAnotherMethodCallWithArgumentsRectorTest.php +++ b/rules-tests/Transform/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector/MethodCallToAnotherMethodCallWithArgumentsRectorTest.php @@ -18,6 +18,9 @@ final class MethodCallToAnotherMethodCallWithArgumentsRectorTest extends Abstrac $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/MethodCall/MethodCallToPropertyFetchRector/MethodCallToPropertyFetchRectorTest.php b/rules-tests/Transform/Rector/MethodCall/MethodCallToPropertyFetchRector/MethodCallToPropertyFetchRectorTest.php index b55afd8925f..45c857751c9 100644 --- a/rules-tests/Transform/Rector/MethodCall/MethodCallToPropertyFetchRector/MethodCallToPropertyFetchRectorTest.php +++ b/rules-tests/Transform/Rector/MethodCall/MethodCallToPropertyFetchRector/MethodCallToPropertyFetchRectorTest.php @@ -18,6 +18,9 @@ final class MethodCallToPropertyFetchRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/MethodCall/MethodCallToStaticCallRector/MethodCallToStaticCallRectorTest.php b/rules-tests/Transform/Rector/MethodCall/MethodCallToStaticCallRector/MethodCallToStaticCallRectorTest.php index c703008e06e..05ff5f1e5ea 100644 --- a/rules-tests/Transform/Rector/MethodCall/MethodCallToStaticCallRector/MethodCallToStaticCallRectorTest.php +++ b/rules-tests/Transform/Rector/MethodCall/MethodCallToStaticCallRector/MethodCallToStaticCallRectorTest.php @@ -18,6 +18,9 @@ final class MethodCallToStaticCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/MethodCall/ReplaceParentCallByPropertyCallRector/ReplaceParentCallByPropertyCallRectorTest.php b/rules-tests/Transform/Rector/MethodCall/ReplaceParentCallByPropertyCallRector/ReplaceParentCallByPropertyCallRectorTest.php index 2929bd47644..9913a161eee 100644 --- a/rules-tests/Transform/Rector/MethodCall/ReplaceParentCallByPropertyCallRector/ReplaceParentCallByPropertyCallRectorTest.php +++ b/rules-tests/Transform/Rector/MethodCall/ReplaceParentCallByPropertyCallRector/ReplaceParentCallByPropertyCallRectorTest.php @@ -18,6 +18,9 @@ final class ReplaceParentCallByPropertyCallRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/MethodCall/ServiceGetterToConstructorInjectionRector/ServiceGetterToConstructorInjectionRectorTest.php b/rules-tests/Transform/Rector/MethodCall/ServiceGetterToConstructorInjectionRector/ServiceGetterToConstructorInjectionRectorTest.php index 5fa1d314636..96a61c54021 100644 --- a/rules-tests/Transform/Rector/MethodCall/ServiceGetterToConstructorInjectionRector/ServiceGetterToConstructorInjectionRectorTest.php +++ b/rules-tests/Transform/Rector/MethodCall/ServiceGetterToConstructorInjectionRector/ServiceGetterToConstructorInjectionRectorTest.php @@ -18,6 +18,9 @@ final class ServiceGetterToConstructorInjectionRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/MethodCall/VariableMethodCallToServiceCallRector/VariableMethodCallToServiceCallRectorTest.php b/rules-tests/Transform/Rector/MethodCall/VariableMethodCallToServiceCallRector/VariableMethodCallToServiceCallRectorTest.php index 70152f1f650..a4c54bbac1a 100644 --- a/rules-tests/Transform/Rector/MethodCall/VariableMethodCallToServiceCallRector/VariableMethodCallToServiceCallRectorTest.php +++ b/rules-tests/Transform/Rector/MethodCall/VariableMethodCallToServiceCallRector/VariableMethodCallToServiceCallRectorTest.php @@ -18,6 +18,9 @@ final class VariableMethodCallToServiceCallRectorTest extends AbstractRectorTest $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/New_/NewArgToMethodCallRector/NewArgToMethodCallRectorTest.php b/rules-tests/Transform/Rector/New_/NewArgToMethodCallRector/NewArgToMethodCallRectorTest.php index a95689b7a41..0659183cf98 100644 --- a/rules-tests/Transform/Rector/New_/NewArgToMethodCallRector/NewArgToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/New_/NewArgToMethodCallRector/NewArgToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class NewArgToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/New_/NewToConstructorInjectionRector/NewToConstructorInjectionRectorTest.php b/rules-tests/Transform/Rector/New_/NewToConstructorInjectionRector/NewToConstructorInjectionRectorTest.php index 77ab767ce9a..9f9a2ba721d 100644 --- a/rules-tests/Transform/Rector/New_/NewToConstructorInjectionRector/NewToConstructorInjectionRectorTest.php +++ b/rules-tests/Transform/Rector/New_/NewToConstructorInjectionRector/NewToConstructorInjectionRectorTest.php @@ -18,6 +18,9 @@ final class NewToConstructorInjectionRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/New_/NewToConstructorInjectionRector/Php80Test.php b/rules-tests/Transform/Rector/New_/NewToConstructorInjectionRector/Php80Test.php index 7211443f248..b473b3451ad 100644 --- a/rules-tests/Transform/Rector/New_/NewToConstructorInjectionRector/Php80Test.php +++ b/rules-tests/Transform/Rector/New_/NewToConstructorInjectionRector/Php80Test.php @@ -18,6 +18,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/Transform/Rector/New_/NewToMethodCallRector/NewToMethodCallRectorTest.php b/rules-tests/Transform/Rector/New_/NewToMethodCallRector/NewToMethodCallRectorTest.php index 9f63ff12c13..81f72bbd2fd 100644 --- a/rules-tests/Transform/Rector/New_/NewToMethodCallRector/NewToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/New_/NewToMethodCallRector/NewToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class NewToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/New_/NewToStaticCallRector/NewToStaticCallRectorTest.php b/rules-tests/Transform/Rector/New_/NewToStaticCallRector/NewToStaticCallRectorTest.php index be280fce5d4..cdfb53903b4 100644 --- a/rules-tests/Transform/Rector/New_/NewToStaticCallRector/NewToStaticCallRectorTest.php +++ b/rules-tests/Transform/Rector/New_/NewToStaticCallRector/NewToStaticCallRectorTest.php @@ -18,6 +18,9 @@ final class NewToStaticCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/StaticCall/StaticCallToFuncCallRector/StaticCallToFuncCallRectorTest.php b/rules-tests/Transform/Rector/StaticCall/StaticCallToFuncCallRector/StaticCallToFuncCallRectorTest.php index 5ce0ddec054..6b46e9331a9 100644 --- a/rules-tests/Transform/Rector/StaticCall/StaticCallToFuncCallRector/StaticCallToFuncCallRectorTest.php +++ b/rules-tests/Transform/Rector/StaticCall/StaticCallToFuncCallRector/StaticCallToFuncCallRectorTest.php @@ -18,6 +18,9 @@ final class StaticCallToFuncCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/StaticCall/StaticCallToMethodCallRector/StaticCallToMethodCallRectorTest.php b/rules-tests/Transform/Rector/StaticCall/StaticCallToMethodCallRector/StaticCallToMethodCallRectorTest.php index ada7c505a41..bd4f40b7e38 100644 --- a/rules-tests/Transform/Rector/StaticCall/StaticCallToMethodCallRector/StaticCallToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/StaticCall/StaticCallToMethodCallRector/StaticCallToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class StaticCallToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/StaticCall/StaticCallToNewRector/StaticCallToNewRectorTest.php b/rules-tests/Transform/Rector/StaticCall/StaticCallToNewRector/StaticCallToNewRectorTest.php index 47109ccbcec..4dfeb3cfc21 100644 --- a/rules-tests/Transform/Rector/StaticCall/StaticCallToNewRector/StaticCallToNewRectorTest.php +++ b/rules-tests/Transform/Rector/StaticCall/StaticCallToNewRector/StaticCallToNewRectorTest.php @@ -18,6 +18,9 @@ final class StaticCallToNewRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/String_/StringToClassConstantRector/StringToClassConstantRectorTest.php b/rules-tests/Transform/Rector/String_/StringToClassConstantRector/StringToClassConstantRectorTest.php index d389c298bd7..39c829ce598 100644 --- a/rules-tests/Transform/Rector/String_/StringToClassConstantRector/StringToClassConstantRectorTest.php +++ b/rules-tests/Transform/Rector/String_/StringToClassConstantRector/StringToClassConstantRectorTest.php @@ -18,6 +18,9 @@ final class StringToClassConstantRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Transform/Rector/String_/ToStringToMethodCallRector/ToStringToMethodCallRectorTest.php b/rules-tests/Transform/Rector/String_/ToStringToMethodCallRector/ToStringToMethodCallRectorTest.php index c48bd2fcf05..ba4e36077b4 100644 --- a/rules-tests/Transform/Rector/String_/ToStringToMethodCallRector/ToStringToMethodCallRectorTest.php +++ b/rules-tests/Transform/Rector/String_/ToStringToMethodCallRector/ToStringToMethodCallRectorTest.php @@ -18,6 +18,9 @@ final class ToStringToMethodCallRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddArrayParamDocTypeRector/AddArrayParamDocTypeRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddArrayParamDocTypeRector/AddArrayParamDocTypeRectorTest.php index 1c5aeec80e3..dc6a0cc073a 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddArrayParamDocTypeRector/AddArrayParamDocTypeRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddArrayParamDocTypeRector/AddArrayParamDocTypeRectorTest.php @@ -19,6 +19,9 @@ final class AddArrayParamDocTypeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddArrayReturnDocTypeRector/AddArrayReturnDocTypeRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddArrayReturnDocTypeRector/AddArrayReturnDocTypeRectorTest.php index caefa38ddeb..0d4c01d31bc 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddArrayReturnDocTypeRector/AddArrayReturnDocTypeRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddArrayReturnDocTypeRector/AddArrayReturnDocTypeRectorTest.php @@ -19,6 +19,9 @@ final class AddArrayReturnDocTypeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/AddMethodCallBasedStrictParamTypeRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/AddMethodCallBasedStrictParamTypeRectorTest.php index 564a6aea2a8..d4a1249facd 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/AddMethodCallBasedStrictParamTypeRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/AddMethodCallBasedStrictParamTypeRectorTest.php @@ -18,6 +18,9 @@ final class AddMethodCallBasedStrictParamTypeRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddParamTypeDeclarationRector/AddParamTypeDeclarationRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddParamTypeDeclarationRector/AddParamTypeDeclarationRectorTest.php index cb79587c7da..9f4dfab8fdc 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddParamTypeDeclarationRector/AddParamTypeDeclarationRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddParamTypeDeclarationRector/AddParamTypeDeclarationRectorTest.php @@ -18,6 +18,9 @@ final class AddParamTypeDeclarationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddParamTypeFromCallersRector/AddParamTypeFromCallersRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddParamTypeFromCallersRector/AddParamTypeFromCallersRectorTest.php index 1b5ecbacb77..e95c54c3751 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddParamTypeFromCallersRector/AddParamTypeFromCallersRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddParamTypeFromCallersRector/AddParamTypeFromCallersRectorTest.php @@ -18,6 +18,9 @@ final class AddParamTypeFromCallersRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationRector/AddReturnTypeDeclarationRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationRector/AddReturnTypeDeclarationRectorTest.php index 8367fcbfc8c..1a4a6f673b9 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationRector/AddReturnTypeDeclarationRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationRector/AddReturnTypeDeclarationRectorTest.php @@ -18,6 +18,9 @@ final class AddReturnTypeDeclarationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/AddVoidReturnTypeWhereNoReturnRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/AddVoidReturnTypeWhereNoReturnRectorTest.php index fd97b1d73c7..177d4b322ac 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/AddVoidReturnTypeWhereNoReturnRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/AddVoidReturnTypeWhereNoReturnRectorTest.php @@ -19,6 +19,9 @@ final class AddVoidReturnTypeWhereNoReturnRectorTest extends AbstractRectorTestC $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeFromStrictTypedPropertyRector/ParamTypeFromStrictTypedPropertyRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeFromStrictTypedPropertyRector/ParamTypeFromStrictTypedPropertyRectorTest.php index 5324826b091..217293f493f 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeFromStrictTypedPropertyRector/ParamTypeFromStrictTypedPropertyRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeFromStrictTypedPropertyRector/ParamTypeFromStrictTypedPropertyRectorTest.php @@ -20,6 +20,9 @@ final class ParamTypeFromStrictTypedPropertyRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector/ReturnTypeFromReturnNewRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector/ReturnTypeFromReturnNewRectorTest.php index a54f2bdae22..c3f43334533 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector/ReturnTypeFromReturnNewRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector/ReturnTypeFromReturnNewRectorTest.php @@ -19,6 +19,9 @@ final class ReturnTypeFromReturnNewRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/Php80Test.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/Php80Test.php index a1638cc8c9d..f162cf8a4d3 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/Php80Test.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/Php80Test.php @@ -20,6 +20,9 @@ final class Php80Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/ReturnTypeFromStrictTypedCallRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/ReturnTypeFromStrictTypedCallRectorTest.php index 8fe3328dec4..cadb981bbf8 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/ReturnTypeFromStrictTypedCallRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/ReturnTypeFromStrictTypedCallRectorTest.php @@ -18,6 +18,9 @@ final class ReturnTypeFromStrictTypedCallRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedPropertyRector/ReturnTypeFromStrictTypedPropertyRectorTest.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedPropertyRector/ReturnTypeFromStrictTypedPropertyRectorTest.php index efa26d3ac98..100ee07b028 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedPropertyRector/ReturnTypeFromStrictTypedPropertyRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedPropertyRector/ReturnTypeFromStrictTypedPropertyRectorTest.php @@ -20,6 +20,9 @@ final class ReturnTypeFromStrictTypedPropertyRectorTest extends AbstractRectorTe $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/Closure/AddClosureReturnTypeRector/AddClosureReturnTypeRectorTest.php b/rules-tests/TypeDeclaration/Rector/Closure/AddClosureReturnTypeRector/AddClosureReturnTypeRectorTest.php index 4aa5a9d678f..12f235647d8 100644 --- a/rules-tests/TypeDeclaration/Rector/Closure/AddClosureReturnTypeRector/AddClosureReturnTypeRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/Closure/AddClosureReturnTypeRector/AddClosureReturnTypeRectorTest.php @@ -18,6 +18,9 @@ final class AddClosureReturnTypeRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/ParamTypeDeclarationRectorTest.php b/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/ParamTypeDeclarationRectorTest.php index 5b4a088d95e..1a1a3ab172e 100644 --- a/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/ParamTypeDeclarationRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/ParamTypeDeclarationRectorTest.php @@ -18,6 +18,9 @@ final class ParamTypeDeclarationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/PropertyTypeParamTypeDeclarationRectorTest.php b/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/PropertyTypeParamTypeDeclarationRectorTest.php index 36f522b3ca1..f41febf26f4 100644 --- a/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/PropertyTypeParamTypeDeclarationRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/PropertyTypeParamTypeDeclarationRectorTest.php @@ -19,6 +19,9 @@ final class PropertyTypeParamTypeDeclarationRectorTest extends AbstractRectorTes $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePropertyType'); diff --git a/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/UnionTypeParamTypeDeclarationRectorTest.php b/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/UnionTypeParamTypeDeclarationRectorTest.php index a9b2d9a56fc..eb860602b8e 100644 --- a/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/UnionTypeParamTypeDeclarationRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/UnionTypeParamTypeDeclarationRectorTest.php @@ -19,6 +19,9 @@ final class UnionTypeParamTypeDeclarationRectorTest extends AbstractRectorTestCa $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureUnionType'); diff --git a/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/CorrectionTest.php b/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/CorrectionTest.php index 9aff5339e93..d72d31e3659 100644 --- a/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/CorrectionTest.php +++ b/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/CorrectionTest.php @@ -18,6 +18,9 @@ final class CorrectionTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/InheritanceTest.php b/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/InheritanceTest.php index 9d92516d45d..ebf10e5974c 100644 --- a/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/InheritanceTest.php +++ b/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/InheritanceTest.php @@ -18,6 +18,9 @@ final class InheritanceTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureInheritance'); diff --git a/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/Php80RectorTest.php b/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/Php80RectorTest.php index 6a92e922795..86e4a117d9f 100644 --- a/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/Php80RectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/Php80RectorTest.php @@ -18,6 +18,9 @@ final class Php80RectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureForPhp80'); diff --git a/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/ReturnTypeDeclarationRectorTest.php b/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/ReturnTypeDeclarationRectorTest.php index be821a9a6d9..45dc1279c60 100644 --- a/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/ReturnTypeDeclarationRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/ReturnTypeDeclarationRectorTest.php @@ -18,6 +18,9 @@ final class ReturnTypeDeclarationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/MethodCall/FormerNullableArgumentToScalarTypedRector/FormerNullableArgumentToScalarTypedRectorTest.php b/rules-tests/TypeDeclaration/Rector/MethodCall/FormerNullableArgumentToScalarTypedRector/FormerNullableArgumentToScalarTypedRectorTest.php index 2961bae1055..ca05d55cf2f 100644 --- a/rules-tests/TypeDeclaration/Rector/MethodCall/FormerNullableArgumentToScalarTypedRector/FormerNullableArgumentToScalarTypedRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/MethodCall/FormerNullableArgumentToScalarTypedRector/FormerNullableArgumentToScalarTypedRectorTest.php @@ -19,6 +19,9 @@ final class FormerNullableArgumentToScalarTypedRectorTest extends AbstractRector $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/Property/CompleteVarDocTypePropertyRector/CompleteVarDocTypePropertyRectorTest.php b/rules-tests/TypeDeclaration/Rector/Property/CompleteVarDocTypePropertyRector/CompleteVarDocTypePropertyRectorTest.php index ae3c1cb573e..149fed631af 100644 --- a/rules-tests/TypeDeclaration/Rector/Property/CompleteVarDocTypePropertyRector/CompleteVarDocTypePropertyRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/Property/CompleteVarDocTypePropertyRector/CompleteVarDocTypePropertyRectorTest.php @@ -22,6 +22,9 @@ final class CompleteVarDocTypePropertyRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/Property/PropertyTypeDeclarationRector/Php74Test.php b/rules-tests/TypeDeclaration/Rector/Property/PropertyTypeDeclarationRector/Php74Test.php index 489cf89c93b..6e5263f9237 100644 --- a/rules-tests/TypeDeclaration/Rector/Property/PropertyTypeDeclarationRector/Php74Test.php +++ b/rules-tests/TypeDeclaration/Rector/Property/PropertyTypeDeclarationRector/Php74Test.php @@ -21,6 +21,9 @@ final class Php74Test extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); diff --git a/rules-tests/TypeDeclaration/Rector/Property/PropertyTypeDeclarationRector/PropertyTypeDeclarationRectorTest.php b/rules-tests/TypeDeclaration/Rector/Property/PropertyTypeDeclarationRector/PropertyTypeDeclarationRectorTest.php index a41f94cddef..a6950d038f6 100644 --- a/rules-tests/TypeDeclaration/Rector/Property/PropertyTypeDeclarationRector/PropertyTypeDeclarationRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/Property/PropertyTypeDeclarationRector/PropertyTypeDeclarationRectorTest.php @@ -19,6 +19,9 @@ final class PropertyTypeDeclarationRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromStrictConstructorRector/TypedPropertyFromStrictConstructorRectorTest.php b/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromStrictConstructorRector/TypedPropertyFromStrictConstructorRectorTest.php index 412b90e4765..342265d0852 100644 --- a/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromStrictConstructorRector/TypedPropertyFromStrictConstructorRectorTest.php +++ b/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromStrictConstructorRector/TypedPropertyFromStrictConstructorRectorTest.php @@ -22,6 +22,9 @@ final class TypedPropertyFromStrictConstructorRectorTest extends AbstractRectorT $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Visibility/Rector/ClassConst/ChangeConstantVisibilityRector/ChangeConstantVisibilityRectorTest.php b/rules-tests/Visibility/Rector/ClassConst/ChangeConstantVisibilityRector/ChangeConstantVisibilityRectorTest.php index 0c96d1810a7..c633565ca9d 100644 --- a/rules-tests/Visibility/Rector/ClassConst/ChangeConstantVisibilityRector/ChangeConstantVisibilityRectorTest.php +++ b/rules-tests/Visibility/Rector/ClassConst/ChangeConstantVisibilityRector/ChangeConstantVisibilityRectorTest.php @@ -18,6 +18,9 @@ final class ChangeConstantVisibilityRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Visibility/Rector/ClassMethod/ChangeMethodVisibilityRector/ChangeMethodVisibilityRectorTest.php b/rules-tests/Visibility/Rector/ClassMethod/ChangeMethodVisibilityRector/ChangeMethodVisibilityRectorTest.php index 983fe552830..5e4d80b9d36 100644 --- a/rules-tests/Visibility/Rector/ClassMethod/ChangeMethodVisibilityRector/ChangeMethodVisibilityRectorTest.php +++ b/rules-tests/Visibility/Rector/ClassMethod/ChangeMethodVisibilityRector/ChangeMethodVisibilityRectorTest.php @@ -18,6 +18,9 @@ final class ChangeMethodVisibilityRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules-tests/Visibility/Rector/Property/ChangePropertyVisibilityRector/ChangePropertyVisibilityRectorTest.php b/rules-tests/Visibility/Rector/Property/ChangePropertyVisibilityRector/ChangePropertyVisibilityRectorTest.php index 11a81583314..de45264389c 100644 --- a/rules-tests/Visibility/Rector/Property/ChangePropertyVisibilityRector/ChangePropertyVisibilityRectorTest.php +++ b/rules-tests/Visibility/Rector/Property/ChangePropertyVisibilityRector/ChangePropertyVisibilityRectorTest.php @@ -18,6 +18,9 @@ final class ChangePropertyVisibilityRectorTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/rules/Doctrine/NodeFactory/RepositoryNodeFactory.php b/rules/Doctrine/NodeFactory/RepositoryNodeFactory.php index 86b1ce88394..8feb69c74df 100644 --- a/rules/Doctrine/NodeFactory/RepositoryNodeFactory.php +++ b/rules/Doctrine/NodeFactory/RepositoryNodeFactory.php @@ -11,16 +11,13 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Identifier; -use PhpParser\Node\Stmt\Expression; final class RepositoryNodeFactory { - public function createRepositoryAssign(Expr $entityReferenceExpr): Expression + public function createRepositoryAssign(Expr $entityReferenceExpr): Assign { $propertyFetch = new PropertyFetch(new Variable('this'), new Identifier('repository')); - $assign = new Assign($propertyFetch, $this->createGetRepositoryMethodCall($entityReferenceExpr)); - - return new Expression($assign); + return new Assign($propertyFetch, $this->createGetRepositoryMethodCall($entityReferenceExpr)); } private function createGetRepositoryMethodCall(Expr $entityReferenceExpr): MethodCall diff --git a/rules/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector.php b/rules/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector.php index 430e1e47c47..6445d20708d 100644 --- a/rules/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector.php +++ b/rules/Doctrine/Rector/ClassMethod/ServiceEntityRepositoryParentCallToDIRector.php @@ -10,7 +10,9 @@ use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Reflection\ClassReflection; +use PHPStan\Type\ObjectType; use Rector\Core\Exception\ShouldNotHappenException; +use Rector\Core\NodeManipulator\ClassDependencyManipulator; use Rector\Core\Rector\AbstractRector; use Rector\Core\ValueObject\MethodName; use Rector\Doctrine\NodeFactory\RepositoryNodeFactory; @@ -43,14 +45,21 @@ final class ServiceEntityRepositoryParentCallToDIRector extends AbstractRector */ private $propertyToAddCollector; + /** + * @var ClassDependencyManipulator + */ + private $classDependencyManipulator; + public function __construct( RepositoryNodeFactory $repositoryNodeFactory, RepositoryTypeFactory $repositoryTypeFactory, - PropertyToAddCollector $propertyToAddCollector + PropertyToAddCollector $propertyToAddCollector, + ClassDependencyManipulator $classDependencyManipulator ) { $this->repositoryNodeFactory = $repositoryNodeFactory; $this->repositoryTypeFactory = $repositoryTypeFactory; $this->propertyToAddCollector = $propertyToAddCollector; + $this->classDependencyManipulator = $classDependencyManipulator; } public function getRuleDefinition(): RuleDefinition @@ -133,7 +142,14 @@ CODE_SAMPLE $entityReferenceExpr = $this->removeParentConstructAndCollectEntityReference($node); // 3. add $entityManager->getRepository() fetch assign - $node->stmts[] = $this->repositoryNodeFactory->createRepositoryAssign($entityReferenceExpr); + $repositoryAssign = $this->repositoryNodeFactory->createRepositoryAssign($entityReferenceExpr); + + $this->classDependencyManipulator->addConstructorDependencyWithCustomAssign( + $classLike, + 'entityManager', + new ObjectType('Doctrine\ORM\EntityManagerInterface'), + $repositoryAssign + ); // 4. add $repository property $this->addRepositoryProperty($classLike, $entityReferenceExpr); diff --git a/rules/Doctrine/Rector/MethodCall/ReplaceParentRepositoryCallsByRepositoryPropertyRector.php b/rules/Doctrine/Rector/MethodCall/ReplaceParentRepositoryCallsByRepositoryPropertyRector.php index d076f4656b5..f15d2d48dd6 100644 --- a/rules/Doctrine/Rector/MethodCall/ReplaceParentRepositoryCallsByRepositoryPropertyRector.php +++ b/rules/Doctrine/Rector/MethodCall/ReplaceParentRepositoryCallsByRepositoryPropertyRector.php @@ -4,15 +4,19 @@ declare(strict_types=1); namespace Rector\Doctrine\Rector\MethodCall; +use Nette\Utils\Strings; use PhpParser\Node; +use PhpParser\Node\Expr; +use PhpParser\Node\Expr\ClassConstFetch; use PhpParser\Node\Expr\MethodCall; use PHPStan\Type\ObjectType; use Rector\Core\Rector\AbstractRector; +use Rector\NodeTypeResolver\Node\AttributeKey; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** - * @see \Rector\Tests\DoctrineCodeQuality\Rector\DoctrineRepositoryAsService\DoctrineRepositoryAsServiceTest + * @see \Rector\Tests\DoctrineCodeQuality\Set\DoctrineRepositoryAsServiceSet\DoctrineRepositoryAsServiceSetTest */ final class ReplaceParentRepositoryCallsByRepositoryPropertyRector extends AbstractRector { @@ -87,7 +91,63 @@ CODE_SAMPLE return null; } + // is it getRepository(), replace it with DI property + if ($node->var instanceof MethodCall && $this->isName($node->var->name, 'getRepository')) { + return $this->refactorGetRepositoryMethodCall($node); + } + $node->var = $this->nodeFactory->createPropertyFetch('this', 'repository'); + return $node; } + + private function resolveRepositoryName(Expr $expr): string + { + $entityReferenceName = $this->valueResolver->getValue($expr); + $lastNamePart = (string) Strings::after($entityReferenceName, '\\', -1); + return lcfirst($lastNamePart) . 'Repository'; + } + + private function guessRepositoryType(Expr $expr): string + { + if ($expr instanceof ClassConstFetch) { + $entityClass = $this->getName($expr->class); + if ($entityClass === null) { + return 'Unknown_Repository_Class'; + } + + $entityClassNamespace = (string) Strings::before($entityClass, '\\', -2); + $lastNamePart = (string) Strings::after($entityClass, '\\', -1); + + return $entityClassNamespace . '\\Repository\\' . $lastNamePart . 'Repository'; + } + + return 'Unknown_Repository_Class'; + } + + private function refactorGetRepositoryMethodCall(MethodCall $methodCall): ?MethodCall + { + /** @var MethodCall $parentMethodCall */ + $parentMethodCall = $methodCall->var; + + if (count($parentMethodCall->args) === 1) { + $class = $methodCall->getAttribute(AttributeKey::CLASS_NODE); + if ($this->isObjectType($class, new ObjectType('Doctrine\ORM\EntityRepository'))) { + return null; + } + + $firstArgValue = $parentMethodCall->args[0]->value; + + $repositoryPropertyName = $this->resolveRepositoryName($firstArgValue); + $repositoryType = $this->guessRepositoryType($firstArgValue); + + $objectType = new ObjectType($repositoryType); + $this->propertyAdder->addConstructorDependencyToClass($class, $objectType, $repositoryPropertyName); + + $methodCall->var = $this->nodeFactory->createPropertyFetch('this', $repositoryPropertyName); + return $methodCall; + } + + return null; + } } diff --git a/rules/DoctrineCodeQuality/NodeAnalyzer/EntityObjectTypeResolver.php b/rules/DoctrineCodeQuality/NodeAnalyzer/EntityObjectTypeResolver.php index 8275020a118..99e26ecd77d 100644 --- a/rules/DoctrineCodeQuality/NodeAnalyzer/EntityObjectTypeResolver.php +++ b/rules/DoctrineCodeQuality/NodeAnalyzer/EntityObjectTypeResolver.php @@ -4,13 +4,20 @@ declare(strict_types=1); namespace Rector\DoctrineCodeQuality\NodeAnalyzer; +use PhpParser\Node\Arg; +use PhpParser\Node\Expr; +use PhpParser\Node\Expr\ClassConstFetch; +use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Stmt\Class_; +use PhpParser\Node\Stmt\ClassMethod; +use PhpParser\Node\Stmt\Expression; use PHPStan\Type\MixedType; use PHPStan\Type\ObjectType; use PHPStan\Type\Type; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Doctrine\Class_\EntityTagValueNode; use Rector\Core\Exception\ShouldNotHappenException; +use Rector\Core\ValueObject\MethodName; use Rector\DoctrineCodeQuality\TypeAnalyzer\TypeFinder; use Rector\NodeCollector\NodeCollector\NodeRepository; use Rector\NodeNameResolver\NodeNameResolver; @@ -52,20 +59,25 @@ final class EntityObjectTypeResolver public function resolveFromRepositoryClass(Class_ $repositoryClass): Type { + $entityType = $this->resolveFromParentConstruct($repositoryClass); + if (! $entityType instanceof MixedType) { + return $entityType; + } + $getterReturnType = $this->resolveFromGetterReturnType($repositoryClass); - if ($getterReturnType instanceof Type) { + if (! $getterReturnType instanceof MixedType) { return $getterReturnType; } $entityType = $this->resolveFromMatchingEntityAnnotation($repositoryClass); - if ($entityType instanceof Type) { + if (! $entityType instanceof MixedType) { return $entityType; } return new MixedType(); } - private function resolveFromGetterReturnType(Class_ $repositoryClass): ?Type + private function resolveFromGetterReturnType(Class_ $repositoryClass): Type { foreach ($repositoryClass->getMethods() as $classMethod) { if (! $classMethod->isPublic()) { @@ -83,10 +95,10 @@ final class EntityObjectTypeResolver return $objectType; } - return null; + return new MixedType(); } - private function resolveFromMatchingEntityAnnotation(Class_ $repositoryClass): ?ObjectType + private function resolveFromMatchingEntityAnnotation(Class_ $repositoryClass): Type { $repositoryClassName = $repositoryClass->getAttribute(AttributeKey::CLASS_NAME); @@ -118,6 +130,60 @@ final class EntityObjectTypeResolver return new ObjectType($className); } - return null; + return new MixedType(); + } + + private function resolveFromParentConstruct(Class_ $class): Type + { + $constructorClassMethod = $class->getMethod(MethodName::CONSTRUCT); + if (! $constructorClassMethod instanceof ClassMethod) { + return new MixedType(); + } + + foreach ((array) $constructorClassMethod->stmts as $stmt) { + if (! $stmt instanceof Expression) { + continue; + } + + $argValue = $this->resolveParentConstructSecondArgument($stmt->expr); + if (! $argValue instanceof ClassConstFetch) { + continue; + } + + if (! $this->nodeNameResolver->isName($argValue->name, 'class')) { + continue; + } + + $className = $this->nodeNameResolver->getName($argValue->class); + if ($className === null) { + continue; + } + + return new ObjectType($className); + } + + return new MixedType(); + } + + private function resolveParentConstructSecondArgument(Expr $expr): ?Expr + { + if (! $expr instanceof StaticCall) { + return null; + } + + if (! $this->nodeNameResolver->isName($expr->class, 'parent')) { + return null; + } + + if (! $this->nodeNameResolver->isName($expr->name, MethodName::CONSTRUCT)) { + return null; + } + + $secondArg = $expr->args[1] ?? null; + if (! $secondArg instanceof Arg) { + return null; + } + + return $secondArg->value; } } diff --git a/rules/DoctrineCodeQuality/Rector/Class_/MoveRepositoryFromParentToConstructorRector.php b/rules/DoctrineCodeQuality/Rector/Class_/MoveRepositoryFromParentToConstructorRector.php index 07da5b2eca1..9a204447332 100644 --- a/rules/DoctrineCodeQuality/Rector/Class_/MoveRepositoryFromParentToConstructorRector.php +++ b/rules/DoctrineCodeQuality/Rector/Class_/MoveRepositoryFromParentToConstructorRector.php @@ -4,20 +4,20 @@ declare(strict_types=1); namespace Rector\DoctrineCodeQuality\Rector\Class_; -use Nette\Utils\Strings; use PhpParser\Node; use PhpParser\Node\Stmt\Class_; +use PHPStan\Type\Generic\GenericObjectType; use PHPStan\Type\ObjectType; use Rector\Core\NodeManipulator\ClassDependencyManipulator; use Rector\Core\NodeManipulator\ClassInsertManipulator; use Rector\Core\Rector\AbstractRector; +use Rector\DoctrineCodeQuality\NodeAnalyzer\EntityObjectTypeResolver; use Rector\DoctrineCodeQuality\NodeFactory\RepositoryAssignFactory; -use Rector\NodeTypeResolver\Node\AttributeKey; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** - * @see \Rector\Tests\DoctrineCodeQuality\Rector\DoctrineRepositoryAsService\DoctrineRepositoryAsServiceTest + * @see \Rector\Tests\DoctrineCodeQuality\Set\DoctrineRepositoryAsServiceSet\DoctrineRepositoryAsServiceSetTest */ final class MoveRepositoryFromParentToConstructorRector extends AbstractRector { @@ -36,14 +36,21 @@ final class MoveRepositoryFromParentToConstructorRector extends AbstractRector */ private $repositoryAssignFactory; + /** + * @var EntityObjectTypeResolver + */ + private $entityObjectTypeResolver; + public function __construct( ClassDependencyManipulator $classDependencyManipulator, ClassInsertManipulator $classInsertManipulator, - RepositoryAssignFactory $repositoryAssignFactory + RepositoryAssignFactory $repositoryAssignFactory, + EntityObjectTypeResolver $entityObjectTypeResolver ) { $this->classDependencyManipulator = $classDependencyManipulator; $this->classInsertManipulator = $classInsertManipulator; $this->repositoryAssignFactory = $repositoryAssignFactory; + $this->entityObjectTypeResolver = $entityObjectTypeResolver; } public function getRuleDefinition(): RuleDefinition @@ -71,6 +78,9 @@ use Doctrine\ORM\EntityManagerInterface; final class PostRepository { + /** + * @var \Doctrine\ORM\EntityRepository + */ private EntityRepository $repository; public function __construct(EntityManagerInterface $entityManager) @@ -97,34 +107,18 @@ CODE_SAMPLE */ public function refactor(Node $node): ?Node { - if ($node->extends === null) { - return null; - } - - $parentClassName = $node->getAttribute(AttributeKey::PARENT_CLASS_NAME); - if ($parentClassName !== 'Doctrine\ORM\EntityRepository') { - return null; - } - - /** @var string|null $className */ - $className = $node->getAttribute(AttributeKey::CLASS_NAME); - if ($className === null) { - return null; - } - - if (! Strings::endsWith($className, 'Repository')) { + if (! $this->isObjectType($node, new ObjectType('Doctrine\ORM\EntityRepository'))) { return null; } // remove parent class $node->extends = null; + $entityObjectType = $this->entityObjectTypeResolver->resolveFromRepositoryClass($node); + $genericObjectType = new GenericObjectType('Doctrine\ORM\EntityRepository', [$entityObjectType]); + // add $repository property - $this->classInsertManipulator->addPropertyToClass( - $node, - 'repository', - new ObjectType('Doctrine\ORM\EntityRepository') - ); + $this->classInsertManipulator->addPropertyToClass($node, 'repository', $genericObjectType); // add $entityManager and assign to constuctor $repositoryAssign = $this->repositoryAssignFactory->create($node); diff --git a/src/NodeManipulator/ClassDependencyManipulator.php b/src/NodeManipulator/ClassDependencyManipulator.php index 981b8297c75..515e301c940 100644 --- a/src/NodeManipulator/ClassDependencyManipulator.php +++ b/src/NodeManipulator/ClassDependencyManipulator.php @@ -109,6 +109,7 @@ final class ClassDependencyManipulator $this->addPromotedProperty($class, $propertyMetadata); } else { $assign = $this->nodeFactory->createPropertyAssignment($propertyMetadata->getName()); + $this->addConstructorDependencyWithCustomAssign( $class, $propertyMetadata->getName(), @@ -192,6 +193,11 @@ final class ClassDependencyManipulator $param = $this->nodeFactory->createPromotedPropertyParam($propertyMetadata); if ($constructClassMethod instanceof ClassMethod) { + // parameter is already added + if ($this->hasMethodParameter($constructClassMethod, $propertyMetadata->getName())) { + return; + } + $constructClassMethod->params[] = $param; } else { $constructClassMethod = $this->nodeFactory->createPublicMethod(MethodName::CONSTRUCT); @@ -254,4 +260,15 @@ final class ClassDependencyManipulator return $this->isParamInConstructor($class, $propertyMetadata->getName()); } + + private function hasMethodParameter(ClassMethod $classMethod, string $name): bool + { + foreach ($classMethod->params as $param) { + if ($this->nodeNameResolver->isName($param->var, $name)) { + return true; + } + } + + return false; + } } diff --git a/src/NodeManipulator/ClassInsertManipulator.php b/src/NodeManipulator/ClassInsertManipulator.php index af86c0bef57..986fad0d2ce 100644 --- a/src/NodeManipulator/ClassInsertManipulator.php +++ b/src/NodeManipulator/ClassInsertManipulator.php @@ -73,6 +73,9 @@ final class ClassInsertManipulator } } + /** + * @internal Use PropertyAdder service instead + */ public function addPropertyToClass(Class_ $class, string $name, ?Type $type): void { $existingProperty = $class->getProperty($name); @@ -123,6 +126,7 @@ final class ClassInsertManipulator } $class->stmts = $this->insertBefore($class->stmts, $stmt, $key); + return true; } diff --git a/src/NodeManipulator/ClassMethodAssignManipulator.php b/src/NodeManipulator/ClassMethodAssignManipulator.php index 1d2e994d987..9bf43d6c0f7 100644 --- a/src/NodeManipulator/ClassMethodAssignManipulator.php +++ b/src/NodeManipulator/ClassMethodAssignManipulator.php @@ -69,6 +69,11 @@ final class ClassMethodAssignManipulator */ private $callReflectionResolver; + /** + * @var array + */ + private $alreadyAddedClassMethodNames = []; + public function __construct( BetterNodeFinder $betterNodeFinder, SimpleCallableNodeTraverser $simpleCallableNodeTraverser, @@ -121,6 +126,9 @@ final class ClassMethodAssignManipulator $classMethod->params[] = $this->nodeFactory->createParamFromNameAndType($name, $type); $classMethod->stmts[] = new Expression($assign); + + $classMethodHash = spl_object_hash($classMethod); + $this->alreadyAddedClassMethodNames[$classMethodHash][] = $name; } /** @@ -217,13 +225,18 @@ final class ClassMethodAssignManipulator private function hasMethodParameter(ClassMethod $classMethod, string $name): bool { - foreach ($classMethod->params as $constructorParameter) { - if ($this->nodeNameResolver->isName($constructorParameter->var, $name)) { + foreach ($classMethod->params as $param) { + if ($this->nodeNameResolver->isName($param->var, $name)) { return true; } } - return false; + $classMethodHash = spl_object_hash($classMethod); + if (! isset($this->alreadyAddedClassMethodNames[$classMethodHash])) { + return false; + } + + return in_array($name, $this->alreadyAddedClassMethodNames[$classMethodHash], true); } /** diff --git a/stubs/Doctrine/Common/Persistence/ObjectManager.php b/stubs/Doctrine/Common/Persistence/ObjectManager.php index 9240cd149d8..8748926323f 100644 --- a/stubs/Doctrine/Common/Persistence/ObjectManager.php +++ b/stubs/Doctrine/Common/Persistence/ObjectManager.php @@ -10,5 +10,7 @@ if (interface_exists('Doctrine\Common\Persistence\ObjectManager')) { interface ObjectManager { - + public function getRepository(): \Doctrine\ORM\EntityRepository + { + } } diff --git a/stubs/Doctrine/ORM/EntityRepository.php b/stubs/Doctrine/ORM/EntityRepository.php index 7c971aa08c5..4525d9081ee 100644 --- a/stubs/Doctrine/ORM/EntityRepository.php +++ b/stubs/Doctrine/ORM/EntityRepository.php @@ -12,7 +12,7 @@ if (class_exists('Doctrine\ORM\EntityRepository')) { class EntityRepository { /** - * @var EntityManager + * @var EntityManagerInterface */ protected $_em; diff --git a/tests/Exclusion/ExclusionManagerTest.php b/tests/Exclusion/ExclusionManagerTest.php index b8c81026925..37682172c6b 100644 --- a/tests/Exclusion/ExclusionManagerTest.php +++ b/tests/Exclusion/ExclusionManagerTest.php @@ -21,6 +21,9 @@ final class ExclusionManagerTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/tests/PhpParser/Printer/CommentPreserving/CommentPreservingTest.php b/tests/PhpParser/Printer/CommentPreserving/CommentPreservingTest.php index 455f27ebb86..ba3e8212212 100644 --- a/tests/PhpParser/Printer/CommentPreserving/CommentPreservingTest.php +++ b/tests/PhpParser/Printer/CommentPreserving/CommentPreservingTest.php @@ -19,6 +19,9 @@ final class CommentPreservingTest extends AbstractRectorTestCase $this->doTestFileInfo($fileInfo); } + /** + * @return Iterator + */ public function provideData(): Iterator { return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); diff --git a/utils/phpstan-extensions/config/phpstan-extensions.neon b/utils/phpstan-extensions/config/phpstan-extensions.neon index 0cc832e732d..197a80da716 100644 --- a/utils/phpstan-extensions/config/phpstan-extensions.neon +++ b/utils/phpstan-extensions/config/phpstan-extensions.neon @@ -1,5 +1,5 @@ services: - - Rector\PHPStanExtensions\TypeResolver\MethodCallTypeResolver + - Rector\PHPStanExtensions\TypeResolver\GetNameMethodCallTypeResolver # $nodeFinder->findInstanceOf() # $nodeFinder->findFirstInstanceOf() diff --git a/utils/phpstan-extensions/src/ReturnTypeExtension/NameResolverReturnTypeAbstractRectorExtension.php b/utils/phpstan-extensions/src/ReturnTypeExtension/NameResolverReturnTypeAbstractRectorExtension.php index fe8a779920f..f6053f0fccf 100644 --- a/utils/phpstan-extensions/src/ReturnTypeExtension/NameResolverReturnTypeAbstractRectorExtension.php +++ b/utils/phpstan-extensions/src/ReturnTypeExtension/NameResolverReturnTypeAbstractRectorExtension.php @@ -12,7 +12,7 @@ use PHPStan\Type\DynamicMethodReturnTypeExtension; use PHPStan\Type\Type; use Rector\Core\Rector\AbstractRector; use Rector\Core\Rector\AbstractTemporaryRector; -use Rector\PHPStanExtensions\TypeResolver\MethodCallTypeResolver; +use Rector\PHPStanExtensions\TypeResolver\GetNameMethodCallTypeResolver; /** * @see AbstractTemporaryRector::getName() @@ -22,11 +22,11 @@ use Rector\PHPStanExtensions\TypeResolver\MethodCallTypeResolver; final class NameResolverReturnTypeAbstractRectorExtension implements DynamicMethodReturnTypeExtension { /** - * @var MethodCallTypeResolver + * @var GetNameMethodCallTypeResolver */ private $methodCallTypeResolver; - public function __construct(MethodCallTypeResolver $methodCallTypeResolver) + public function __construct(GetNameMethodCallTypeResolver $methodCallTypeResolver) { $this->methodCallTypeResolver = $methodCallTypeResolver; } diff --git a/utils/phpstan-extensions/src/ReturnTypeExtension/NameResolverReturnTypeExtension.php b/utils/phpstan-extensions/src/ReturnTypeExtension/NameResolverReturnTypeExtension.php index f9be1d5dbdb..4f77a5a4c9f 100644 --- a/utils/phpstan-extensions/src/ReturnTypeExtension/NameResolverReturnTypeExtension.php +++ b/utils/phpstan-extensions/src/ReturnTypeExtension/NameResolverReturnTypeExtension.php @@ -11,7 +11,7 @@ use PHPStan\Reflection\MethodReflection; use PHPStan\Type\DynamicMethodReturnTypeExtension; use PHPStan\Type\Type; use Rector\NodeNameResolver\NodeNameResolver; -use Rector\PHPStanExtensions\TypeResolver\MethodCallTypeResolver; +use Rector\PHPStanExtensions\TypeResolver\GetNameMethodCallTypeResolver; /** * @see \Rector\NodeNameResolver\NodeNameResolver::getName() @@ -21,11 +21,11 @@ use Rector\PHPStanExtensions\TypeResolver\MethodCallTypeResolver; final class NameResolverReturnTypeExtension implements DynamicMethodReturnTypeExtension { /** - * @var MethodCallTypeResolver + * @var GetNameMethodCallTypeResolver */ private $methodCallTypeResolver; - public function __construct(MethodCallTypeResolver $methodCallTypeResolver) + public function __construct(GetNameMethodCallTypeResolver $methodCallTypeResolver) { $this->methodCallTypeResolver = $methodCallTypeResolver; } diff --git a/utils/phpstan-extensions/src/Rule/RequireRectorCategoryByGetNodeTypesRule.php b/utils/phpstan-extensions/src/Rule/RequireRectorCategoryByGetNodeTypesRule.php index 6deb32228e8..fe8073b58d2 100644 --- a/utils/phpstan-extensions/src/Rule/RequireRectorCategoryByGetNodeTypesRule.php +++ b/utils/phpstan-extensions/src/Rule/RequireRectorCategoryByGetNodeTypesRule.php @@ -24,6 +24,16 @@ final class RequireRectorCategoryByGetNodeTypesRule implements Rule */ public const ERROR_MESSAGE = 'Class "%s" has invalid namespace category "%s". Pick one of: "%s"'; + /** + * @var NodeFinder + */ + private $nodeFinder; + + public function __construct(NodeFinder $nodeFinder) + { + $this->nodeFinder = $nodeFinder; + } + public function getNodeType(): string { return ClassMethod::class; @@ -97,10 +107,8 @@ final class RequireRectorCategoryByGetNodeTypesRule implements Rule */ private function resolveAllowedNodeCategories(ClassMethod $classMethod): array { - $nodeFinder = new NodeFinder(); - /** @var ClassConstFetch[] $classConstFetches */ - $classConstFetches = $nodeFinder->findInstanceOf((array) $classMethod->stmts, ClassConstFetch::class); + $classConstFetches = $this->nodeFinder->findInstanceOf((array) $classMethod->stmts, ClassConstFetch::class); $allowedRectorCategories = []; foreach ($classConstFetches as $classConstFetch) { diff --git a/utils/phpstan-extensions/src/TypeResolver/MethodCallTypeResolver.php b/utils/phpstan-extensions/src/TypeResolver/GetNameMethodCallTypeResolver.php similarity index 97% rename from utils/phpstan-extensions/src/TypeResolver/MethodCallTypeResolver.php rename to utils/phpstan-extensions/src/TypeResolver/GetNameMethodCallTypeResolver.php index 91b2fc00725..7519f510e7f 100644 --- a/utils/phpstan-extensions/src/TypeResolver/MethodCallTypeResolver.php +++ b/utils/phpstan-extensions/src/TypeResolver/GetNameMethodCallTypeResolver.php @@ -22,7 +22,7 @@ use PHPStan\Type\ObjectType; use PHPStan\Type\StringType; use PHPStan\Type\Type; -final class MethodCallTypeResolver +final class GetNameMethodCallTypeResolver { /** * @var class-string diff --git a/utils/phpstan-extensions/tests/Rule/RequireRectorCategoryByGetNodeTypesRule/config/configured_rule.neon b/utils/phpstan-extensions/tests/Rule/RequireRectorCategoryByGetNodeTypesRule/config/configured_rule.neon index 8f511032d2b..ee30fe58374 100644 --- a/utils/phpstan-extensions/tests/Rule/RequireRectorCategoryByGetNodeTypesRule/config/configured_rule.neon +++ b/utils/phpstan-extensions/tests/Rule/RequireRectorCategoryByGetNodeTypesRule/config/configured_rule.neon @@ -1,4 +1,6 @@ services: + - PhpParser\NodeFinder + - class: Rector\PHPStanExtensions\Rule\RequireRectorCategoryByGetNodeTypesRule tags: [phpstan.rules.rule] diff --git a/utils/project-validator/src/Command/ValidateFixtureSuffixCommand.php b/utils/project-validator/src/Command/ValidateFixtureSuffixCommand.php deleted file mode 100644 index 797ac537493..00000000000 --- a/utils/project-validator/src/Command/ValidateFixtureSuffixCommand.php +++ /dev/null @@ -1,90 +0,0 @@ -finderSanitizer = $finderSanitizer; - $this->symfonyStyle = $symfonyStyle; - - parent::__construct(); - } - - protected function configure(): void - { - $this->setDescription('[CI] Validate tests fixtures suffix'); - } - - protected function execute(InputInterface $input, OutputInterface $output): int - { - $invalidFilePaths = []; - - foreach ($this->getInvalidFixtureFileInfos() as $invalidFixtureFileInfo) { - $invalidFilePaths[] = $invalidFixtureFileInfo->getRelativeFilePathFromCwd(); - } - - if ($invalidFilePaths !== []) { - $this->symfonyStyle->listing($invalidFilePaths); - $message = sprintf('Found %d files with invalid suffix. Must be *.php.inc', count($invalidFilePaths)); - - $this->symfonyStyle->error($message); - - return ShellCode::ERROR; - } - - $this->symfonyStyle->success('All fixtures are correct'); - - return ShellCode::SUCCESS; - } - - /** - * @return SmartFileInfo[] - */ - private function getInvalidFixtureFileInfos(): array - { - $finder = new Finder(); - $finder = $finder->files() - ->name('#\.inc$#') - ->name('#\.php#') - ->notName('#\.php\.inc$#') - ->path('#/Fixture/#') - // paths that needs psr-4 autoload - ->notPath('#TagValueNodeReprint#') - ->notPath('#PhpSpecToPHPUnitRector#') - ->notPath('#Source#') - ->notPath('#expected#') - ->notPath('DoctrineRepositoryAsService/Fixture/PostController.php') - ->notPath('Namespace_/ImportFullyQualifiedNamesRector/Fixture/SharedShortName.php') - ->notPath('Name/RenameClassRector/Fixture/DuplicatedClass.php') - ->notPath('Rector/FileNode/RenameSpecFileToTestFileRector/Fixture/some_file_Spec.php') - ->notPath('Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/DateTime.php') - ->in(__DIR__ . '/../../../../tests') - ->in(__DIR__ . '/../../../../packages-tests') - ->in(__DIR__ . '/../../../../rules-tests'); - - return $this->finderSanitizer->sanitize($finder); - } -}