├── .editorconfig ├── .gitattributes ├── .github ├── FUNDING.yml ├── dependabot.yaml ├── typos.toml └── workflows │ ├── build_scoped_rector.yaml │ ├── code_analysis.yaml │ ├── code_analysis_no_dev.yaml │ ├── compat_test.yaml │ ├── e2e.yaml │ ├── e2e_command_with_option.yaml │ ├── e2e_with_cache.yaml │ ├── e2e_with_no_diffs.yaml │ ├── lock.yaml │ ├── packages_tests.yaml │ ├── phpstan_printer_test.yaml │ ├── rector.yaml │ ├── stale.yaml │ ├── tests.yaml │ ├── typos.yaml │ └── weekly_pull_requests.yaml ├── .gitignore ├── .phpstorm.meta.php ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── UPGRADING.md ├── bin ├── rector └── rector.php ├── composer-dependency-analyser.php ├── composer.json ├── config ├── config.php ├── phpstan │ ├── better-infer.neon │ ├── parser.neon │ └── static-reflection.neon └── set │ ├── assert.php │ ├── behat-annotations-to-attributes.php │ ├── code-quality.php │ ├── coding-style.php │ ├── datetime-to-carbon.php │ ├── dead-code.php │ ├── early-return.php │ ├── gmagick-to-imagick.php │ ├── instanceof.php │ ├── level │ ├── up-to-php53.php │ ├── up-to-php54.php │ ├── up-to-php55.php │ ├── up-to-php56.php │ ├── up-to-php70.php │ ├── up-to-php71.php │ ├── up-to-php72.php │ ├── up-to-php73.php │ ├── up-to-php74.php │ ├── up-to-php80.php │ ├── up-to-php81.php │ ├── up-to-php82.php │ ├── up-to-php83.php │ ├── up-to-php84.php │ └── up-to-php85.php │ ├── naming.php │ ├── nette-utils │ └── nette-utils4.php │ ├── php-polyfills.php │ ├── php52.php │ ├── php53.php │ ├── php54.php │ ├── php55.php │ ├── php56.php │ ├── php70.php │ ├── php71.php │ ├── php72.php │ ├── php73.php │ ├── php74.php │ ├── php80.php │ ├── php81.php │ ├── php82.php │ ├── php83.php │ ├── php84.php │ ├── php85.php │ ├── privatization.php │ ├── rector-preset.php │ ├── strict-booleans.php │ ├── type-declaration-docblocks.php │ └── type-declaration.php ├── docker-compose.yml ├── e2e ├── applied-auto-import │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ └── RenameDocblock.php ├── applied-polyfill-php80 │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ └── SomeStartWith.php ├── applied-rule-change-docblock │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── AlreadyChangedDocblock.php │ │ ├── RenameDocblock.php │ │ └── UselessVarTag.php ├── applied-rule-removed-node-no-diffs │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── AlwaysTrue.php │ │ └── DeadConstructor.php ├── applied-rule-removed-node-with-cache │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── AlwaysTrue.php │ │ └── DeadConstructor.php ├── applied-rule-removed-node │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── AlwaysTrue.php │ │ └── DeadConstructor.php ├── applied-rule-return-array-nodes │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── MultiRules.php │ │ └── RemoveAlwaysElse.php ├── command-with-option │ ├── rector.php │ └── some_file.php ├── different-path-over-skip-config │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── controllers │ │ └── DeadConstructor.php │ │ └── models │ │ └── DeadConstructor.php ├── e2eTestRunner.php ├── e2eTestRunnerWithCache.php ├── invalid-paths │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ └── NamespacedSomeClassFound.php ├── no-parallel-reflection-resolver │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── NamespacedSomeClassFound.php │ │ └── SomeClassNotFound.php ├── only-option-quote-double-equalnone │ ├── cli-options.txt │ ├── composer.json │ ├── expected-output.diff │ └── rector.php ├── only-option-quote-single-bsdouble │ ├── cli-options.txt │ ├── composer.json │ ├── expected-output.diff │ └── rector.php ├── only-option-quote-single-equalnone │ ├── cli-options.txt │ ├── composer.json │ ├── expected-output.diff │ └── rector.php ├── only-option-quote-single │ ├── cli-options.txt │ ├── composer.json │ ├── expected-output.diff │ └── rector.php ├── only-option │ ├── cli-options.txt │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── MultiRules.php │ │ └── RemoveAlwaysElse.php ├── parallel with space │ ├── composer.json │ ├── rector.php │ └── src │ │ └── Test.php ├── parallel-custom-config │ ├── .gitignore │ ├── composer.json │ ├── custom │ │ └── config │ │ │ └── rector.php │ ├── expected-output.diff │ └── src │ │ └── SomeClass.php ├── parallel-reflection-resolver │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── NamespacedSomeClassFound.php │ │ └── SomeClassNotFound.php ├── print-new-node │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ │ ├── ExtendingTestClass.php │ │ └── TestClass.php └── timeout-file-not-cached │ ├── .gitignore │ ├── composer.json │ ├── expected-output.diff │ ├── rector.php │ └── src │ └── SomeFixturePrinter.php ├── ecs.php ├── full_build.sh ├── phpstan.neon ├── phpunit.xml ├── preload-split-package.php ├── preload.php ├── rector.php ├── rules ├── Arguments │ ├── ArgumentDefaultValueReplacer.php │ ├── Contract │ │ └── ReplaceArgumentDefaultValueInterface.php │ ├── NodeAnalyzer │ │ ├── ArgumentAddingScope.php │ │ └── ChangedArgumentsDetector.php │ ├── Rector │ │ ├── ClassMethod │ │ │ ├── ArgumentAdderRector.php │ │ │ └── ReplaceArgumentDefaultValueRector.php │ │ ├── FuncCall │ │ │ └── FunctionArgumentDefaultValueReplacerRector.php │ │ └── MethodCall │ │ │ └── RemoveMethodCallParamRector.php │ └── ValueObject │ │ ├── ArgumentAdder.php │ │ ├── ArgumentAdderWithoutDefaultValue.php │ │ ├── RemoveMethodCallParam.php │ │ ├── ReplaceArgumentDefaultValue.php │ │ └── ReplaceFuncCallArgumentDefaultValue.php ├── Assert │ ├── Enum │ │ └── AssertClassName.php │ ├── NodeAnalyzer │ │ └── ExistingAssertStaticCallResolver.php │ └── Rector │ │ └── ClassMethod │ │ └── AddAssertArrayFromClassMethodDocblockRector.php ├── Carbon │ ├── NodeFactory │ │ └── CarbonCallFactory.php │ └── Rector │ │ ├── FuncCall │ │ ├── DateFuncCallToCarbonRector.php │ │ └── TimeFuncCallToCarbonRector.php │ │ ├── MethodCall │ │ └── DateTimeMethodCallToCarbonRector.php │ │ └── New_ │ │ └── DateTimeInstanceToCarbonRector.php ├── CodeQuality │ ├── CompactConverter.php │ ├── NodeAnalyzer │ │ ├── ClassLikeAnalyzer.php │ │ ├── ForeachAnalyzer.php │ │ ├── LocalPropertyAnalyzer.php │ │ ├── MissingPropertiesResolver.php │ │ └── VariableDimFetchAssignResolver.php │ ├── NodeFactory │ │ ├── MissingPropertiesFactory.php │ │ ├── PropertyTypeDecorator.php │ │ └── TypedPropertyFactory.php │ ├── NodeManipulator │ │ └── ExprBoolCaster.php │ ├── Rector │ │ ├── Assign │ │ │ └── CombinedAssignRector.php │ │ ├── BooleanAnd │ │ │ ├── RemoveUselessIsObjectCheckRector.php │ │ │ ├── RepeatedAndNotEqualToNotInArrayRector.php │ │ │ └── SimplifyEmptyArrayCheckRector.php │ │ ├── BooleanNot │ │ │ ├── ReplaceConstantBooleanNotRector.php │ │ │ ├── ReplaceMultipleBooleanNotRector.php │ │ │ └── SimplifyDeMorganBinaryRector.php │ │ ├── BooleanOr │ │ │ └── RepeatedOrEqualToInArrayRector.php │ │ ├── Catch_ │ │ │ └── ThrowWithPreviousExceptionRector.php │ │ ├── ClassConstFetch │ │ │ └── VariableConstFetchToClassConstFetchRector.php │ │ ├── ClassMethod │ │ │ ├── ExplicitReturnNullRector.php │ │ │ ├── InlineArrayReturnAssignRector.php │ │ │ ├── LocallyCalledStaticMethodToNonStaticRector.php │ │ │ └── OptionalParametersAfterRequiredRector.php │ │ ├── Class_ │ │ │ ├── CompleteDynamicPropertiesRector.php │ │ │ ├── ConvertStaticToSelfRector.php │ │ │ ├── DynamicDocBlockPropertyToNativePropertyRector.php │ │ │ ├── InlineConstructorDefaultToPropertyRector.php │ │ │ ├── RemoveReadonlyPropertyVisibilityOnReadonlyClassRector.php │ │ │ └── ReturnIteratorInDataProviderRector.php │ │ ├── Concat │ │ │ ├── DirnameDirConcatStringToDirectStringPathRector.php │ │ │ └── JoinStringConcatRector.php │ │ ├── Empty_ │ │ │ └── SimplifyEmptyCheckOnEmptyArrayRector.php │ │ ├── Equal │ │ │ └── UseIdenticalOverEqualWithSameTypeRector.php │ │ ├── Expression │ │ │ ├── InlineIfToExplicitIfRector.php │ │ │ └── TernaryFalseExpressionToIfRector.php │ │ ├── For_ │ │ │ └── ForRepeatedCountToOwnVariableRector.php │ │ ├── Foreach_ │ │ │ ├── ForeachItemsAssignToEmptyArrayToAssignRector.php │ │ │ ├── ForeachToInArrayRector.php │ │ │ ├── SimplifyForeachToCoalescingRector.php │ │ │ └── UnusedForeachValueToArrayKeysRector.php │ │ ├── FuncCall │ │ │ ├── ArrayMergeOfNonArraysToSimpleArrayRector.php │ │ │ ├── CallUserFuncWithArrowFunctionToInlineRector.php │ │ │ ├── ChangeArrayPushToArrayAssignRector.php │ │ │ ├── CompactToVariablesRector.php │ │ │ ├── InlineIsAInstanceOfRector.php │ │ │ ├── IsAWithStringWithThirdArgumentRector.php │ │ │ ├── RemoveSoleValueSprintfRector.php │ │ │ ├── SetTypeToCastRector.php │ │ │ ├── SimplifyFuncGetArgsCountRector.php │ │ │ ├── SimplifyInArrayValuesRector.php │ │ │ ├── SimplifyRegexPatternRector.php │ │ │ ├── SimplifyStrposLowerRector.php │ │ │ ├── SingleInArrayToCompareRector.php │ │ │ ├── SortNamedParamRector.php │ │ │ └── UnwrapSprintfOneArgumentRector.php │ │ ├── FunctionLike │ │ │ └── SimplifyUselessVariableRector.php │ │ ├── Identical │ │ │ ├── BooleanNotIdenticalToNotIdenticalRector.php │ │ │ ├── FlipTypeControlToUseExclusiveTypeRector.php │ │ │ ├── SimplifyArraySearchRector.php │ │ │ ├── SimplifyBoolIdenticalTrueRector.php │ │ │ ├── SimplifyConditionsRector.php │ │ │ └── StrlenZeroToIdenticalEmptyStringRector.php │ │ ├── If_ │ │ │ ├── CombineIfRector.php │ │ │ ├── CompleteMissingIfElseBracketRector.php │ │ │ ├── ConsecutiveNullCompareReturnsToNullCoalesceQueueRector.php │ │ │ ├── ExplicitBoolCompareRector.php │ │ │ ├── ShortenElseIfRector.php │ │ │ ├── SimplifyIfElseToTernaryRector.php │ │ │ ├── SimplifyIfNotNullReturnRector.php │ │ │ ├── SimplifyIfNullableReturnRector.php │ │ │ └── SimplifyIfReturnBoolRector.php │ │ ├── Include_ │ │ │ └── AbsolutizeRequireAndIncludePathRector.php │ │ ├── Isset_ │ │ │ └── IssetOnPropertyObjectToPropertyExistsRector.php │ │ ├── LogicalAnd │ │ │ ├── AndAssignsToSeparateLinesRector.php │ │ │ └── LogicalToBooleanRector.php │ │ ├── New_ │ │ │ └── NewStaticToNewSelfRector.php │ │ ├── NotEqual │ │ │ └── CommonNotEqualRector.php │ │ ├── NullsafeMethodCall │ │ │ └── CleanupUnneededNullsafeOperatorRector.php │ │ ├── Switch_ │ │ │ ├── SingularSwitchToIfRector.php │ │ │ └── SwitchTrueToIfRector.php │ │ └── Ternary │ │ │ ├── ArrayKeyExistsTernaryThenValueToCoalescingRector.php │ │ │ ├── NumberCompareToMaxFuncCallRector.php │ │ │ ├── SimplifyTautologyTernaryRector.php │ │ │ ├── SwitchNegatedTernaryRector.php │ │ │ ├── TernaryEmptyArrayArrayDimFetchToCoalesceRector.php │ │ │ ├── TernaryImplodeToImplodeRector.php │ │ │ └── UnnecessaryTernaryExpressionRector.php │ ├── TypeResolver │ │ ├── ArrayDimFetchTypeResolver.php │ │ └── AssignVariableTypeResolver.php │ └── ValueObject │ │ ├── ComparedExprAndValueExpr.php │ │ ├── DefinedPropertyWithType.php │ │ └── KeyAndExpr.php ├── CodingStyle │ ├── Application │ │ ├── UseImportsAdder.php │ │ └── UseImportsRemover.php │ ├── ClassNameImport │ │ ├── AliasUsesResolver.php │ │ ├── ClassNameImportSkipVoter │ │ │ ├── AliasClassNameImportSkipVoter.php │ │ │ ├── ClassLikeNameClassNameImportSkipVoter.php │ │ │ ├── FullyQualifiedNameClassNameImportSkipVoter.php │ │ │ ├── OriginalNameImportSkipVoter.php │ │ │ ├── ReservedClassNameImportSkipVoter.php │ │ │ ├── ShortClassImportSkipVoter.php │ │ │ └── UsesClassNameImportSkipVoter.php │ │ ├── ClassNameImportSkipper.php │ │ ├── NamespaceBeforeClassNameResolver.php │ │ ├── ShortNameResolver.php │ │ ├── UseImportsTraverser.php │ │ ├── UsedImportsResolver.php │ │ └── ValueObject │ │ │ └── UsedImports.php │ ├── Contract │ │ └── ClassNameImport │ │ │ └── ClassNameImportSkipVoterInterface.php │ ├── Guard │ │ ├── ArrowFunctionAndClosureFirstClassCallableGuard.php │ │ └── StaticGuard.php │ ├── Naming │ │ └── ClassNaming.php │ ├── Node │ │ └── NameImporter.php │ ├── NodeAnalyzer │ │ └── UseImportNameMatcher.php │ ├── NodeFactory │ │ └── ArrayCallableToMethodCallFactory.php │ ├── Rector │ │ ├── ArrowFunction │ │ │ ├── ArrowFunctionDelegatingCallToFirstClassCallableRector.php │ │ │ └── StaticArrowFunctionRector.php │ │ ├── Assign │ │ │ ├── NestedTernaryToMatchRector.php │ │ │ └── SplitDoubleAssignRector.php │ │ ├── Catch_ │ │ │ └── CatchExceptionNameMatchingTypeRector.php │ │ ├── ClassConst │ │ │ ├── RemoveFinalFromConstRector.php │ │ │ └── SplitGroupedClassConstantsRector.php │ │ ├── ClassLike │ │ │ └── NewlineBetweenClassLikeStmtsRector.php │ │ ├── ClassMethod │ │ │ ├── BinaryOpStandaloneAssignsToDirectRector.php │ │ │ ├── FuncGetArgsToVariadicParamRector.php │ │ │ ├── MakeInheritedMethodVisibilitySameAsParentRector.php │ │ │ └── NewlineBeforeNewAssignSetRector.php │ │ ├── Closure │ │ │ ├── ClosureDelegatingCallToFirstClassCallableRector.php │ │ │ └── StaticClosureRector.php │ │ ├── Encapsed │ │ │ ├── EncapsedStringsToSprintfRector.php │ │ │ └── WrapEncapsedVariableInCurlyBracesRector.php │ │ ├── Enum_ │ │ │ └── EnumCaseToPascalCaseRector.php │ │ ├── FuncCall │ │ │ ├── ArraySpreadInsteadOfArrayMergeRector.php │ │ │ ├── CallUserFuncArrayToVariadicRector.php │ │ │ ├── CallUserFuncToMethodCallRector.php │ │ │ ├── ClosureFromCallableToFirstClassCallableRector.php │ │ │ ├── ConsistentImplodeRector.php │ │ │ ├── CountArrayToEmptyArrayComparisonRector.php │ │ │ ├── FunctionFirstClassCallableRector.php │ │ │ ├── StrictArraySearchRector.php │ │ │ └── VersionCompareFuncCallToConstantRector.php │ │ ├── FunctionLike │ │ │ └── FunctionLikeToFirstClassCallableRector.php │ │ ├── If_ │ │ │ └── NullableCompareToNullRector.php │ │ ├── PostInc │ │ │ └── PostIncDecToPreIncDecRector.php │ │ ├── Property │ │ │ └── SplitGroupedPropertiesRector.php │ │ ├── Stmt │ │ │ ├── NewlineAfterStatementRector.php │ │ │ └── RemoveUselessAliasInUseStatementRector.php │ │ ├── String_ │ │ │ ├── SimplifyQuoteEscapeRector.php │ │ │ └── UseClassKeywordForClassNameResolutionRector.php │ │ ├── Ternary │ │ │ └── TernaryConditionVariableAssignmentRector.php │ │ └── Use_ │ │ │ └── SeparateMultiUseImportsRector.php │ └── ValueObject │ │ ├── ConditionAndResult.php │ │ ├── ObjectMagicMethods.php │ │ └── VariableAndExprAssign.php ├── DeadCode │ ├── ConditionEvaluator.php │ ├── ConditionResolver.php │ ├── Contract │ │ └── ConditionInterface.php │ ├── NodeAnalyzer │ │ ├── CallCollectionAnalyzer.php │ │ ├── CallLikeParamDefaultResolver.php │ │ ├── ExprUsedInNodeAnalyzer.php │ │ ├── IsClassMethodUsedAnalyzer.php │ │ ├── PropertyWriteonlyAnalyzer.php │ │ ├── SafeLeftTypeBooleanAndOrAnalyzer.php │ │ └── UsedVariableNameAnalyzer.php │ ├── NodeCollector │ │ └── UnusedParameterResolver.php │ ├── NodeManipulator │ │ ├── ClassMethodParamRemover.php │ │ ├── ControllerClassMethodManipulator.php │ │ ├── CountManipulator.php │ │ └── LivingCodeManipulator.php │ ├── PhpDoc │ │ ├── DeadParamTagValueNodeAnalyzer.php │ │ ├── DeadReturnTagValueNodeAnalyzer.php │ │ ├── DeadVarTagValueNodeAnalyzer.php │ │ ├── Guard │ │ │ ├── StandaloneTypeRemovalGuard.php │ │ │ └── TemplateTypeRemovalGuard.php │ │ └── TagRemover │ │ │ ├── ParamTagRemover.php │ │ │ ├── ReturnTagRemover.php │ │ │ └── VarTagRemover.php │ ├── Rector │ │ ├── Array_ │ │ │ └── RemoveDuplicatedArrayKeyRector.php │ │ ├── Assign │ │ │ ├── RemoveDoubleAssignRector.php │ │ │ └── RemoveUnusedVariableAssignRector.php │ │ ├── Block │ │ │ └── ReplaceBlockToItsStmtsRector.php │ │ ├── BooleanAnd │ │ │ └── RemoveAndTrueRector.php │ │ ├── Cast │ │ │ └── RecastingRemovalRector.php │ │ ├── ClassConst │ │ │ └── RemoveUnusedPrivateClassConstantRector.php │ │ ├── ClassLike │ │ │ ├── RemoveAnnotationRector.php │ │ │ └── RemoveTypedPropertyNonMockDocblockRector.php │ │ ├── ClassMethod │ │ │ ├── RemoveArgumentFromDefaultParentCallRector.php │ │ │ ├── RemoveEmptyClassMethodRector.php │ │ │ ├── RemoveNullTagValueNodeRector.php │ │ │ ├── RemoveUnusedConstructorParamRector.php │ │ │ ├── RemoveUnusedPrivateMethodParameterRector.php │ │ │ ├── RemoveUnusedPrivateMethodRector.php │ │ │ ├── RemoveUnusedPromotedPropertyRector.php │ │ │ ├── RemoveUnusedPublicMethodParameterRector.php │ │ │ ├── RemoveUselessAssignFromPropertyPromotionRector.php │ │ │ ├── RemoveUselessParamTagRector.php │ │ │ ├── RemoveUselessReturnExprInConstructRector.php │ │ │ └── RemoveUselessReturnTagRector.php │ │ ├── Closure │ │ │ └── RemoveUnusedClosureVariableUseRector.php │ │ ├── Concat │ │ │ └── RemoveConcatAutocastRector.php │ │ ├── ConstFetch │ │ │ └── RemovePhpVersionIdCheckRector.php │ │ ├── Expression │ │ │ ├── RemoveDeadStmtRector.php │ │ │ └── SimplifyMirrorAssignRector.php │ │ ├── For_ │ │ │ ├── RemoveDeadContinueRector.php │ │ │ ├── RemoveDeadIfForeachForRector.php │ │ │ └── RemoveDeadLoopRector.php │ │ ├── Foreach_ │ │ │ └── RemoveUnusedForeachKeyRector.php │ │ ├── FuncCall │ │ │ └── RemoveFilterVarOnExactTypeRector.php │ │ ├── FunctionLike │ │ │ ├── NarrowWideUnionReturnTypeRector.php │ │ │ └── RemoveDeadReturnRector.php │ │ ├── If_ │ │ │ ├── ReduceAlwaysFalseIfOrRector.php │ │ │ ├── RemoveAlwaysTrueIfConditionRector.php │ │ │ ├── RemoveDeadInstanceOfRector.php │ │ │ ├── RemoveTypedPropertyDeadInstanceOfRector.php │ │ │ ├── RemoveUnusedNonEmptyArrayBeforeForeachRector.php │ │ │ ├── SimplifyIfElseWithSameContentRector.php │ │ │ └── UnwrapFutureCompatibleIfPhpVersionRector.php │ │ ├── MethodCall │ │ │ └── RemoveNullArgOnNullDefaultParamRector.php │ │ ├── Node │ │ │ └── RemoveNonExistingVarAnnotationRector.php │ │ ├── Plus │ │ │ └── RemoveDeadZeroAndOneOperationRector.php │ │ ├── Property │ │ │ ├── RemoveUnusedPrivatePropertyRector.php │ │ │ ├── RemoveUselessReadOnlyTagRector.php │ │ │ └── RemoveUselessVarTagRector.php │ │ ├── PropertyProperty │ │ │ └── RemoveNullPropertyInitializationRector.php │ │ ├── Return_ │ │ │ └── RemoveDeadConditionAboveReturnRector.php │ │ ├── StaticCall │ │ │ └── RemoveParentCallWithoutParentRector.php │ │ ├── Stmt │ │ │ ├── RemoveConditionExactReturnRector.php │ │ │ ├── RemoveNextSameValueConditionRector.php │ │ │ └── RemoveUnreachableStatementRector.php │ │ ├── Switch_ │ │ │ └── RemoveDuplicatedCaseInSwitchRector.php │ │ ├── Ternary │ │ │ └── TernaryToBooleanOrFalseToBooleanAndRector.php │ │ └── TryCatch │ │ │ ├── RemoveDeadCatchRector.php │ │ │ └── RemoveDeadTryCatchRector.php │ ├── SideEffect │ │ ├── PureFunctionDetector.php │ │ └── SideEffectNodeDetector.php │ ├── TypeNodeAnalyzer │ │ ├── GenericTypeNodeAnalyzer.php │ │ └── MixedArrayTypeNodeAnalyzer.php │ ├── UselessIfCondBeforeForeachDetector.php │ └── ValueObject │ │ ├── BinaryToVersionCompareCondition.php │ │ └── VersionCompareCondition.php ├── EarlyReturn │ ├── NodeTransformer │ │ └── ConditionInverter.php │ ├── Rector │ │ ├── Foreach_ │ │ │ └── ChangeNestedForeachIfsToEarlyContinueRector.php │ │ ├── If_ │ │ │ ├── ChangeIfElseValueAssignToEarlyReturnRector.php │ │ │ ├── ChangeNestedIfsToEarlyReturnRector.php │ │ │ ├── ChangeOrIfContinueToMultiContinueRector.php │ │ │ └── RemoveAlwaysElseRector.php │ │ ├── Return_ │ │ │ ├── PreparedValueToEarlyReturnRector.php │ │ │ └── ReturnBinaryOrToEarlyReturnRector.php │ │ └── StmtsAwareInterface │ │ │ └── ReturnEarlyIfVariableRector.php │ └── ValueObject │ │ └── BareSingleAssignIf.php ├── Instanceof_ │ └── Rector │ │ └── Ternary │ │ └── FlipNegatedTernaryInstanceofRector.php ├── Naming │ ├── ExpectedNameResolver │ │ ├── InflectorSingularResolver.php │ │ ├── MatchParamTypeExpectedNameResolver.php │ │ └── MatchPropertyTypeExpectedNameResolver.php │ ├── Guard │ │ ├── BreakingVariableRenameGuard.php │ │ ├── DateTimeAtNamingConventionGuard.php │ │ ├── HasMagicGetSetGuard.php │ │ └── PropertyConflictingNameGuard │ │ │ └── MatchPropertyTypeConflictingNameGuard.php │ ├── Matcher │ │ ├── CallMatcher.php │ │ ├── ForeachMatcher.php │ │ └── VariableAndCallAssignMatcher.php │ ├── Naming │ │ ├── AliasNameResolver.php │ │ ├── ConflictingNameResolver.php │ │ ├── ExpectedNameResolver.php │ │ ├── OverriddenExistingNamesResolver.php │ │ ├── PropertyNaming.php │ │ ├── UseImportsResolver.php │ │ └── VariableNaming.php │ ├── NamingConvention │ │ └── NamingConventionAnalyzer.php │ ├── ParamRenamer │ │ └── ParamRenamer.php │ ├── PhpArray │ │ └── ArrayFilter.php │ ├── PhpDoc │ │ └── VarTagValueNodeRenamer.php │ ├── PropertyRenamer │ │ ├── MatchTypePropertyRenamer.php │ │ ├── PropertyFetchRenamer.php │ │ └── PropertyPromotionRenamer.php │ ├── Rector │ │ ├── Assign │ │ │ └── RenameVariableToMatchMethodCallReturnTypeRector.php │ │ ├── ClassMethod │ │ │ ├── RenameParamToMatchTypeRector.php │ │ │ └── RenameVariableToMatchNewTypeRector.php │ │ ├── Class_ │ │ │ └── RenamePropertyToMatchTypeRector.php │ │ └── Foreach_ │ │ │ ├── RenameForeachValueVariableToMatchExprVariableRector.php │ │ │ └── RenameForeachValueVariableToMatchMethodCallReturnTypeRector.php │ ├── RectorNamingInflector.php │ ├── RenameGuard │ │ └── PropertyRenameGuard.php │ ├── ValueObject │ │ ├── ExpectedName.php │ │ ├── ParamRename.php │ │ ├── PropertyRename.php │ │ ├── VariableAndCallAssign.php │ │ └── VariableAndCallForeach.php │ ├── ValueObjectFactory │ │ ├── ParamRenameFactory.php │ │ └── PropertyRenameFactory.php │ └── VariableRenamer.php ├── NetteUtils │ └── Rector │ │ └── StaticCall │ │ └── UtilsJsonStaticCallNamedArgRector.php ├── Php52 │ └── Rector │ │ ├── Property │ │ └── VarToPublicPropertyRector.php │ │ └── Switch_ │ │ └── ContinueToBreakInSwitchRector.php ├── Php53 │ └── Rector │ │ ├── FuncCall │ │ └── DirNameFileConstantToDirConstantRector.php │ │ ├── Ternary │ │ └── TernaryToElvisRector.php │ │ └── Variable │ │ └── ReplaceHttpServerVarsByServerRector.php ├── Php54 │ └── Rector │ │ ├── Array_ │ │ └── LongArrayToShortArrayRector.php │ │ ├── Break_ │ │ └── RemoveZeroBreakContinueRector.php │ │ └── FuncCall │ │ └── RemoveReferenceFromCallRector.php ├── Php55 │ ├── Rector │ │ ├── ClassConstFetch │ │ │ └── StaticToSelfOnFinalClassRector.php │ │ ├── Class_ │ │ │ └── ClassConstantToSelfClassRector.php │ │ ├── FuncCall │ │ │ ├── GetCalledClassToSelfClassRector.php │ │ │ ├── GetCalledClassToStaticClassRector.php │ │ │ └── PregReplaceEModifierRector.php │ │ └── String_ │ │ │ └── StringClassNameToClassConstantRector.php │ └── RegexMatcher.php ├── Php56 │ └── Rector │ │ └── FuncCall │ │ └── PowToExpRector.php ├── Php70 │ ├── Enum │ │ └── BattleshipCompareOrder.php │ ├── EregToPcreTransformer.php │ ├── Exception │ │ └── InvalidEregException.php │ ├── NodeAnalyzer │ │ ├── BattleshipTernaryAnalyzer.php │ │ ├── MethodCallNameAnalyzer.php │ │ └── Php4ConstructorClassMethodAnalyzer.php │ ├── Rector │ │ ├── Assign │ │ │ ├── ListSplitStringRector.php │ │ │ └── ListSwapArrayOrderRector.php │ │ ├── Break_ │ │ │ └── BreakNotInLoopOrSwitchToReturnRector.php │ │ ├── ClassMethod │ │ │ └── Php4ConstructorRector.php │ │ ├── FuncCall │ │ │ ├── CallUserMethodRector.php │ │ │ ├── EregToPregMatchRector.php │ │ │ ├── MultiDirnameRector.php │ │ │ ├── RandomFunctionRector.php │ │ │ └── RenameMktimeWithoutArgsToTimeRector.php │ │ ├── FunctionLike │ │ │ └── ExceptionHandlerTypehintRector.php │ │ ├── If_ │ │ │ └── IfToSpaceshipRector.php │ │ ├── List_ │ │ │ └── EmptyListRector.php │ │ ├── MethodCall │ │ │ └── ThisCallOnStaticMethodToStaticCallRector.php │ │ ├── StaticCall │ │ │ └── StaticCallOnNonStaticToInstanceCallRector.php │ │ ├── StmtsAwareInterface │ │ │ └── IfIssetToCoalescingRector.php │ │ ├── Switch_ │ │ │ └── ReduceMultipleDefaultSwitchRector.php │ │ ├── Ternary │ │ │ ├── TernaryToNullCoalescingRector.php │ │ │ └── TernaryToSpaceshipRector.php │ │ └── Variable │ │ │ └── WrapVariableVariableNameInCurlyBracesRector.php │ └── ValueObject │ │ └── ComparedExprs.php ├── Php71 │ ├── IsArrayAndDualCheckToAble.php │ ├── Rector │ │ ├── Assign │ │ │ └── AssignArrayToStringRector.php │ │ ├── BinaryOp │ │ │ └── BinaryOpBetweenNumberAndStringRector.php │ │ ├── BooleanOr │ │ │ └── IsIterableRector.php │ │ ├── FuncCall │ │ │ └── RemoveExtraParametersRector.php │ │ ├── List_ │ │ │ └── ListToArrayDestructRector.php │ │ └── TryCatch │ │ │ └── MultiExceptionCatchRector.php │ └── ValueObject │ │ └── TwoNodeMatch.php ├── Php72 │ ├── NodeFactory │ │ └── AnonymousFunctionFactory.php │ ├── Rector │ │ ├── Assign │ │ │ ├── ListEachRector.php │ │ │ └── ReplaceEachAssignmentWithKeyCurrentRector.php │ │ ├── FuncCall │ │ │ ├── CreateFunctionToAnonymousFunctionRector.php │ │ │ ├── GetClassOnNullRector.php │ │ │ ├── ParseStrWithResultArgumentRector.php │ │ │ ├── StringifyDefineRector.php │ │ │ └── StringsAssertNakedRector.php │ │ ├── Unset_ │ │ │ └── UnsetCastRector.php │ │ └── While_ │ │ │ └── WhileEachToForeachRector.php │ └── ValueObject │ │ └── ListAndEach.php ├── Php73 │ └── Rector │ │ ├── BooleanOr │ │ └── IsCountableRector.php │ │ ├── ConstFetch │ │ └── SensitiveConstantNameRector.php │ │ ├── FuncCall │ │ ├── ArrayKeyFirstLastRector.php │ │ ├── JsonThrowOnErrorRector.php │ │ ├── RegexDashEscapeRector.php │ │ ├── SensitiveDefineRector.php │ │ ├── SetCookieRector.php │ │ └── StringifyStrNeedlesRector.php │ │ └── String_ │ │ └── SensitiveHereNowDocRector.php ├── Php74 │ ├── Guard │ │ ├── MakePropertyTypedGuard.php │ │ └── PropertyTypeChangeGuard.php │ ├── NodeAnalyzer │ │ └── ClosureArrowFunctionAnalyzer.php │ ├── Rector │ │ ├── ArrayDimFetch │ │ │ └── CurlyToSquareBracketArrayStringRector.php │ │ ├── Assign │ │ │ └── NullCoalescingOperatorRector.php │ │ ├── Closure │ │ │ └── ClosureToArrowFunctionRector.php │ │ ├── FuncCall │ │ │ ├── ArrayKeyExistsOnPropertyRector.php │ │ │ ├── FilterVarToAddSlashesRector.php │ │ │ ├── HebrevcToNl2brHebrevRector.php │ │ │ ├── MbStrrposEncodingArgumentPositionRector.php │ │ │ ├── MoneyFormatToNumberFormatRector.php │ │ │ └── RestoreIncludePathToIniRestoreRector.php │ │ ├── LNumber │ │ │ └── AddLiteralSeparatorToNumberRector.php │ │ ├── Property │ │ │ └── RestoreDefaultNullToNullableTypePropertyRector.php │ │ ├── StaticCall │ │ │ └── ExportToReflectionFunctionRector.php │ │ └── Ternary │ │ │ └── ParenthesizeNestedTernaryRector.php │ └── Tokenizer │ │ └── ParenthesizedNestedTernaryAnalyzer.php ├── Php80 │ ├── AttributeDecorator │ │ ├── DoctrineConverterAttributeDecorator.php │ │ └── SensioParamConverterAttributeDecorator.php │ ├── Contract │ │ ├── ConverterAttributeDecoratorInterface.php │ │ ├── StrStartWithMatchAndRefactorInterface.php │ │ └── ValueObject │ │ │ └── AnnotationToAttributeInterface.php │ ├── DocBlock │ │ └── PropertyPromotionDocBlockMerger.php │ ├── Enum │ │ └── MatchKind.php │ ├── Guard │ │ └── MakePropertyPromotionGuard.php │ ├── MatchAndRefactor │ │ └── StrStartsWithMatchAndRefactor │ │ │ ├── StrncmpMatchAndRefactor.php │ │ │ ├── StrposMatchAndRefactor.php │ │ │ └── SubstrMatchAndRefactor.php │ ├── NodeAnalyzer │ │ ├── MatchSwitchAnalyzer.php │ │ ├── PhpAttributeAnalyzer.php │ │ ├── PromotedPropertyCandidateResolver.php │ │ ├── PromotedPropertyResolver.php │ │ └── SwitchAnalyzer.php │ ├── NodeFactory │ │ ├── AttrGroupsFactory.php │ │ ├── MatchArmsFactory.php │ │ ├── MatchFactory.php │ │ ├── NestedAttrGroupsFactory.php │ │ └── StrStartsWithFuncCallFactory.php │ ├── NodeManipulator │ │ └── AttributeGroupNamedArgumentManipulator.php │ ├── NodeResolver │ │ ├── StrFalseComparisonResolver.php │ │ └── SwitchExprsResolver.php │ ├── Rector │ │ ├── Catch_ │ │ │ └── RemoveUnusedVariableInCatchRector.php │ │ ├── ClassConstFetch │ │ │ └── ClassOnThisVariableObjectRector.php │ │ ├── ClassMethod │ │ │ ├── AddParamBasedOnParentClassMethodRector.php │ │ │ ├── FinalPrivateToPrivateVisibilityRector.php │ │ │ └── SetStateToStaticRector.php │ │ ├── Class_ │ │ │ ├── AnnotationToAttributeRector.php │ │ │ ├── AttributeValueResolver.php │ │ │ ├── ClassPropertyAssignToConstructorPromotionRector.php │ │ │ └── StringableForToStringRector.php │ │ ├── FuncCall │ │ │ └── ClassOnObjectRector.php │ │ ├── Identical │ │ │ ├── StrEndsWithRector.php │ │ │ └── StrStartsWithRector.php │ │ ├── NotIdentical │ │ │ ├── MbStrContainsRector.php │ │ │ └── StrContainsRector.php │ │ ├── Property │ │ │ └── NestedAnnotationToAttributeRector.php │ │ ├── Switch_ │ │ │ └── ChangeSwitchToMatchRector.php │ │ └── Ternary │ │ │ └── GetDebugTypeRector.php │ ├── ValueObject │ │ ├── AnnotationPropertyToAttributeClass.php │ │ ├── AnnotationToAttribute.php │ │ ├── AttributeValueAndDocComment.php │ │ ├── CondAndExpr.php │ │ ├── DoctrineTagAndAnnotationToAttribute.php │ │ ├── MatchResult.php │ │ ├── NestedAnnotationToAttribute.php │ │ ├── NestedDoctrineTagAndAnnotationToAttribute.php │ │ ├── PropertyPromotionCandidate.php │ │ └── StrStartsWith.php │ └── ValueObjectFactory │ │ └── StrStartsWithFactory.php ├── Php81 │ ├── Enum │ │ ├── AttributeName.php │ │ └── NameNullToStrictNullFunctionMap.php │ ├── NodeAnalyzer │ │ ├── CoalescePropertyAssignMatcher.php │ │ └── ComplexNewAnalyzer.php │ ├── NodeFactory │ │ └── EnumFactory.php │ ├── NodeManipulator │ │ └── NullToStrictStringIntConverter.php │ └── Rector │ │ ├── Array_ │ │ └── ArrayToFirstClassCallableRector.php │ │ ├── ClassMethod │ │ └── NewInInitializerRector.php │ │ ├── Class_ │ │ ├── MyCLabsClassToEnumRector.php │ │ └── SpatieEnumClassToEnumRector.php │ │ ├── FuncCall │ │ ├── NullToStrictIntPregSlitFuncCallLimitArgRector.php │ │ └── NullToStrictStringFuncCallArgRector.php │ │ ├── MethodCall │ │ ├── MyCLabsMethodCallToEnumConstRector.php │ │ ├── RemoveReflectionSetAccessibleCallsRector.php │ │ └── SpatieEnumMethodCallToEnumConstRector.php │ │ ├── New_ │ │ └── MyCLabsConstructorCallToEnumFromRector.php │ │ └── Property │ │ └── ReadOnlyPropertyRector.php ├── Php82 │ ├── NodeManipulator │ │ └── ReadonlyClassManipulator.php │ └── Rector │ │ ├── Class_ │ │ └── ReadOnlyClassRector.php │ │ ├── Encapsed │ │ └── VariableInStringInterpolationFixerRector.php │ │ ├── FuncCall │ │ └── Utf8DecodeEncodeToMbConvertEncodingRector.php │ │ ├── New_ │ │ └── FilesystemIteratorSkipDotsRector.php │ │ └── Param │ │ └── AddSensitiveParameterAttributeRector.php ├── Php83 │ └── Rector │ │ ├── BooleanAnd │ │ └── JsonValidateRector.php │ │ ├── ClassConst │ │ └── AddTypeToConstRector.php │ │ ├── ClassMethod │ │ └── AddOverrideAttributeToOverriddenMethodsRector.php │ │ ├── Class_ │ │ └── ReadOnlyAnonymousClassRector.php │ │ └── FuncCall │ │ ├── CombineHostPortLdapUriRector.php │ │ ├── DynamicClassConstFetchRector.php │ │ └── RemoveGetClassGetParentClassNoArgsRector.php ├── Php84 │ ├── NodeAnalyzer │ │ └── ForeachKeyUsedInConditionalAnalyzer.php │ ├── NodeFactory │ │ └── PropertyHookFactory.php │ ├── NodeFinder │ │ └── SetterAndGetterFinder.php │ └── Rector │ │ ├── Class_ │ │ ├── DeprecatedAnnotationToDeprecatedAttributeRector.php │ │ └── PropertyHookRector.php │ │ ├── Foreach_ │ │ ├── ForeachToArrayAllRector.php │ │ ├── ForeachToArrayAnyRector.php │ │ ├── ForeachToArrayFindKeyRector.php │ │ └── ForeachToArrayFindRector.php │ │ ├── FuncCall │ │ ├── AddEscapeArgumentRector.php │ │ └── RoundingModeEnumRector.php │ │ ├── MethodCall │ │ └── NewMethodCallWithoutParenthesesRector.php │ │ └── Param │ │ └── ExplicitNullableParamTypeRector.php ├── Php85 │ └── Rector │ │ ├── ArrayDimFetch │ │ └── ArrayFirstLastRector.php │ │ ├── ClassMethod │ │ └── NullDebugInfoReturnRector.php │ │ ├── Class_ │ │ ├── SleepToSerializeRector.php │ │ └── WakeupToUnserializeRector.php │ │ ├── Const_ │ │ └── DeprecatedAnnotationToDeprecatedAttributeRector.php │ │ ├── Expression │ │ └── NestedFuncCallsToPipeOperatorRector.php │ │ ├── FuncCall │ │ ├── ArrayKeyExistsNullToEmptyStringRector.php │ │ ├── ChrArgModuloRector.php │ │ ├── OrdSingleByteRector.php │ │ └── RemoveFinfoBufferContextArgRector.php │ │ ├── ShellExec │ │ └── ShellExecFunctionCallOverBackticksRector.php │ │ ├── StmtsAwareInterface │ │ └── SequentialAssignmentsToPipeOperatorRector.php │ │ └── Switch_ │ │ └── ColonAfterSwitchCaseRector.php ├── Privatization │ ├── Guard │ │ ├── LaravelModelGuard.php │ │ ├── OverrideByParentClassGuard.php │ │ ├── ParentClassMagicCallGuard.php │ │ └── ParentPropertyLookupGuard.php │ ├── NodeManipulator │ │ └── VisibilityManipulator.php │ ├── Rector │ │ ├── ClassMethod │ │ │ └── PrivatizeFinalClassMethodRector.php │ │ ├── Class_ │ │ │ └── FinalizeTestCaseClassRector.php │ │ ├── MethodCall │ │ │ └── PrivatizeLocalGetterToPropertyRector.php │ │ └── Property │ │ │ └── PrivatizeFinalClassPropertyRector.php │ ├── TypeManipulator │ │ ├── ArrayTypeLeastCommonDenominatorResolver.php │ │ └── TypeNormalizer.php │ └── VisibilityGuard │ │ └── ClassMethodVisibilityGuard.php ├── Removing │ ├── NodeManipulator │ │ └── ComplexNodeRemover.php │ ├── Rector │ │ ├── ClassMethod │ │ │ └── ArgumentRemoverRector.php │ │ ├── Class_ │ │ │ ├── RemoveInterfacesRector.php │ │ │ └── RemoveTraitUseRector.php │ │ └── FuncCall │ │ │ ├── RemoveFuncCallArgRector.php │ │ │ └── RemoveFuncCallRector.php │ └── ValueObject │ │ ├── ArgumentRemover.php │ │ └── RemoveFuncCallArg.php ├── Renaming │ ├── Collector │ │ └── RenamedNameCollector.php │ ├── Contract │ │ ├── MethodCallRenameInterface.php │ │ ├── RenameAnnotationInterface.php │ │ └── RenameClassConstFetchInterface.php │ ├── NodeManipulator │ │ ├── ClassRenamer.php │ │ └── SwitchManipulator.php │ ├── Rector │ │ ├── Cast │ │ │ └── RenameCastRector.php │ │ ├── ClassConstFetch │ │ │ └── RenameClassConstFetchRector.php │ │ ├── ClassMethod │ │ │ └── RenameAnnotationRector.php │ │ ├── Class_ │ │ │ └── RenameAttributeRector.php │ │ ├── ConstFetch │ │ │ └── RenameConstantRector.php │ │ ├── FuncCall │ │ │ └── RenameFunctionRector.php │ │ ├── MethodCall │ │ │ └── RenameMethodRector.php │ │ ├── Name │ │ │ └── RenameClassRector.php │ │ ├── PropertyFetch │ │ │ └── RenamePropertyRector.php │ │ ├── StaticCall │ │ │ └── RenameStaticMethodRector.php │ │ └── String_ │ │ │ └── RenameStringRector.php │ └── ValueObject │ │ ├── MethodCallRename.php │ │ ├── MethodCallRenameWithArrayKey.php │ │ ├── RenameAnnotation.php │ │ ├── RenameAnnotationByType.php │ │ ├── RenameAttribute.php │ │ ├── RenameCast.php │ │ ├── RenameClassAndConstFetch.php │ │ ├── RenameClassConstFetch.php │ │ ├── RenameProperty.php │ │ └── RenameStaticMethod.php ├── Strict │ ├── NodeAnalyzer │ │ └── UninitializedPropertyAnalyzer.php │ ├── NodeFactory │ │ └── ExactCompareFactory.php │ └── Rector │ │ ├── AbstractFalsyScalarRuleFixerRector.php │ │ └── Empty_ │ │ └── DisallowedEmptyRuleFixerRector.php ├── Transform │ ├── Enum │ │ └── MagicPropertyHandler.php │ ├── NodeAnalyzer │ │ └── FuncCallStaticCallToMethodCallAnalyzer.php │ ├── NodeFactory │ │ └── PropertyFetchFactory.php │ ├── NodeTypeAnalyzer │ │ └── TypeProvidingExprFromClassResolver.php │ ├── Rector │ │ ├── ArrayDimFetch │ │ │ └── ArrayDimFetchToMethodCallRector.php │ │ ├── Attribute │ │ │ └── AttributeKeyToClassConstFetchRector.php │ │ ├── ClassMethod │ │ │ ├── ReturnTypeWillChangeRector.php │ │ │ └── WrapReturnRector.php │ │ ├── Class_ │ │ │ ├── AddInterfaceByTraitRector.php │ │ │ └── MergeInterfacesRector.php │ │ ├── ConstFetch │ │ │ └── ConstFetchToClassConstFetchRector.php │ │ ├── FuncCall │ │ │ ├── FuncCallToConstFetchRector.php │ │ │ ├── FuncCallToMethodCallRector.php │ │ │ ├── FuncCallToNewRector.php │ │ │ └── FuncCallToStaticCallRector.php │ │ ├── MethodCall │ │ │ ├── MethodCallToFuncCallRector.php │ │ │ └── MethodCallToStaticCallRector.php │ │ ├── New_ │ │ │ └── NewToStaticCallRector.php │ │ ├── Scalar │ │ │ └── ScalarValueToConstFetchRector.php │ │ ├── StaticCall │ │ │ ├── StaticCallToFuncCallRector.php │ │ │ ├── StaticCallToMethodCallRector.php │ │ │ └── StaticCallToNewRector.php │ │ └── String_ │ │ │ └── StringToClassConstantRector.php │ └── ValueObject │ │ ├── ArrayDimFetchToMethodCall.php │ │ ├── AttributeKeyToClassConstFetch.php │ │ ├── ClassMethodReference.php │ │ ├── ConstFetchToClassConstFetch.php │ │ ├── FuncCallToMethodCall.php │ │ ├── FuncCallToStaticCall.php │ │ ├── MethodCallToFuncCall.php │ │ ├── MethodCallToStaticCall.php │ │ ├── NewToStaticCall.php │ │ ├── ScalarValueToConstFetch.php │ │ ├── StaticCallToFuncCall.php │ │ ├── StaticCallToMethodCall.php │ │ ├── StaticCallToNew.php │ │ ├── StringToClassConstant.php │ │ └── WrapReturn.php ├── TypeDeclaration │ ├── AlreadyAssignDetector │ │ ├── ConstructorAssignDetector.php │ │ ├── NullTypeAssignDetector.php │ │ └── PropertyDefaultAssignDetector.php │ ├── Enum │ │ └── NativeFuncCallPositions.php │ ├── FunctionLikeReturnTypeResolver.php │ ├── Guard │ │ ├── ParamTypeAddGuard.php │ │ └── PropertyTypeOverrideGuard.php │ ├── Matcher │ │ └── PropertyAssignMatcher.php │ ├── NodeAnalyzer │ │ ├── AutowiredClassMethodOrPropertyAnalyzer.php │ │ ├── CallTypesResolver.php │ │ ├── CallerParamMatcher.php │ │ ├── ClassMethodAndPropertyAnalyzer.php │ │ ├── ClassMethodParamTypeCompleter.php │ │ ├── DeclareStrictTypeFinder.php │ │ ├── JMSTypeAnalyzer.php │ │ ├── NeverFuncCallAnalyzer.php │ │ ├── ParamAnalyzer.php │ │ ├── ReturnAnalyzer.php │ │ ├── ReturnFilter │ │ │ └── ExclusiveNativeCallLikeReturnMatcher.php │ │ ├── ReturnTypeAnalyzer │ │ │ ├── StrictNativeFunctionReturnTypeAnalyzer.php │ │ │ └── StrictReturnNewAnalyzer.php │ │ ├── TypeNodeUnwrapper.php │ │ └── VariableInSprintfMaskMatcher.php │ ├── NodeFactory │ │ └── JMSTypePropertyTypeFactory.php │ ├── NodeManipulator │ │ ├── AddNeverReturnType.php │ │ ├── AddReturnTypeFromCast.php │ │ ├── AddReturnTypeFromParam.php │ │ ├── AddReturnTypeFromStrictNativeCall.php │ │ └── AddUnionReturnType.php │ ├── NodeTypeAnalyzer │ │ ├── DetailedTypeAnalyzer.php │ │ └── PropertyTypeDecorator.php │ ├── PHPStan │ │ └── ObjectTypeSpecifier.php │ ├── PhpDocParser │ │ └── ParamPhpDocNodeFactory.php │ ├── Rector │ │ ├── ArrowFunction │ │ │ └── AddArrowFunctionReturnTypeRector.php │ │ ├── BooleanAnd │ │ │ └── BinaryOpNullableToInstanceofRector.php │ │ ├── ClassMethod │ │ │ ├── AddMethodCallBasedStrictParamTypeRector.php │ │ │ ├── AddParamArrayDocblockBasedOnCallableNativeFuncCallRector.php │ │ │ ├── AddParamFromDimFetchKeyUseRector.php │ │ │ ├── AddParamStringTypeFromSprintfUseRector.php │ │ │ ├── AddParamTypeBasedOnPHPUnitDataProviderRector.php │ │ │ ├── AddParamTypeDeclarationRector.php │ │ │ ├── AddParamTypeFromPropertyTypeRector.php │ │ │ ├── AddReturnArrayDocblockBasedOnArrayMapRector.php │ │ │ ├── AddReturnDocblockForScalarArrayFromAssignsRector.php │ │ │ ├── AddReturnTypeDeclarationBasedOnParentClassMethodRector.php │ │ │ ├── AddReturnTypeDeclarationRector.php │ │ │ ├── AddReturnTypeFromTryCatchTypeRector.php │ │ │ ├── AddVoidReturnTypeWhereNoReturnRector.php │ │ │ ├── BoolReturnTypeFromBooleanConstReturnsRector.php │ │ │ ├── BoolReturnTypeFromBooleanStrictReturnsRector.php │ │ │ ├── KnownMagicClassMethodTypeRector.php │ │ │ ├── NarrowObjectReturnTypeRector.php │ │ │ ├── NumericReturnTypeFromStrictReturnsRector.php │ │ │ ├── NumericReturnTypeFromStrictScalarReturnsRector.php │ │ │ ├── ParamTypeByMethodCallTypeRector.php │ │ │ ├── ParamTypeByParentCallTypeRector.php │ │ │ ├── ReturnNeverTypeRector.php │ │ │ ├── ReturnNullableTypeRector.php │ │ │ ├── ReturnTypeFromMockObjectRector.php │ │ │ ├── ReturnTypeFromReturnCastRector.php │ │ │ ├── ReturnTypeFromReturnDirectArrayRector.php │ │ │ ├── ReturnTypeFromReturnNewRector.php │ │ │ ├── ReturnTypeFromStrictConstantReturnRector.php │ │ │ ├── ReturnTypeFromStrictFluentReturnRector.php │ │ │ ├── ReturnTypeFromStrictNativeCallRector.php │ │ │ ├── ReturnTypeFromStrictNewArrayRector.php │ │ │ ├── ReturnTypeFromStrictParamRector.php │ │ │ ├── ReturnTypeFromStrictTypedCallRector.php │ │ │ ├── ReturnTypeFromStrictTypedPropertyRector.php │ │ │ ├── ReturnTypeFromSymfonySerializerRector.php │ │ │ ├── ReturnUnionTypeRector.php │ │ │ ├── StrictArrayParamDimFetchRector.php │ │ │ ├── StrictStringParamConcatRector.php │ │ │ ├── StringReturnTypeFromStrictScalarReturnsRector.php │ │ │ └── StringReturnTypeFromStrictStringReturnsRector.php │ │ ├── Class_ │ │ │ ├── AddTestsVoidReturnTypeWhereNoReturnRector.php │ │ │ ├── ChildDoctrineRepositoryClassTypeRector.php │ │ │ ├── MergeDateTimePropertyTypeDeclarationRector.php │ │ │ ├── ObjectTypedPropertyFromJMSSerializerAttributeTypeRector.php │ │ │ ├── PropertyTypeFromStrictSetterGetterRector.php │ │ │ ├── ReturnTypeFromStrictTernaryRector.php │ │ │ ├── ScalarTypedPropertyFromJMSSerializerAttributeTypeRector.php │ │ │ ├── TypedPropertyFromCreateMockAssignRector.php │ │ │ ├── TypedPropertyFromDocblockSetUpDefinedRector.php │ │ │ └── TypedStaticPropertyInBehatContextRector.php │ │ ├── Closure │ │ │ ├── AddClosureNeverReturnTypeRector.php │ │ │ ├── AddClosureVoidReturnTypeWhereNoReturnRector.php │ │ │ └── ClosureReturnTypeRector.php │ │ ├── Empty_ │ │ │ └── EmptyOnNullableObjectToInstanceOfRector.php │ │ ├── FuncCall │ │ │ ├── AddArrayFunctionClosureParamTypeRector.php │ │ │ └── AddArrowFunctionParamArrayWhereDimFetchRector.php │ │ ├── FunctionLike │ │ │ ├── AddClosureParamTypeForArrayMapRector.php │ │ │ ├── AddClosureParamTypeForArrayReduceRector.php │ │ │ ├── AddClosureParamTypeFromIterableMethodCallRector.php │ │ │ ├── AddParamTypeSplFixedArrayRector.php │ │ │ └── AddReturnTypeDeclarationFromYieldsRector.php │ │ ├── Function_ │ │ │ └── AddFunctionVoidReturnTypeWhereNoReturnRector.php │ │ ├── Property │ │ │ ├── AddPropertyTypeDeclarationRector.php │ │ │ ├── TypedPropertyFromAssignsRector.php │ │ │ ├── TypedPropertyFromStrictConstructorRector.php │ │ │ └── TypedPropertyFromStrictSetUpRector.php │ │ ├── StmtsAwareInterface │ │ │ ├── DeclareStrictTypesRector.php │ │ │ └── IncreaseDeclareStrictTypesRector.php │ │ └── While_ │ │ │ └── WhileNullableToInstanceofRector.php │ ├── TypeAnalyzer │ │ ├── GenericClassStringTypeNormalizer.php │ │ ├── NullableTypeAnalyzer.php │ │ ├── ParameterTypeFromDataProviderResolver.php │ │ ├── PropertyTypeDefaultValueAnalyzer.php │ │ └── ReturnStrictTypeAnalyzer.php │ ├── TypeInferer │ │ ├── AssignToPropertyTypeInferer.php │ │ ├── PropertyTypeInferer │ │ │ ├── AllAssignNodePropertyTypeInferer.php │ │ │ ├── GetterTypeDeclarationPropertyTypeInferer.php │ │ │ ├── SetterTypeDeclarationPropertyTypeInferer.php │ │ │ └── TrustedClassMethodPropertyTypeInferer.php │ │ ├── ReturnTypeInferer.php │ │ ├── ReturnTypeInferer │ │ │ └── ReturnedNodesReturnTypeInfererTypeInferer.php │ │ ├── SilentVoidResolver.php │ │ └── SplArrayFixedTypeNarrower.php │ └── ValueObject │ │ ├── AddParamTypeDeclaration.php │ │ ├── AddPropertyTypeDeclaration.php │ │ ├── AddReturnTypeDeclaration.php │ │ ├── AssignToVariable.php │ │ └── DataProviderNodes.php ├── TypeDeclarationDocblocks │ ├── Enum │ │ ├── NetteClassName.php │ │ └── TestClassName.php │ ├── NodeAnalyzer │ │ └── ConstructorAssignedTypeResolver.php │ ├── NodeDocblockTypeDecorator.php │ ├── NodeFinder │ │ ├── ArrayDimFetchFinder.php │ │ ├── ArrayMapClosureExprFinder.php │ │ ├── DataProviderMethodsFinder.php │ │ ├── GetterClassMethodPropertyFinder.php │ │ ├── PropertyGetterFinder.php │ │ ├── ReturnNodeFinder.php │ │ └── YieldNodeFinder.php │ ├── PrivateMethodFlagger.php │ ├── Rector │ │ ├── ClassMethod │ │ │ ├── AddParamArrayDocblockBasedOnArrayMapRector.php │ │ │ ├── AddParamArrayDocblockFromAssignsParamToParamReferenceRector.php │ │ │ ├── AddParamArrayDocblockFromDataProviderRector.php │ │ │ ├── AddParamArrayDocblockFromDimFetchAccessRector.php │ │ │ ├── AddReturnDocblockForArrayDimAssignedObjectRector.php │ │ │ ├── AddReturnDocblockForCommonObjectDenominatorRector.php │ │ │ ├── AddReturnDocblockForJsonArrayRector.php │ │ │ ├── DocblockGetterReturnArrayFromPropertyDocblockVarRector.php │ │ │ └── DocblockReturnArrayFromDirectArrayInstanceRector.php │ │ └── Class_ │ │ │ ├── AddReturnArrayDocblockFromDataProviderParamRector.php │ │ │ ├── AddReturnDocblockDataProviderRector.php │ │ │ ├── ClassMethodArrayDocblockParamFromLocalCallsRector.php │ │ │ ├── DocblockVarArrayFromGetterReturnRector.php │ │ │ ├── DocblockVarArrayFromPropertyDefaultsRector.php │ │ │ └── DocblockVarFromParamDocblockInConstructorRector.php │ ├── TagNodeAnalyzer │ │ └── UsefulArrayTagNodeAnalyzer.php │ └── TypeResolver │ │ ├── ConstantArrayTypeGeneralizer.php │ │ └── YieldTypeResolver.php ├── Unambiguous │ ├── NodeAnalyzer │ │ └── FluentMethodCallsCollector.php │ └── Rector │ │ ├── Class_ │ │ └── RemoveReturnThisFromSetterClassMethodRector.php │ │ └── Expression │ │ └── FluentSettersToStandaloneCallMethodRector.php └── Visibility │ ├── Rector │ ├── ClassConst │ │ └── ChangeConstantVisibilityRector.php │ └── ClassMethod │ │ ├── ChangeMethodVisibilityRector.php │ │ └── ExplicitPublicClassMethodRector.php │ └── ValueObject │ ├── ChangeConstantVisibility.php │ └── ChangeMethodVisibility.php ├── scoper.php ├── scripts ├── add-phpstan-self-replace.php ├── avoid-short-node-names-in-fixtures.php ├── check-before-after-same-fixtures.php ├── create-immutable-node-visitor.php ├── list-unused-rules.php ├── no-php-file-in-fixtures.php ├── src │ └── Finder │ │ ├── FixtureFinder.php │ │ ├── RectorClassFinder.php │ │ └── RectorSetFilesFinder.php ├── test-fixture-stats.php └── validate-phpstan-version.php ├── src ├── Application │ ├── ApplicationFileProcessor.php │ ├── ChangedNodeScopeRefresher.php │ ├── FileProcessor.php │ ├── NodeAttributeReIndexer.php │ ├── Provider │ │ └── CurrentFileProvider.php │ └── VersionResolver.php ├── Autoloading │ ├── AdditionalAutoloader.php │ └── BootstrapFilesIncluder.php ├── BetterPhpDocParser │ ├── Annotation │ │ └── AnnotationNaming.php │ ├── Attributes │ │ └── AttributeMirrorer.php │ ├── Comment │ │ └── CommentsMerger.php │ ├── Contract │ │ ├── BasePhpDocNodeVisitorInterface.php │ │ └── PhpDocParser │ │ │ └── PhpDocNodeDecoratorInterface.php │ ├── DataProvider │ │ └── CurrentTokenIteratorProvider.php │ ├── Guard │ │ └── NewPhpDocFromPHPStanTypeGuard.php │ ├── PhpDoc │ │ ├── ArrayItemNode.php │ │ ├── DoctrineAnnotationTagValueNode.php │ │ ├── SpacelessPhpDocTagNode.php │ │ └── StringNode.php │ ├── PhpDocInfo │ │ ├── PhpDocInfo.php │ │ ├── PhpDocInfoFactory.php │ │ └── TokenIteratorFactory.php │ ├── PhpDocManipulator │ │ ├── PhpDocClassRenamer.php │ │ ├── PhpDocTagRemover.php │ │ └── PhpDocTypeChanger.php │ ├── PhpDocNodeFinder │ │ └── PhpDocNodeByTypeFinder.php │ ├── PhpDocNodeMapper.php │ ├── PhpDocNodeVisitor │ │ ├── ArrayTypePhpDocNodeVisitor.php │ │ ├── CallableTypePhpDocNodeVisitor.php │ │ ├── ChangedPhpDocNodeVisitor.php │ │ ├── IntersectionTypeNodePhpDocNodeVisitor.php │ │ ├── TemplatePhpDocNodeVisitor.php │ │ └── UnionTypeNodePhpDocNodeVisitor.php │ ├── PhpDocParser │ │ ├── ArrayItemClassNameDecorator.php │ │ ├── BetterPhpDocParser.php │ │ ├── ClassAnnotationMatcher.php │ │ ├── ConstExprClassNameDecorator.php │ │ ├── DoctrineAnnotationDecorator.php │ │ ├── PhpDocTagGenericUsesDecorator.php │ │ ├── StaticDoctrineAnnotationParser.php │ │ └── StaticDoctrineAnnotationParser │ │ │ ├── ArrayParser.php │ │ │ └── PlainValueParser.php │ ├── Printer │ │ ├── DocBlockInliner.php │ │ ├── EmptyPhpDocDetector.php │ │ ├── PhpDocInfoPrinter.php │ │ └── RemoveNodesStartAndEndResolver.php │ └── ValueObject │ │ ├── DoctrineAnnotation │ │ └── SilentKeyMap.php │ │ ├── NodeTypes.php │ │ ├── Parser │ │ └── BetterTokenIterator.php │ │ ├── PhpDoc │ │ ├── DoctrineAnnotation │ │ │ ├── AbstractValuesAwareNode.php │ │ │ └── CurlyListNode.php │ │ └── SpacingAwareTemplateTagValueNode.php │ │ ├── PhpDocAttributeKey.php │ │ ├── StartAndEnd.php │ │ └── Type │ │ ├── BracketsAwareIntersectionTypeNode.php │ │ ├── BracketsAwareUnionTypeNode.php │ │ ├── FullyQualifiedIdentifierTypeNode.php │ │ ├── ShortenedIdentifierTypeNode.php │ │ ├── SpacingAwareArrayTypeNode.php │ │ └── SpacingAwareCallableTypeNode.php ├── Bootstrap │ ├── ExtensionConfigResolver.php │ └── RectorConfigsResolver.php ├── Bridge │ ├── SetProviderCollector.php │ └── SetRectorsResolver.php ├── Caching │ ├── Cache.php │ ├── CacheFactory.php │ ├── Config │ │ └── FileHashComputer.php │ ├── Contract │ │ └── ValueObject │ │ │ └── Storage │ │ │ └── CacheStorageInterface.php │ ├── Detector │ │ └── ChangedFilesDetector.php │ ├── Enum │ │ └── CacheKey.php │ ├── UnchangedFilesFilter.php │ └── ValueObject │ │ ├── CacheFilePaths.php │ │ ├── CacheItem.php │ │ └── Storage │ │ ├── FileCacheStorage.php │ │ └── MemoryCacheStorage.php ├── ChangesReporting │ ├── Contract │ │ └── Output │ │ │ └── OutputFormatterInterface.php │ ├── Output │ │ ├── ConsoleOutputFormatter.php │ │ ├── GitHubOutputFormatter.php │ │ ├── GitlabOutputFormatter.php │ │ ├── JUnitOutputFormatter.php │ │ └── JsonOutputFormatter.php │ ├── ValueObject │ │ └── RectorWithLineChange.php │ └── ValueObjectFactory │ │ ├── ErrorFactory.php │ │ └── FileDiffFactory.php ├── Comments │ ├── CommentRemover.php │ ├── CommentResolver.php │ ├── NodeDocBlock │ │ └── DocBlockUpdater.php │ ├── NodeTraverser │ │ └── CommentRemovingNodeTraverser.php │ └── NodeVisitor │ │ └── CommentRemovingNodeVisitor.php ├── Composer │ ├── InstalledPackageResolver.php │ └── ValueObject │ │ └── InstalledPackage.php ├── Config │ ├── Level │ │ ├── CodeQualityLevel.php │ │ ├── CodingStyleLevel.php │ │ ├── DeadCodeLevel.php │ │ ├── TypeDeclarationDocblocksLevel.php │ │ └── TypeDeclarationLevel.php │ ├── RectorConfig.php │ └── RegisteredService.php ├── Configuration │ ├── ConfigInitializer.php │ ├── ConfigurationFactory.php │ ├── ConfigurationRuleFilter.php │ ├── Deprecation │ │ └── Contract │ │ │ └── DeprecatedInterface.php │ ├── Levels │ │ └── LevelRulesResolver.php │ ├── OnlyRuleResolver.php │ ├── Option.php │ ├── Parameter │ │ ├── FeatureFlags.php │ │ └── SimpleParameterProvider.php │ ├── PhpLevelSetResolver.php │ ├── RectorConfigBuilder.php │ ├── RenamedClassesDataCollector.php │ └── VendorMissAnalyseGuard.php ├── Console │ ├── Command │ │ ├── CustomRuleCommand.php │ │ ├── ListRulesCommand.php │ │ ├── ProcessCommand.php │ │ ├── SetupCICommand.php │ │ └── WorkerCommand.php │ ├── ConsoleApplication.php │ ├── ExitCode.php │ ├── Formatter │ │ └── ColorConsoleDiffFormatter.php │ ├── Notifier.php │ ├── Output │ │ └── OutputFormatterCollector.php │ ├── ProcessConfigureDecorator.php │ └── Style │ │ ├── RectorStyle.php │ │ └── SymfonyStyleFactory.php ├── Contract │ ├── DependencyInjection │ │ ├── RelatedConfigInterface.php │ │ └── ResettableInterface.php │ ├── PhpParser │ │ ├── DecoratingNodeVisitorInterface.php │ │ └── Node │ │ │ └── StmtsAwareInterface.php │ └── Rector │ │ ├── ConfigurableRectorInterface.php │ │ ├── HTMLAverseRectorInterface.php │ │ └── RectorInterface.php ├── CustomRules │ └── SimpleNodeDumper.php ├── DependencyInjection │ ├── Laravel │ │ └── ContainerMemento.php │ ├── LazyContainerFactory.php │ ├── PHPStan │ │ └── PHPStanContainerMemento.php │ └── RectorContainerFactory.php ├── Differ │ └── DefaultDiffer.php ├── Enum │ ├── ClassName.php │ ├── Config │ │ └── Defaults.php │ ├── LaravelClassName.php │ └── ObjectReference.php ├── Exception │ ├── Cache │ │ └── CachingException.php │ ├── Configuration │ │ ├── InvalidConfigurationException.php │ │ ├── RectorRuleNameAmbiguousException.php │ │ └── RectorRuleNotFoundException.php │ ├── NotImplementedYetException.php │ ├── Reflection │ │ └── MissingPrivatePropertyException.php │ ├── ShouldNotHappenException.php │ └── VersionException.php ├── FamilyTree │ ├── NodeAnalyzer │ │ └── ClassChildAnalyzer.php │ └── Reflection │ │ └── FamilyRelationsAnalyzer.php ├── FileSystem │ ├── FileAndDirectoryFilter.php │ ├── FilePathHelper.php │ ├── FilesFinder.php │ ├── FilesystemTweaker.php │ ├── InitFilePathsResolver.php │ └── JsonFileSystem.php ├── Git │ └── RepositoryHelper.php ├── NodeAnalyzer │ ├── ArgsAnalyzer.php │ ├── BinaryOpAnalyzer.php │ ├── CallAnalyzer.php │ ├── ClassAnalyzer.php │ ├── CompactFuncCallAnalyzer.php │ ├── ConstFetchAnalyzer.php │ ├── DoctrineEntityAnalyzer.php │ ├── ExprAnalyzer.php │ ├── MagicClassMethodAnalyzer.php │ ├── ParamAnalyzer.php │ ├── PropertyAnalyzer.php │ ├── PropertyFetchAnalyzer.php │ ├── PropertyPresenceChecker.php │ ├── ScopeAnalyzer.php │ ├── TerminatedNodeAnalyzer.php │ ├── VariableAnalyzer.php │ └── VariadicAnalyzer.php ├── NodeCollector │ ├── BinaryOpConditionsCollector.php │ ├── NodeAnalyzer │ │ └── ArrayCallableMethodMatcher.php │ ├── ScopeResolver │ │ └── ParentClassScopeResolver.php │ ├── StaticAnalyzer.php │ └── ValueObject │ │ ├── ArrayCallable.php │ │ └── ArrayCallableDynamicMethod.php ├── NodeDecorator │ ├── CreatedByRuleDecorator.php │ ├── PropertyTypeDecorator.php │ └── StatementDepthAttributeDecorator.php ├── NodeManipulator │ ├── AssignManipulator.php │ ├── BinaryOpManipulator.php │ ├── ClassConstManipulator.php │ ├── ClassDependencyManipulator.php │ ├── ClassInsertManipulator.php │ ├── ClassManipulator.php │ ├── ClassMethodAssignManipulator.php │ ├── ClassMethodManipulator.php │ ├── ClassMethodPropertyFetchManipulator.php │ ├── FuncCallManipulator.php │ ├── FunctionLikeManipulator.php │ ├── IfManipulator.php │ ├── PropertyFetchAssignManipulator.php │ ├── PropertyManipulator.php │ └── StmtsManipulator.php ├── NodeNameResolver │ ├── Contract │ │ └── NodeNameResolverInterface.php │ ├── NodeNameResolver.php │ ├── NodeNameResolver │ │ ├── ClassConstFetchNameResolver.php │ │ ├── ClassConstNameResolver.php │ │ ├── ClassNameResolver.php │ │ ├── FuncCallNameResolver.php │ │ ├── FunctionNameResolver.php │ │ ├── NameNameResolver.php │ │ ├── ParamNameResolver.php │ │ ├── PropertyNameResolver.php │ │ ├── UseNameResolver.php │ │ └── VariableNameResolver.php │ └── Regex │ │ └── RegexPatternDetector.php ├── NodeNestingScope │ ├── ContextAnalyzer.php │ └── ValueObject │ │ └── ControlStructure.php ├── NodeTypeResolver │ ├── Contract │ │ ├── NodeTypeResolverAwareInterface.php │ │ └── NodeTypeResolverInterface.php │ ├── DependencyInjection │ │ └── PHPStanServicesFactory.php │ ├── Node │ │ └── AttributeKey.php │ ├── NodeScopeAndMetadataDecorator.php │ ├── NodeTypeCorrector.php │ ├── NodeTypeCorrector │ │ ├── AccessoryNonEmptyArrayTypeCorrector.php │ │ ├── AccessoryNonEmptyStringTypeCorrector.php │ │ └── GenericClassStringTypeCorrector.php │ ├── NodeTypeResolver.php │ ├── NodeTypeResolver │ │ ├── CastTypeResolver.php │ │ ├── ClassAndInterfaceTypeResolver.php │ │ ├── ClassConstFetchTypeResolver.php │ │ ├── IdentifierTypeResolver.php │ │ ├── NameTypeResolver.php │ │ ├── NewTypeResolver.php │ │ ├── ParamTypeResolver.php │ │ ├── PropertyFetchTypeResolver.php │ │ ├── PropertyTypeResolver.php │ │ ├── ScalarTypeResolver.php │ │ ├── StaticCallMethodCallTypeResolver.php │ │ └── TraitTypeResolver.php │ ├── PHPStan │ │ ├── ObjectWithoutClassTypeWithParentTypes.php │ │ ├── ParametersAcceptorSelectorVariantsWrapper.php │ │ ├── Scope │ │ │ ├── Contract │ │ │ │ └── NodeVisitor │ │ │ │ │ └── ScopeResolverNodeVisitorInterface.php │ │ │ ├── PHPStanNodeScopeResolver.php │ │ │ ├── RectorNodeScopeResolver.php │ │ │ └── ScopeFactory.php │ │ ├── Type │ │ │ ├── StaticTypeAnalyzer.php │ │ │ └── TypeFactory.php │ │ └── TypeHasher.php │ ├── PhpDoc │ │ └── NodeAnalyzer │ │ │ ├── DocBlockClassRenamer.php │ │ │ ├── DocBlockNameImporter.php │ │ │ └── DocBlockTagReplacer.php │ ├── PhpDocNodeVisitor │ │ ├── ClassRenamePhpDocNodeVisitor.php │ │ └── NameImportingPhpDocNodeVisitor.php │ ├── Reflection │ │ └── BetterReflection │ │ │ ├── RectorBetterReflectionSourceLocatorFactory.php │ │ │ ├── SourceLocator │ │ │ └── IntermediateSourceLocator.php │ │ │ └── SourceLocatorProvider │ │ │ └── DynamicSourceLocatorProvider.php │ ├── TypeAnalyzer │ │ ├── ArrayTypeAnalyzer.php │ │ └── StringTypeAnalyzer.php │ ├── TypeComparator │ │ ├── ArrayTypeComparator.php │ │ ├── ScalarTypeComparator.php │ │ └── TypeComparator.php │ └── ValueObject │ │ └── OldToNewType.php ├── PHPStan │ └── ScopeFetcher.php ├── PHPStanStaticTypeMapper │ ├── Contract │ │ └── TypeMapperInterface.php │ ├── DoctrineTypeAnalyzer.php │ ├── Enum │ │ └── TypeKind.php │ ├── PHPStanStaticTypeMapper.php │ ├── TypeMapper │ │ ├── AccessoryLiteralStringTypeMapper.php │ │ ├── AccessoryNonEmptyStringTypeMapper.php │ │ ├── AccessoryNonFalsyStringTypeMapper.php │ │ ├── AccessoryNumericStringTypeMapper.php │ │ ├── ArrayTypeMapper.php │ │ ├── BooleanTypeMapper.php │ │ ├── CallableTypeMapper.php │ │ ├── ClassStringTypeMapper.php │ │ ├── ClosureTypeMapper.php │ │ ├── ConditionalTypeForParameterMapper.php │ │ ├── ConditionalTypeMapper.php │ │ ├── ConstantArrayTypeMapper.php │ │ ├── FloatTypeMapper.php │ │ ├── GenericClassStringTypeMapper.php │ │ ├── HasMethodTypeMapper.php │ │ ├── HasOffsetTypeMapper.php │ │ ├── HasOffsetValueTypeTypeMapper.php │ │ ├── HasPropertyTypeMapper.php │ │ ├── IntegerTypeMapper.php │ │ ├── IntersectionTypeMapper.php │ │ ├── IterableTypeMapper.php │ │ ├── MixedTypeMapper.php │ │ ├── NeverTypeMapper.php │ │ ├── NonEmptyArrayTypeMapper.php │ │ ├── NullTypeMapper.php │ │ ├── ObjectTypeMapper.php │ │ ├── ObjectWithoutClassTypeMapper.php │ │ ├── OversizedArrayTypeMapper.php │ │ ├── ParentStaticTypeMapper.php │ │ ├── ResourceTypeMapper.php │ │ ├── SelfObjectTypeMapper.php │ │ ├── StaticTypeMapper.php │ │ ├── StrictMixedTypeMapper.php │ │ ├── StringTypeMapper.php │ │ ├── ThisTypeMapper.php │ │ ├── TypeWithClassNameTypeMapper.php │ │ ├── UnionTypeMapper.php │ │ └── VoidTypeMapper.php │ └── Utils │ │ └── TypeUnwrapper.php ├── Parallel │ ├── Application │ │ └── ParallelFileProcessor.php │ ├── Command │ │ └── WorkerCommandLineFactory.php │ └── ValueObject │ │ ├── Bridge.php │ │ └── BridgeItem.php ├── Php │ ├── PhpVersionProvider.php │ ├── PhpVersionResolver │ │ └── ComposerJsonPhpVersionResolver.php │ ├── PolyfillPackagesProvider.php │ └── ReservedKeywordAnalyzer.php ├── PhpAttribute │ ├── AnnotationToAttributeMapper.php │ ├── AnnotationToAttributeMapper │ │ ├── ArrayAnnotationToAttributeMapper.php │ │ ├── ArrayItemNodeAnnotationToAttributeMapper.php │ │ ├── ClassConstFetchAnnotationToAttributeMapper.php │ │ ├── ConstExprNodeAnnotationToAttributeMapper.php │ │ ├── CurlyListNodeAnnotationToAttributeMapper.php │ │ ├── DoctrineAnnotationAnnotationToAttributeMapper.php │ │ ├── StringAnnotationToAttributeMapper.php │ │ └── StringNodeAnnotationToAttributeMapper.php │ ├── AttributeArrayNameInliner.php │ ├── Contract │ │ └── AnnotationToAttributeMapperInterface.php │ ├── DeprecatedAnnotationToDeprecatedAttributeConverter.php │ ├── Enum │ │ └── DocTagNodeState.php │ ├── GenericAnnotationToAttributeConverter.php │ ├── NodeFactory │ │ ├── AnnotationToAttributeIntegerValueCaster.php │ │ ├── AttributeNameFactory.php │ │ ├── NamedArgsFactory.php │ │ ├── PhpAttributeGroupFactory.php │ │ └── PhpNestedAttributeGroupFactory.php │ ├── UseAliasNameMatcher.php │ └── ValueObject │ │ └── UseAliasMetadata.php ├── PhpDocParser │ ├── NodeTraverser │ │ └── SimpleCallableNodeTraverser.php │ ├── NodeVisitor │ │ └── CallableNodeVisitor.php │ ├── PhpDocParser │ │ ├── Contract │ │ │ └── PhpDocNodeVisitorInterface.php │ │ ├── Exception │ │ │ └── InvalidTraverseException.php │ │ ├── PhpDocNodeTraverser.php │ │ ├── PhpDocNodeVisitor │ │ │ ├── AbstractPhpDocNodeVisitor.php │ │ │ ├── CallablePhpDocNodeVisitor.php │ │ │ ├── CloningPhpDocNodeVisitor.php │ │ │ └── ParentConnectingPhpDocNodeVisitor.php │ │ └── ValueObject │ │ │ └── PhpDocAttributeKey.php │ └── ValueObject │ │ └── AttributeKey.php ├── PhpParser │ ├── AstResolver.php │ ├── Comparing │ │ └── NodeComparator.php │ ├── Enum │ │ └── NodeGroup.php │ ├── Node │ │ ├── AssignAndBinaryMap.php │ │ ├── BetterNodeFinder.php │ │ ├── CustomNode │ │ │ └── FileWithoutNamespace.php │ │ ├── NodeFactory.php │ │ └── Value │ │ │ └── ValueResolver.php │ ├── NodeFinder │ │ ├── LocalMethodCallFinder.php │ │ └── PropertyFetchFinder.php │ ├── NodeTransformer.php │ ├── NodeTraverser │ │ ├── AbstractImmutableNodeTraverser.php │ │ ├── FileWithoutNamespaceNodeTraverser.php │ │ ├── RectorNodeTraverser.php │ │ └── SimpleNodeTraverser.php │ ├── NodeVisitor │ │ ├── ArgNodeVisitor.php │ │ ├── AssignedToNodeVisitor.php │ │ ├── ByRefReturnNodeVisitor.php │ │ ├── ByRefVariableNodeVisitor.php │ │ ├── ClassConstFetchNodeVisitor.php │ │ ├── ClosureWithVariadicParametersNodeVisitor.php │ │ ├── ContextNodeVisitor.php │ │ ├── GlobalVariableNodeVisitor.php │ │ ├── NameNodeVisitor.php │ │ ├── PhpVersionConditionNodeVisitor.php │ │ ├── PropertyOrClassConstDefaultNodeVisitor.php │ │ ├── StaticVariableNodeVisitor.php │ │ └── SymfonyClosureNodeVisitor.php │ ├── Parser │ │ ├── InlineCodeParser.php │ │ ├── ParserErrors.php │ │ ├── RectorParser.php │ │ └── SimplePhpParser.php │ ├── Printer │ │ └── BetterStandardPrinter.php │ └── ValueObject │ │ └── StmtsAndTokens.php ├── PostRector │ ├── Application │ │ └── PostFileProcessor.php │ ├── Collector │ │ └── UseNodesToAddCollector.php │ ├── Contract │ │ └── Rector │ │ │ └── PostRectorInterface.php │ ├── Guard │ │ └── AddUseStatementGuard.php │ ├── Rector │ │ ├── AbstractPostRector.php │ │ ├── ClassRenamingPostRector.php │ │ ├── DocblockNameImportingPostRector.php │ │ ├── NameImportingPostRector.php │ │ ├── UnusedImportRemovingPostRector.php │ │ └── UseAddingPostRector.php │ └── ValueObject │ │ └── PropertyMetadata.php ├── ProcessAnalyzer │ └── RectifiedAnalyzer.php ├── Rector │ └── AbstractRector.php ├── Reflection │ ├── ClassModifierChecker.php │ ├── ClassReflectionAnalyzer.php │ ├── MethodReflectionResolver.php │ └── ReflectionResolver.php ├── Reporting │ ├── DeprecatedRulesReporter.php │ └── MissConfigurationReporter.php ├── Set │ ├── Contract │ │ ├── SetInterface.php │ │ └── SetProviderInterface.php │ ├── Enum │ │ └── SetGroup.php │ ├── SetManager.php │ ├── SetProvider │ │ ├── CoreSetProvider.php │ │ └── PHPSetProvider.php │ └── ValueObject │ │ ├── ComposerTriggeredSet.php │ │ ├── LevelSetList.php │ │ ├── Set.php │ │ └── SetList.php ├── Skipper │ ├── FileSystem │ │ ├── FnMatchPathNormalizer.php │ │ └── PathNormalizer.php │ ├── Fnmatcher.php │ ├── Matcher │ │ └── FileInfoMatcher.php │ ├── RealpathMatcher.php │ ├── SkipCriteriaResolver │ │ ├── SkippedClassResolver.php │ │ └── SkippedPathsResolver.php │ ├── SkipVoter │ │ └── ClassSkipVoter.php │ └── Skipper │ │ ├── PathSkipper.php │ │ ├── SkipSkipper.php │ │ └── Skipper.php ├── StaticReflection │ └── DynamicSourceLocatorDecorator.php ├── StaticTypeMapper │ ├── Contract │ │ ├── PhpDocParser │ │ │ └── PhpDocTypeMapperInterface.php │ │ └── PhpParser │ │ │ └── PhpParserNodeMapperInterface.php │ ├── Mapper │ │ ├── PhpParserNodeMapper.php │ │ └── ScalarStringToTypeMapper.php │ ├── Naming │ │ └── NameScopeFactory.php │ ├── PhpDoc │ │ └── PhpDocTypeMapper.php │ ├── PhpDocParser │ │ ├── IdentifierPhpDocTypeMapper.php │ │ ├── IntersectionPhpDocTypeMapper.php │ │ ├── NullablePhpDocTypeMapper.php │ │ └── UnionPhpDocTypeMapper.php │ ├── PhpParser │ │ ├── ExprNodeMapper.php │ │ ├── FullyQualifiedNodeMapper.php │ │ ├── IdentifierNodeMapper.php │ │ ├── IntersectionTypeNodeMapper.php │ │ ├── NameNodeMapper.php │ │ ├── NullableTypeNodeMapper.php │ │ ├── StringNodeMapper.php │ │ └── UnionTypeNodeMapper.php │ ├── Resolver │ │ └── ClassNameFromObjectTypeResolver.php │ ├── StaticTypeMapper.php │ └── ValueObject │ │ └── Type │ │ ├── AliasedObjectType.php │ │ ├── FullyQualifiedGenericObjectType.php │ │ ├── FullyQualifiedObjectType.php │ │ ├── NonExistingObjectType.php │ │ ├── ParentObjectWithoutClassType.php │ │ ├── ParentStaticType.php │ │ ├── SelfObjectType.php │ │ ├── SelfStaticType.php │ │ ├── ShortenedGenericObjectType.php │ │ ├── ShortenedObjectType.php │ │ └── SimpleStaticType.php ├── Testing │ ├── Contract │ │ └── RectorTestInterface.php │ ├── Fixture │ │ ├── FixtureFileFinder.php │ │ ├── FixtureFileUpdater.php │ │ ├── FixtureSplitter.php │ │ └── FixtureTempFileDumper.php │ ├── PHPUnit │ │ ├── AbstractLazyTestCase.php │ │ ├── AbstractRectorTestCase.php │ │ ├── StaticPHPUnitEnvironment.php │ │ └── ValueObject │ │ │ └── RectorTestResult.php │ └── TestingParser │ │ └── TestingParser.php ├── Util │ ├── ArrayChecker.php │ ├── ArrayParametersMerger.php │ ├── FileHasher.php │ ├── MemoryLimiter.php │ ├── NewLineSplitter.php │ ├── NodePrinter.php │ ├── PhpVersionFactory.php │ ├── RectorClassesSorter.php │ ├── Reflection │ │ └── PrivatesAccessor.php │ └── StringUtils.php ├── Validation │ ├── RectorAssert.php │ └── RectorConfigValidator.php ├── ValueObject │ ├── Application │ │ └── File.php │ ├── Bootstrap │ │ └── BootstrapConfigs.php │ ├── Configuration.php │ ├── Configuration │ │ └── LevelOverflow.php │ ├── Error │ │ └── SystemError.php │ ├── FileProcessResult.php │ ├── FuncCallAndExpr.php │ ├── MethodName.php │ ├── PhpVersion.php │ ├── PhpVersionFeature.php │ ├── PolyfillPackage.php │ ├── ProcessResult.php │ ├── Reporting │ │ └── FileDiff.php │ ├── SprintfStringAndArgs.php │ └── Visibility.php ├── VendorLocker │ ├── Exception │ │ └── UnresolvableClassException.php │ ├── NodeVendorLocker │ │ ├── ClassMethodParamVendorLockResolver.php │ │ ├── ClassMethodReturnTypeOverrideGuard.php │ │ └── ClassMethodReturnVendorLockResolver.php │ └── ParentClassMethodTypeOverrideGuard.php ├── VersionBonding │ ├── Contract │ │ ├── MinPhpVersionInterface.php │ │ └── RelatedPolyfillInterface.php │ └── PhpVersionedFilter.php └── functions │ └── node_helper.php ├── stubs ├── Behat │ ├── Behat │ │ └── Context │ │ │ └── Context.php │ └── Step │ │ ├── Then.php │ │ └── When.php ├── Doctrine │ ├── Common │ │ └── Collections │ │ │ ├── ArrayCollection.php │ │ │ └── Collection.php │ ├── Nette │ │ └── Security │ │ │ └── User.php │ ├── ORM │ │ ├── EntityManager.php │ │ ├── EntityManagerInterface.php │ │ ├── EntityRepository.php │ │ ├── Mapping │ │ │ ├── Column.php │ │ │ ├── CustomIdGenerator.php │ │ │ ├── DiscriminatorMap.php │ │ │ ├── Embeddable.php │ │ │ ├── Entity.php │ │ │ ├── GeneratedValue.php │ │ │ ├── Id.php │ │ │ ├── Index.php │ │ │ ├── InverseJoinColumn.php │ │ │ ├── JoinColumn.php │ │ │ ├── JoinColumns.php │ │ │ ├── JoinTable.php │ │ │ ├── ManyToMany.php │ │ │ ├── ManyToOne.php │ │ │ ├── OrderBy.php │ │ │ ├── Table.php │ │ │ └── UniqueConstraint.php │ │ └── QueryBuilder.php │ └── Persistence │ │ ├── ManagerRegistry.php │ │ └── ObjectManager.php ├── Illuminate │ ├── Database │ │ └── Eloquent │ │ │ ├── Attributes │ │ │ └── Scope.php │ │ │ ├── Casts │ │ │ └── Attribute.php │ │ │ └── Model.php │ └── Support │ │ └── Collection.php ├── JMS │ └── Serializer │ │ └── Annotation │ │ └── Type.php ├── MyClabs │ └── Enum │ │ └── Enum.php ├── OpenApi │ └── Attributes │ │ └── Property.php ├── Php │ ├── BackedEnum.php │ └── UnitEnum.php ├── Ramsey │ └── Uuid │ │ ├── Uuid.php │ │ └── UuidInterface.php ├── Sensio │ └── Bundle │ │ └── FrameworkExtraBundle │ │ └── Configuration │ │ ├── IsGranted.php │ │ ├── ParamConverter.php │ │ └── Security.php ├── Spatie │ └── Enum │ │ └── Enum.php ├── Symfony │ ├── Bridge │ │ └── Doctrine │ │ │ └── Validator │ │ │ └── Constraints │ │ │ └── UniqueEntity.php │ ├── Bundle │ │ └── FrameworkBundle │ │ │ └── Controller │ │ │ └── Controller.php │ └── Component │ │ ├── DependencyInjection │ │ └── Argument │ │ │ └── RewindableGenerator.php │ │ ├── Form │ │ ├── AbstractType.php │ │ └── FormBuilderInterface.php │ │ ├── HttpFoundation │ │ ├── JsonResponse.php │ │ └── Response.php │ │ ├── Routing │ │ └── Annotation │ │ │ └── Route.php │ │ ├── Security │ │ └── Http │ │ │ └── Attribute │ │ │ └── IsGranted.php │ │ ├── Serializer │ │ ├── Attribute │ │ │ └── Groups.php │ │ └── Normalizer │ │ │ ├── NormalizerInterface.php │ │ │ └── ObjectNormalizer.php │ │ └── Validator │ │ └── Constraints │ │ ├── Callback.php │ │ ├── Choice.php │ │ ├── File.php │ │ └── Length.php └── Twig │ └── Extension │ ├── AbstractExtension.php │ └── ExtensionInterface.php ├── templates ├── custom-rule │ └── utils │ │ └── rector │ │ └── src │ │ └── Rector │ │ └── __Name__.php.phtml ├── rector-github-action-check.yaml ├── rector-gitlab-check.yaml └── rector.php.dist ├── tests-paths └── path │ ├── NoExtensionFile │ ├── wildcard-nested │ └── some_directory │ │ └── AnotherFile.php │ ├── wildcard-next │ └── some_directory │ │ └── YetAnotherFile.php │ └── with space │ └── SomeFile.php ├── utils-tests └── Rector │ └── RemoveRefactorDuplicatedNodeInstanceCheckRector │ ├── Fixture │ ├── cover_bare_get_node_types.php.inc │ └── some_class.php.inc │ ├── RemoveRefactorDuplicatedNodeInstanceCheckRectorTest.php │ └── config │ └── configured_rule.php └── utils ├── Compiler └── Unprefixer.php └── Rector ├── MoveAbstractRectorToChildrenRector.php └── RemoveRefactorDuplicatedNodeInstanceCheckRector.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: tomasvotruba 2 | -------------------------------------------------------------------------------- /.github/dependabot.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/dependabot.yaml -------------------------------------------------------------------------------- /.github/typos.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/typos.toml -------------------------------------------------------------------------------- /.github/workflows/build_scoped_rector.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/build_scoped_rector.yaml -------------------------------------------------------------------------------- /.github/workflows/code_analysis.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/code_analysis.yaml -------------------------------------------------------------------------------- /.github/workflows/code_analysis_no_dev.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/code_analysis_no_dev.yaml -------------------------------------------------------------------------------- /.github/workflows/compat_test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/compat_test.yaml -------------------------------------------------------------------------------- /.github/workflows/e2e.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/e2e.yaml -------------------------------------------------------------------------------- /.github/workflows/e2e_command_with_option.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/e2e_command_with_option.yaml -------------------------------------------------------------------------------- /.github/workflows/e2e_with_cache.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/e2e_with_cache.yaml -------------------------------------------------------------------------------- /.github/workflows/e2e_with_no_diffs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/e2e_with_no_diffs.yaml -------------------------------------------------------------------------------- /.github/workflows/lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/lock.yaml -------------------------------------------------------------------------------- /.github/workflows/packages_tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/packages_tests.yaml -------------------------------------------------------------------------------- /.github/workflows/phpstan_printer_test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/phpstan_printer_test.yaml -------------------------------------------------------------------------------- /.github/workflows/rector.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/rector.yaml -------------------------------------------------------------------------------- /.github/workflows/stale.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/stale.yaml -------------------------------------------------------------------------------- /.github/workflows/tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/tests.yaml -------------------------------------------------------------------------------- /.github/workflows/typos.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/typos.yaml -------------------------------------------------------------------------------- /.github/workflows/weekly_pull_requests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.github/workflows/weekly_pull_requests.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.gitignore -------------------------------------------------------------------------------- /.phpstorm.meta.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/.phpstorm.meta.php -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/README.md -------------------------------------------------------------------------------- /UPGRADING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/UPGRADING.md -------------------------------------------------------------------------------- /bin/rector: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/bin/rector -------------------------------------------------------------------------------- /bin/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/bin/rector.php -------------------------------------------------------------------------------- /composer-dependency-analyser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/composer-dependency-analyser.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/composer.json -------------------------------------------------------------------------------- /config/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/config.php -------------------------------------------------------------------------------- /config/phpstan/better-infer.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/phpstan/better-infer.neon -------------------------------------------------------------------------------- /config/phpstan/parser.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/phpstan/parser.neon -------------------------------------------------------------------------------- /config/phpstan/static-reflection.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/phpstan/static-reflection.neon -------------------------------------------------------------------------------- /config/set/assert.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/assert.php -------------------------------------------------------------------------------- /config/set/behat-annotations-to-attributes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/behat-annotations-to-attributes.php -------------------------------------------------------------------------------- /config/set/code-quality.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/code-quality.php -------------------------------------------------------------------------------- /config/set/coding-style.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/coding-style.php -------------------------------------------------------------------------------- /config/set/datetime-to-carbon.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/datetime-to-carbon.php -------------------------------------------------------------------------------- /config/set/dead-code.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/dead-code.php -------------------------------------------------------------------------------- /config/set/early-return.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/early-return.php -------------------------------------------------------------------------------- /config/set/gmagick-to-imagick.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/gmagick-to-imagick.php -------------------------------------------------------------------------------- /config/set/instanceof.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/instanceof.php -------------------------------------------------------------------------------- /config/set/level/up-to-php53.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php53.php -------------------------------------------------------------------------------- /config/set/level/up-to-php54.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php54.php -------------------------------------------------------------------------------- /config/set/level/up-to-php55.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php55.php -------------------------------------------------------------------------------- /config/set/level/up-to-php56.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php56.php -------------------------------------------------------------------------------- /config/set/level/up-to-php70.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php70.php -------------------------------------------------------------------------------- /config/set/level/up-to-php71.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php71.php -------------------------------------------------------------------------------- /config/set/level/up-to-php72.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php72.php -------------------------------------------------------------------------------- /config/set/level/up-to-php73.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php73.php -------------------------------------------------------------------------------- /config/set/level/up-to-php74.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php74.php -------------------------------------------------------------------------------- /config/set/level/up-to-php80.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php80.php -------------------------------------------------------------------------------- /config/set/level/up-to-php81.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php81.php -------------------------------------------------------------------------------- /config/set/level/up-to-php82.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php82.php -------------------------------------------------------------------------------- /config/set/level/up-to-php83.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php83.php -------------------------------------------------------------------------------- /config/set/level/up-to-php84.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php84.php -------------------------------------------------------------------------------- /config/set/level/up-to-php85.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/level/up-to-php85.php -------------------------------------------------------------------------------- /config/set/naming.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/naming.php -------------------------------------------------------------------------------- /config/set/nette-utils/nette-utils4.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/nette-utils/nette-utils4.php -------------------------------------------------------------------------------- /config/set/php-polyfills.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php-polyfills.php -------------------------------------------------------------------------------- /config/set/php52.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php52.php -------------------------------------------------------------------------------- /config/set/php53.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php53.php -------------------------------------------------------------------------------- /config/set/php54.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php54.php -------------------------------------------------------------------------------- /config/set/php55.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php55.php -------------------------------------------------------------------------------- /config/set/php56.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php56.php -------------------------------------------------------------------------------- /config/set/php70.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php70.php -------------------------------------------------------------------------------- /config/set/php71.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php71.php -------------------------------------------------------------------------------- /config/set/php72.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php72.php -------------------------------------------------------------------------------- /config/set/php73.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php73.php -------------------------------------------------------------------------------- /config/set/php74.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php74.php -------------------------------------------------------------------------------- /config/set/php80.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php80.php -------------------------------------------------------------------------------- /config/set/php81.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php81.php -------------------------------------------------------------------------------- /config/set/php82.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php82.php -------------------------------------------------------------------------------- /config/set/php83.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php83.php -------------------------------------------------------------------------------- /config/set/php84.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php84.php -------------------------------------------------------------------------------- /config/set/php85.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/php85.php -------------------------------------------------------------------------------- /config/set/privatization.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/privatization.php -------------------------------------------------------------------------------- /config/set/rector-preset.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/rector-preset.php -------------------------------------------------------------------------------- /config/set/strict-booleans.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/strict-booleans.php -------------------------------------------------------------------------------- /config/set/type-declaration-docblocks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/type-declaration-docblocks.php -------------------------------------------------------------------------------- /config/set/type-declaration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/config/set/type-declaration.php -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /e2e/applied-auto-import/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | -------------------------------------------------------------------------------- /e2e/applied-auto-import/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-auto-import/composer.json -------------------------------------------------------------------------------- /e2e/applied-auto-import/expected-output.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-auto-import/expected-output.diff -------------------------------------------------------------------------------- /e2e/applied-auto-import/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-auto-import/rector.php -------------------------------------------------------------------------------- /e2e/applied-auto-import/src/RenameDocblock.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-auto-import/src/RenameDocblock.php -------------------------------------------------------------------------------- /e2e/applied-polyfill-php80/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | -------------------------------------------------------------------------------- /e2e/applied-polyfill-php80/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-polyfill-php80/composer.json -------------------------------------------------------------------------------- /e2e/applied-polyfill-php80/expected-output.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-polyfill-php80/expected-output.diff -------------------------------------------------------------------------------- /e2e/applied-polyfill-php80/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-polyfill-php80/rector.php -------------------------------------------------------------------------------- /e2e/applied-polyfill-php80/src/SomeStartWith.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-polyfill-php80/src/SomeStartWith.php -------------------------------------------------------------------------------- /e2e/applied-rule-change-docblock/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | -------------------------------------------------------------------------------- /e2e/applied-rule-change-docblock/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-change-docblock/composer.json -------------------------------------------------------------------------------- /e2e/applied-rule-change-docblock/expected-output.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-change-docblock/expected-output.diff -------------------------------------------------------------------------------- /e2e/applied-rule-change-docblock/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-change-docblock/rector.php -------------------------------------------------------------------------------- /e2e/applied-rule-change-docblock/src/RenameDocblock.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-change-docblock/src/RenameDocblock.php -------------------------------------------------------------------------------- /e2e/applied-rule-change-docblock/src/UselessVarTag.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-change-docblock/src/UselessVarTag.php -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node-no-diffs/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node-no-diffs/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node-no-diffs/composer.json -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node-no-diffs/expected-output.diff: -------------------------------------------------------------------------------- 1 | [OK] 2 files would have been changed (dry-run) by Rector 2 | -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node-no-diffs/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node-no-diffs/rector.php -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node-with-cache/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node-with-cache/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node-with-cache/composer.json -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node-with-cache/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node-with-cache/rector.php -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node/composer.json -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node/expected-output.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node/expected-output.diff -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node/rector.php -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node/src/AlwaysTrue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node/src/AlwaysTrue.php -------------------------------------------------------------------------------- /e2e/applied-rule-removed-node/src/DeadConstructor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-removed-node/src/DeadConstructor.php -------------------------------------------------------------------------------- /e2e/applied-rule-return-array-nodes/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | -------------------------------------------------------------------------------- /e2e/applied-rule-return-array-nodes/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-return-array-nodes/composer.json -------------------------------------------------------------------------------- /e2e/applied-rule-return-array-nodes/expected-output.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-return-array-nodes/expected-output.diff -------------------------------------------------------------------------------- /e2e/applied-rule-return-array-nodes/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-return-array-nodes/rector.php -------------------------------------------------------------------------------- /e2e/applied-rule-return-array-nodes/src/MultiRules.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/applied-rule-return-array-nodes/src/MultiRules.php -------------------------------------------------------------------------------- /e2e/command-with-option/rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rectorphp/rector-src/HEAD/e2e/command-with-option/rector.php -------------------------------------------------------------------------------- /e2e/command-with-option/some_file.php: -------------------------------------------------------------------------------- 1 |