---
title: "Coming from rector"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

## Config translation

`pun migrate` keeps the old config and reports what it skips. Planned rules do not run.

Run `pun migrate --from rector` after `composer install`. It reads `rector.php` through the project's Rector, so it needs system PHP.

| rector.php | pun.toml |
| --- | --- |
| `->withPreparedSets(deadCode: true)` | `[lint] sets = ["dead-code"]` |
| `typeDeclarations: true` | The `types` lint set |
| PHP upgrade sets from PHP 8.2 | The `modernize` set, gated by the target version |
| Explicit rules and set differences | `[lint.rules]` at `"error"` or `"off"` |
| `->withConfiguredRule()` | Rule options with kebab-case keys; lists under `items` |
| Some of the Rector rules of one Pun rule, such as `ForeachToArrayFindRector` without the other `ForeachToArray*Rector` rules | The Pun rule with its option that limits it to those rewrites, such as `functions = ["array-find"]` |
| `->withPaths()`, path skips | `[lint] exclude` and `[[lint.overrides]]` |
| Closures, null values, custom rules, excluded sets | Reported and skipped |

Layout-only Rector rules map to format rules. The migration reports any that `[format]` does not run.

## Rule mapping

<MigrationTable tool="rector" />

## Unsupported rules

### Behat rules: out of scope (Laravel-first); migrate lists them

[`TypedStaticPropertyInBehatContext`](https://getrector.com/rule-detail/typed-static-property-in-behat-context-rector).

### Doctrine rules: out of scope (Laravel-first); migrate lists them

[`ChildDoctrineRepositoryClassType`](https://getrector.com/rule-detail/child-doctrine-repository-class-type-rector), [`AddAnnotationToRepository`](https://getrector.com/find-rule), [`AddArrayResultColumnNames`](https://getrector.com/find-rule), [`AddGetReferenceType`](https://getrector.com/find-rule), [`ArrayDimFetchAssignToAddCollectionCall`](https://getrector.com/find-rule), [`ArrayMapOnCollectionToArray`](https://getrector.com/find-rule), [`ArrayMergeOnCollectionToArray`](https://getrector.com/find-rule), [`ArrayOffsetSetToSetCollectionCall`](https://getrector.com/find-rule), [`AssertNullOnCollectionToAssertEmpty`](https://getrector.com/find-rule), [`AssertSameCountOnCollectionToAssertCount`](https://getrector.com/find-rule), [`CastDoctrineExprToString`](https://getrector.com/find-rule), [`ChangeCompositeExpressionAddMultipleWithWith`](https://getrector.com/find-rule), [`CollectionDocblockGenericType`](https://getrector.com/find-rule), [`CollectionGetterNativeType`](https://getrector.com/find-rule), [`CollectionParamTypeSetterToCollectionProperty`](https://getrector.com/find-rule), [`CollectionSetterParamNativeType`](https://getrector.com/find-rule), [`CompleteParamDocblockFromSetterToCollection`](https://getrector.com/find-rule), [`CompletePropertyDocblockFromToMany`](https://getrector.com/find-rule), [`CompleteReturnDocblockFromToMany`](https://getrector.com/find-rule), [`CorrectDefaultTypesOnEntityProperty`](https://getrector.com/find-rule), [`CriteriaOrderingConstantsDeprecation`](https://getrector.com/find-rule), [`CurrentOnCollectionToArray`](https://getrector.com/find-rule), [`DefaultCollectionKey`](https://getrector.com/find-rule), [`EmptyOnCollectionToIsEmptyCall`](https://getrector.com/find-rule), [`EventSubscriberInterfaceToAttribute`](https://getrector.com/find-rule), [`ExecuteQueryParamsToBindValue`](https://getrector.com/find-rule), [`ExtractArrayArgOnQueryBuilderSelect`](https://getrector.com/find-rule), [`GetRepositoryServiceLocatorToRepositoryServiceInjection`](https://getrector.com/find-rule), [`InArrayOnCollectionToContainsCall`](https://getrector.com/find-rule), [`InitializeCollectionInConstructor`](https://getrector.com/find-rule), [`IterateToToIterable`](https://getrector.com/find-rule), [`MigrateQueryBuilderResetQueryPart`](https://getrector.com/find-rule), [`MoveCurrentDateTimeDefaultInEntityToConstructor`](https://getrector.com/find-rule), [`NarrowArrayCollectionToCollection`](https://getrector.com/find-rule), [`NarrowParamUnionToCollection`](https://getrector.com/find-rule), [`NarrowPropertyUnionToCollection`](https://getrector.com/find-rule), [`NarrowReturnUnionToCollection`](https://getrector.com/find-rule), [`RemoveAssertNotNullOnCollection`](https://getrector.com/find-rule), [`RemoveCoalesceAssignOnCollection`](https://getrector.com/find-rule), [`RemoveEmptyTableAttribute`](https://getrector.com/find-rule), [`RemoveIfCollectionIdenticalToNull`](https://getrector.com/find-rule), [`RemoveIfInstanceofCollection`](https://getrector.com/find-rule), [`RemoveIsArrayOnCollection`](https://getrector.com/find-rule), [`RemoveNewArrayCollectionOutsideConstructor`](https://getrector.com/find-rule), [`RemoveNewArrayCollectionWrap`](https://getrector.com/find-rule), [`RemoveNullFromInstantiatedArrayCollectionProperty`](https://getrector.com/find-rule), [`RemoveNullFromNullableCollectionType`](https://getrector.com/find-rule), [`RemoveNullsafeOnCollection`](https://getrector.com/find-rule), [`RemoveUselessIsEmptyAssign`](https://getrector.com/find-rule), [`ReplaceFetchAllMethodCall`](https://getrector.com/find-rule), [`ReplaceLifecycleEventArgsByDedicatedEventArgs`](https://getrector.com/find-rule), [`ReturnArrayToNewArrayCollection`](https://getrector.com/find-rule), [`ReturnCollectionDocblock`](https://getrector.com/find-rule), [`SetArrayToNewCollection`](https://getrector.com/find-rule), [`SetParametersArrayToCollection`](https://getrector.com/find-rule), [`TypeNullableEntityFromDocblock`](https://getrector.com/find-rule), [`TypedPropertyFromColumnType`](https://getrector.com/find-rule), [`TypedPropertyFromToManyRelationType`](https://getrector.com/find-rule), [`TypedPropertyFromToOneRelationType`](https://getrector.com/find-rule), [`YamlToAttributeDoctrineMapping`](https://getrector.com/find-rule).

### JMS rules: out of scope (Laravel-first); migrate lists them

[`ObjectTypedPropertyFromJMSSerializerAttributeType`](https://getrector.com/rule-detail/object-typed-property-from-j-m-s-serializer-attribute-type-rector), [`ScalarTypedPropertyFromJMSSerializerAttributeType`](https://getrector.com/rule-detail/scalar-typed-property-from-j-m-s-serializer-attribute-type-rector).

### Rector post-processor, not a rule: no set registers it

[`DocblockNameImportingPost`](https://getrector.com/find-rule), [`NameImportingPost`](https://getrector.com/find-rule), [`UnusedImportRemovingPost`](https://getrector.com/find-rule).

### Rector-internal post-processing step of RenameClass, not a user rule

[`ClassRenamingPost`](https://getrector.com/find-rule).

### Rector-internal post-processing step of the import feature, not a user rule

[`UseAddingPost`](https://getrector.com/find-rule).

### Symfony rules: out of scope (Laravel-first); migrate lists them

[`ReturnTypeFromSymfonySerializer`](https://getrector.com/rule-detail/return-type-from-symfony-serializer-rector), [`AccessTypeAnnotationToAttribute`](https://getrector.com/find-rule), [`AccessorAnnotationToAttribute`](https://getrector.com/find-rule), [`ActionSuffixRemover`](https://getrector.com/find-rule), [`AddFormatArgumentToIsValid`](https://getrector.com/find-rule), [`AddRouteAnnotation`](https://getrector.com/find-rule), [`AddTraitGetterReturnTypeBasedOnSetterRequired`](https://getrector.com/find-rule), [`AddViolationToBuildViolation`](https://getrector.com/find-rule), [`AddVoteArgumentToVoteOnAttribute`](https://getrector.com/find-rule), [`ArgumentValueResolverToValueResolver`](https://getrector.com/find-rule), [`AssertSameResponseCodeWithDebugContents`](https://getrector.com/find-rule), [`AuthorizationCheckerIsGrantedExtractor`](https://getrector.com/find-rule), [`AuthorizationCheckerToAccessDecisionManagerInVoter`](https://getrector.com/find-rule), [`AutowireAttribute`](https://getrector.com/find-rule), [`BinaryFileResponseCreateToNewInstance`](https://getrector.com/find-rule), [`ChangeCollectionTypeOptionNameFromTypeToEntryType`](https://getrector.com/find-rule), [`ChangeStringCollectionOptionToConstant`](https://getrector.com/find-rule), [`CommandConfigureToAttribute`](https://getrector.com/find-rule), [`CommandConstantReturnCode`](https://getrector.com/find-rule), [`CommandDefaultNameAndDescriptionToAsCommandAttribute`](https://getrector.com/find-rule), [`CommandGetByTypeToConstructorInjection`](https://getrector.com/find-rule), [`CommandHelpToAttribute`](https://getrector.com/find-rule), [`CommandPropertyToAttribute`](https://getrector.com/find-rule), [`ConsoleExceptionToErrorEventConstant`](https://getrector.com/find-rule), [`ConsoleExecuteReturnInt`](https://getrector.com/find-rule), [`ConstraintOptionsToNamedArguments`](https://getrector.com/find-rule), [`ConstraintUrlOption`](https://getrector.com/find-rule), [`ConstraintValidatorValidateToValidateInContext`](https://getrector.com/find-rule), [`ContainerBuilderCompileEnvArgument`](https://getrector.com/find-rule), [`ContainerGetNameToTypeInTests`](https://getrector.com/find-rule), [`ContainerInterfaceServiceToServiceContainer`](https://getrector.com/find-rule), [`ControllerGetByTypeToConstructorInjection`](https://getrector.com/find-rule), [`ControllerMethodInjectionToConstructor`](https://getrector.com/find-rule), [`ConvertRenderTemplateShortNotationToBundleSyntax`](https://getrector.com/find-rule), [`DefinitionAliasSetPrivateToSetPublic`](https://getrector.com/find-rule), [`DowngradeSymfonyCommandAttribute`](https://getrector.com/find-rule), [`ErrorNamesPropertyToConstant`](https://getrector.com/find-rule), [`EventDispatcherParentConstruct`](https://getrector.com/find-rule), [`EventListenerToEventSubscriber`](https://getrector.com/find-rule), [`EventSubscriberMethodReturnVoid`](https://getrector.com/find-rule), [`FormBuilderSetDataMapper`](https://getrector.com/find-rule), [`FormIsValid`](https://getrector.com/find-rule), [`FormTypeGetParent`](https://getrector.com/find-rule), [`FormTypeInstanceToClassConst`](https://getrector.com/find-rule), [`FromServicePublicToDefaultsPublic`](https://getrector.com/find-rule), [`GetBySymfonyStringToConstructorInjection`](https://getrector.com/find-rule), [`GetCurrencyBundleMethodCallsToIntl`](https://getrector.com/find-rule), [`GetFiltersToAsTwigFilterAttribute`](https://getrector.com/find-rule), [`GetFunctionsToAsTwigFunctionAttribute`](https://getrector.com/find-rule), [`GetHelperControllerToService`](https://getrector.com/find-rule), [`GetRequest`](https://getrector.com/find-rule), [`GetToConstructorInjection`](https://getrector.com/find-rule), [`InlineClassRoutePrefix`](https://getrector.com/find-rule), [`InvokableCommandInputAttribute`](https://getrector.com/find-rule), [`KernelTestCaseContainerPropertyDeprecation`](https://getrector.com/find-rule), [`LiteralGetToRequestClassConstant`](https://getrector.com/find-rule), [`LoadValidatorMetadataToAnnotation`](https://getrector.com/find-rule), [`LoadValidatorMetadataToAttribute`](https://getrector.com/find-rule), [`LogoutHandlerToLogoutEventSubscriber`](https://getrector.com/find-rule), [`LogoutSuccessHandlerToLogoutEventSubscriber`](https://getrector.com/find-rule), [`MagicClosureTwigExtensionToNativeMethods`](https://getrector.com/find-rule), [`MakeDispatchFirstArgumentEvent`](https://getrector.com/find-rule), [`MaxLengthSymfonyFormOptionToAttr`](https://getrector.com/find-rule), [`MergeMethodAnnotationToRouteAnnotation`](https://getrector.com/find-rule), [`MergeServiceNameType`](https://getrector.com/find-rule), [`MessageHandlerInterfaceToAttribute`](https://getrector.com/find-rule), [`MessageSubscriberInterfaceToAttribute`](https://getrector.com/find-rule), [`OptionName`](https://getrector.com/find-rule), [`ParamAndEnvAttribute`](https://getrector.com/find-rule), [`ParamConverterAttributeToMapEntityAttribute`](https://getrector.com/find-rule), [`ParamTypeFromRouteRequiredRegex`](https://getrector.com/find-rule), [`ParameterBagToAutowireAttribute`](https://getrector.com/find-rule), [`ParameterBagTypedGetMethodCall`](https://getrector.com/find-rule), [`ParseFile`](https://getrector.com/find-rule), [`PropertyAccessorCreationBooleanToFlags`](https://getrector.com/find-rule), [`PropertyPathMapperToDataMapper`](https://getrector.com/find-rule), [`PushRequestToRequestStackConstructor`](https://getrector.com/find-rule), [`ReadOnlyOptionToAttribute`](https://getrector.com/find-rule), [`RedirectToRoute`](https://getrector.com/find-rule), [`ReflectionExtractorEnableMagicCallExtractor`](https://getrector.com/find-rule), [`RemoveConstructorAutowireService`](https://getrector.com/find-rule), [`RemoveDefaultGetBlockPrefix`](https://getrector.com/find-rule), [`RemoveEraseCredentials`](https://getrector.com/find-rule), [`RemoveEraseCredentialsFromAuthenticatorManager`](https://getrector.com/find-rule), [`RemoveServiceFromSensioRoute`](https://getrector.com/find-rule), [`RemoveUnusedRequestParam`](https://getrector.com/find-rule), [`RenameCopyOnWindowsOptionToFollowSymlinks`](https://getrector.com/find-rule), [`ReplaceSensioRouteAnnotationWithSymfony`](https://getrector.com/find-rule), [`RequestIsMain`](https://getrector.com/find-rule), [`ResponseReturnTypeControllerAction`](https://getrector.com/rule-detail/response-return-type-controller-action-rector), [`ResponseStatusCode`](https://getrector.com/find-rule), [`ReturnDirectJsonResponse`](https://getrector.com/find-rule), [`RootNodeTreeBuilder`](https://getrector.com/find-rule), [`RouteCollectionBuilderToRoutingConfigurator`](https://getrector.com/find-rule), [`SecurityAttributeToIsGrantedAttribute`](https://getrector.com/find-rule), [`ServiceArgsToServiceNamedArg`](https://getrector.com/find-rule), [`ServiceSetStringNameToClassName`](https://getrector.com/find-rule), [`ServiceSettersToSettersAutodiscovery`](https://getrector.com/find-rule), [`ServiceTagsToDefaultsAutoconfigure`](https://getrector.com/find-rule), [`SignalableCommandInterfaceReturnType`](https://getrector.com/find-rule), [`SimpleFunctionAndFilter`](https://getrector.com/find-rule), [`SimplifyFormRendering`](https://getrector.com/find-rule), [`SingleConditionSecurityAttributeToIsGranted`](https://getrector.com/find-rule), [`SplitAndSecurityAttributeToIsGranted`](https://getrector.com/find-rule), [`StringCastDebugResponse`](https://getrector.com/find-rule), [`StringFormTypeToClass`](https://getrector.com/find-rule), [`StringToArrayArgumentProcess`](https://getrector.com/find-rule), [`SwiftCreateMessageToNewEmail`](https://getrector.com/find-rule), [`SwiftMessageToEmail`](https://getrector.com/find-rule), [`SwiftSetBodyToHtmlPlainMethodCall`](https://getrector.com/find-rule), [`TemplateAnnotationToThisRender`](https://getrector.com/find-rule), [`TraitGetByTypeToInject`](https://getrector.com/find-rule), [`TwigBundleFilesystemLoaderToTwig`](https://getrector.com/find-rule), [`ValidatorBuilderEnableAnnotationMapping`](https://getrector.com/find-rule), [`VarDumperTestTraitMethodArgs`](https://getrector.com/find-rule), [`WebTestCaseAssertIsSuccessful`](https://getrector.com/find-rule), [`WebTestCaseAssertResponseCode`](https://getrector.com/find-rule).

### deprecated upstream (2.6.1, 2.7.0 (removed), main (removed))

[`NewInInitializer`](https://getrector.com/find-rule).

### deprecated upstream (2.6.1, 2.7.0, main)

[`AddParamArrayDocblockFromDataProvider`](https://getrector.com/find-rule), [`AddReturnArrayDocblockFromDataProviderParam`](https://getrector.com/find-rule), [`AddReturnDocblockDataProvider`](https://getrector.com/find-rule), [`AddReturnDocblockFromMethodCallDocblock`](https://getrector.com/find-rule), [`ArraySpreadInsteadOfArrayMerge`](https://getrector.com/find-rule), [`BinaryOpStandaloneAssignsToDirect`](https://getrector.com/find-rule), [`CountArrayToEmptyArrayComparison`](https://getrector.com/find-rule), [`EncapsedStringsToSprintf`](https://getrector.com/find-rule), [`EnumCaseToPascalCase`](https://getrector.com/find-rule), [`JoinStringConcat`](https://getrector.com/find-rule), [`NestedTernaryToMatch`](https://getrector.com/find-rule), [`NullableCompareToNull`](https://getrector.com/find-rule), [`RemoveTypedPropertyNonMockDocblock`](https://getrector.com/find-rule), [`SimplifyRegexPattern`](https://getrector.com/find-rule), [`StaticArrowFunction`](https://getrector.com/find-rule), [`StaticCallOnNonStaticToInstanceCall`](https://getrector.com/find-rule), [`StaticClosure`](https://getrector.com/find-rule), [`StrictStringParamConcat`](https://getrector.com/find-rule), [`SwitchTrueToIf`](https://getrector.com/find-rule), [`UnusedForeachValueToArrayKeys`](https://getrector.com/find-rule), [`WrapEncapsedVariableInCurlyBraces`](https://getrector.com/find-rule).

### deprecated upstream (2.6.1, main)

[`BehatPHPUnitAssertToWebmozart`](https://getrector.com/find-rule), [`ReplaceTestFunctionPrefixWithAttribute`](https://getrector.com/find-rule), [`WillReturnCallbackFallbackToThrow`](https://getrector.com/find-rule).

### deprecated upstream (2.7.0 (removed), main (removed))

[`RenameDeprecatedMethodCall`](https://getrector.com/find-rule), [`UtilsJsonStaticCallNamedArg`](https://getrector.com/find-rule).

### deprecated upstream (2.7.0, main)

[`AddAssertArrayFromClassMethodDocblock`](https://getrector.com/find-rule), [`AddInterfaceByTrait`](https://getrector.com/find-rule), [`AddParamArrayDocblockBasedOnArrayMap`](https://getrector.com/find-rule), [`AddReturnArrayDocblockBasedOnArrayMap`](https://getrector.com/find-rule), [`AddReturnDocblockForDimFetchArrayFromAssigns`](https://getrector.com/find-rule), [`AddSensitiveParameterAttribute`](https://getrector.com/find-rule), [`ChangeNestedForeachIfsToEarlyContinue`](https://getrector.com/find-rule), [`ChangeNestedIfsToEarlyReturn`](https://getrector.com/find-rule), [`ChangeOrIfContinueToMultiContinue`](https://getrector.com/find-rule), [`CoalesceToTernary`](https://getrector.com/find-rule), [`CombineIf`](https://getrector.com/find-rule), [`ConstAndTraitDeprecatedAttribute`](https://getrector.com/find-rule), [`DeprecatedAnnotationToDeprecatedAttribute`](https://getrector.com/find-rule), [`DisallowedEmptyRuleFixer`](https://getrector.com/find-rule), [`DynamicDocBlockPropertyToNativeProperty`](https://getrector.com/find-rule), [`ExplicitBoolCompare`](https://getrector.com/find-rule), [`FluentSettersToStandaloneCallMethod`](https://getrector.com/find-rule), [`FuncCallToMethodCall`](https://getrector.com/find-rule), [`JsonThrowOnError`](https://getrector.com/find-rule), [`ListSwapArrayOrder`](https://getrector.com/find-rule), [`NestedFuncCallsToPipeOperator`](https://getrector.com/find-rule), [`PropertyHook`](https://getrector.com/find-rule), [`RemoveAnnotation`](https://getrector.com/find-rule), [`RemoveReturnThisFromSetterClassMethod`](https://getrector.com/find-rule), [`ReturnBinaryOrToEarlyReturn`](https://getrector.com/find-rule), [`ScalarValueToConstFetch`](https://getrector.com/find-rule), [`SequentialAssignmentsToPipeOperator`](https://getrector.com/find-rule), [`ShortenElseIf`](https://getrector.com/find-rule), [`SimplifyIfElseToTernary`](https://getrector.com/find-rule), [`SwitchNegatedTernary`](https://getrector.com/find-rule).

### deprecated upstream (2.8.4, main)

[`AddOverrideAttributeToOverriddenMethods`](https://getrector.com/find-rule), [`AddParamStringTypeFromSprintfUse`](https://getrector.com/find-rule), [`ArrayDimFetchToMethodCall`](https://getrector.com/find-rule), [`CompleteDynamicProperties`](https://getrector.com/find-rule), [`FuncCallToNew`](https://getrector.com/rule-detail/func-call-to-new-rector), [`FuncCallToStaticCall`](https://getrector.com/rule-detail/func-call-to-static-call-rector), [`ParamTypeByParentCallType`](https://getrector.com/find-rule), [`RemoveParentDelegatingConstructor`](https://getrector.com/find-rule), [`ReturnEarlyIfVariable`](https://getrector.com/find-rule), [`StaticCallToMethodCall`](https://getrector.com/find-rule).

### deprecated upstream (main)

[`ArrayParamTypeByMethodCallType`](https://getrector.com/find-rule), [`CallUserFuncWithArrowFunctionToInline`](https://getrector.com/find-rule), [`DeclareStrictTypes`](https://getrector.com/find-rule), [`EmptyOnNullableObjectToInstanceOf`](https://getrector.com/find-rule), [`FlipTypeControlToUseExclusiveType`](https://getrector.com/find-rule), [`ForRepeatedCountToOwnVariable`](https://getrector.com/find-rule), [`ForeachItemsAssignToEmptyArrayToAssign`](https://getrector.com/find-rule), [`InnerFunctionToPrivateMethod`](https://getrector.com/find-rule), [`MoveInnerFunctionToTopLevel`](https://getrector.com/find-rule), [`ObjectExplicitBoolCompare`](https://getrector.com/find-rule), [`ObjectParamTypeByMethodCallType`](https://getrector.com/find-rule), [`ParamTypeByMethodCallType`](https://getrector.com/find-rule), [`PostIncDecToPreIncDec`](https://getrector.com/find-rule), [`RemoveDeadReturn`](https://getrector.com/find-rule), [`RemoveDuplicatedReturnSelfDocblock`](https://getrector.com/find-rule), [`RemoveUselessIsObjectCheck`](https://getrector.com/find-rule), [`RenameForeachValueVariableToMatchExprVariable`](https://getrector.com/find-rule), [`RenameForeachValueVariableToMatchMethodCallReturnType`](https://getrector.com/find-rule), [`RenameParamToMatchType`](https://getrector.com/find-rule), [`RenamePropertyToMatchType`](https://getrector.com/find-rule), [`RenameVariableToMatchMethodCallReturnType`](https://getrector.com/find-rule), [`RenameVariableToMatchNewType`](https://getrector.com/find-rule), [`ScalarParamTypeByMethodCallType`](https://getrector.com/find-rule), [`SetTypeToCast`](https://getrector.com/find-rule), [`SimplifyStrposLower`](https://getrector.com/find-rule), [`SwitchTrueToMatch`](https://getrector.com/find-rule), [`TernaryFalseExpressionToIf`](https://getrector.com/find-rule), [`WhileNullableToInstanceof`](https://getrector.com/find-rule), [`AllowMockObjectsWithoutExpectationsAttribute`](https://getrector.com/find-rule), [`ConfiguredMockEntityToSetterObject`](https://getrector.com/find-rule), [`RemoveNamedArgsInDataProvider`](https://getrector.com/find-rule), [`SuffixMockObjectProperty`](https://getrector.com/find-rule).

### downgrade sets contradict modernize; use [php] version instead

[`AddReturnTypeWillChangeAttribute`](https://getrector.com/find-rule), [`ArrowFunctionToAnonymousFunction`](https://getrector.com/find-rule), [`DowngradeAbstractPrivateMethodInTrait`](https://getrector.com/find-rule), [`DowngradeArbitraryExpressionsSupport`](https://getrector.com/find-rule), [`DowngradeArrayAll`](https://getrector.com/find-rule), [`DowngradeArrayAny`](https://getrector.com/find-rule), [`DowngradeArrayFilterNullableCallback`](https://getrector.com/find-rule), [`DowngradeArrayFind`](https://getrector.com/find-rule), [`DowngradeArrayFindKey`](https://getrector.com/find-rule), [`DowngradeArrayFirstLast`](https://getrector.com/find-rule), [`DowngradeArrayIsList`](https://getrector.com/find-rule), [`DowngradeArrayKeyFirstLast`](https://getrector.com/find-rule), [`DowngradeArrayMergeCallWithoutArguments`](https://getrector.com/find-rule), [`DowngradeArraySpread`](https://getrector.com/find-rule), [`DowngradeAttributeToAnnotation`](https://getrector.com/find-rule), [`DowngradeClamp`](https://getrector.com/find-rule), [`DowngradeClassOnObjectToGetClass`](https://getrector.com/find-rule), [`DowngradeContravariantArgumentType`](https://getrector.com/find-rule), [`DowngradeCovariantReturnType`](https://getrector.com/find-rule), [`DowngradeDereferenceableOperation`](https://getrector.com/find-rule), [`DowngradeDomNodeChildNodesForeach`](https://getrector.com/find-rule), [`DowngradeDynamicClassConstFetch`](https://getrector.com/find-rule), [`DowngradeEnumToConstantListClass`](https://getrector.com/find-rule), [`DowngradeFinalPropertyPromotion`](https://getrector.com/find-rule), [`DowngradeFinalizePublicClassConstant`](https://getrector.com/find-rule), [`DowngradeFirstClassCallableSyntax`](https://getrector.com/find-rule), [`DowngradeFlexibleHeredocSyntax`](https://getrector.com/find-rule), [`DowngradeFreadFwriteFalsyToNegation`](https://getrector.com/find-rule), [`DowngradeHashAlgorithmXxHash`](https://getrector.com/find-rule), [`DowngradeInstanceofStringable`](https://getrector.com/find-rule), [`DowngradeIsCountable`](https://getrector.com/find-rule), [`DowngradeIsEnum`](https://getrector.com/find-rule), [`DowngradeIteratorCountToArray`](https://getrector.com/find-rule), [`DowngradeJsonDecodeNullAssociativeArg`](https://getrector.com/find-rule), [`DowngradeJsonValidate`](https://getrector.com/find-rule), [`DowngradeListReferenceAssignment`](https://getrector.com/find-rule), [`DowngradeMatchToSwitch`](https://getrector.com/find-rule), [`DowngradeMixedTypeDeclaration`](https://getrector.com/find-rule), [`DowngradeMixedTypeTypedProperty`](https://getrector.com/find-rule), [`DowngradeNamedArgument`](https://getrector.com/find-rule), [`DowngradeNeverTypeDeclaration`](https://getrector.com/find-rule), [`DowngradeNewInInitializer`](https://getrector.com/find-rule), [`DowngradeNewMethodCallWithoutParentheses`](https://getrector.com/find-rule), [`DowngradeNonCapturingCatches`](https://getrector.com/find-rule), [`DowngradeNullCoalescingOperator`](https://getrector.com/find-rule), [`DowngradeNullsafeToTernaryOperator`](https://getrector.com/find-rule), [`DowngradeNumberFormatNoFourthArg`](https://getrector.com/find-rule), [`DowngradeNumericLiteralSeparator`](https://getrector.com/find-rule), [`DowngradeObjectTypeDeclaration`](https://getrector.com/find-rule), [`DowngradeOctalNumber`](https://getrector.com/find-rule), [`DowngradeParameterTypeWidening`](https://getrector.com/find-rule), [`DowngradePhp72JsonConst`](https://getrector.com/find-rule), [`DowngradePhp73JsonConst`](https://getrector.com/find-rule), [`DowngradePhp80ResourceReturnToObject`](https://getrector.com/find-rule), [`DowngradePhp81ResourceReturnToObject`](https://getrector.com/find-rule), [`DowngradePhpToken`](https://getrector.com/find-rule), [`DowngradePipeOperator`](https://getrector.com/find-rule), [`DowngradePregUnmatchedAsNullConstant`](https://getrector.com/find-rule), [`DowngradePreviouslyImplementedInterface`](https://getrector.com/find-rule), [`DowngradeProcOpenArrayCommandArg`](https://getrector.com/find-rule), [`DowngradePropertyPromotion`](https://getrector.com/find-rule), [`DowngradePureIntersectionType`](https://getrector.com/find-rule), [`DowngradeReadonlyAnonymousClass`](https://getrector.com/find-rule), [`DowngradeReadonlyClass`](https://getrector.com/find-rule), [`DowngradeReadonlyProperty`](https://getrector.com/find-rule), [`DowngradeRecursiveDirectoryIteratorHasChildren`](https://getrector.com/find-rule), [`DowngradeReflectionClassGetConstantsFilter`](https://getrector.com/find-rule), [`DowngradeReflectionGetAttributes`](https://getrector.com/find-rule), [`DowngradeReflectionGetType`](https://getrector.com/find-rule), [`DowngradeReflectionPropertyGetDefaultValue`](https://getrector.com/find-rule), [`DowngradeRoundingModeEnum`](https://getrector.com/find-rule), [`DowngradeSetAccessibleReflectionProperty`](https://getrector.com/find-rule), [`DowngradeStandaloneNullTrueFalseReturnType`](https://getrector.com/find-rule), [`DowngradeStaticTypeDeclaration`](https://getrector.com/find-rule), [`DowngradeStrContains`](https://getrector.com/find-rule), [`DowngradeStrEndsWith`](https://getrector.com/find-rule), [`DowngradeStrStartsWith`](https://getrector.com/find-rule), [`DowngradeStreamIsatty`](https://getrector.com/find-rule), [`DowngradeStripTagsCallWithArray`](https://getrector.com/find-rule), [`DowngradeSubstrFalsy`](https://getrector.com/find-rule), [`DowngradeThrowExpr`](https://getrector.com/find-rule), [`DowngradeTrailingCommasInFunctionCalls`](https://getrector.com/find-rule), [`DowngradeTrailingCommasInParamUse`](https://getrector.com/find-rule), [`DowngradeTrailingCommasInUnset`](https://getrector.com/find-rule), [`DowngradeTypedClassConst`](https://getrector.com/find-rule), [`DowngradeTypedProperty`](https://getrector.com/find-rule), [`DowngradeUnionIntersection`](https://getrector.com/find-rule), [`DowngradeUnionTypeDeclaration`](https://getrector.com/find-rule), [`DowngradeUnionTypeTypedProperty`](https://getrector.com/find-rule), [`DowngradeVoidCast`](https://getrector.com/find-rule), [`RemoveReturnTypeDeclarationFromClone`](https://getrector.com/find-rule), [`SetCookieOptionsArrayToArguments`](https://getrector.com/find-rule).

### in no Pest set

[`ConvertAndToExpect`](https://getrector.com/find-rule).

### in no rector-laravel/Pest set

[`ArrayToArrGet`](https://getrector.com/rule-detail/array-to-arr-get-rector), [`CommandPropertyToAsCommandAttribute`](https://getrector.com/rule-detail/command-property-to-as-command-attribute-rector), [`ConfigToTypedConfigMethodCall`](https://getrector.com/rule-detail/config-to-typed-config-method-call-rector), [`DateWhereClauseToShorthand`](https://getrector.com/rule-detail/date-where-clause-to-shorthand-rector), [`EmptyToBlankAndFilledFunc`](https://getrector.com/rule-detail/empty-to-blank-and-filled-func-rector), [`MinutesToSecondsInCache`](https://getrector.com/rule-detail/minutes-to-seconds-in-cache-rector), [`RemoveDumpDataDeadCode`](https://getrector.com/rule-detail/remove-dump-data-dead-code-rector), [`RemoveModelPropertyFromFactories`](https://getrector.com/rule-detail/remove-model-property-from-factories-rector), [`ResponseHelperCallToJsonResponse`](https://getrector.com/rule-detail/response-helper-call-to-json-response-rector), [`RouteActionCallable`](https://getrector.com/rule-detail/route-action-callable-rector), [`UseComponentPropertyWithinCommands`](https://getrector.com/rule-detail/use-component-property-within-commands-rector), [`UseForwardsCallsTrait`](https://getrector.com/rule-detail/use-forwards-calls-trait-rector), [`WhereNullComparisonToWhereNull`](https://getrector.com/rule-detail/where-null-comparison-to-where-null-rector), [`WhereToWhereLike`](https://getrector.com/rule-detail/where-to-where-like-rector).

### in no set

[`AddPropertyTypeDeclaration`](https://getrector.com/find-rule), [`ArgumentRemover`](https://getrector.com/rule-detail/argument-remover-rector), [`AttributeKeyToClassConstFetch`](https://getrector.com/rule-detail/attribute-key-to-class-const-fetch-rector), [`ChangeConstantVisibility`](https://getrector.com/find-rule), [`ChangeMethodVisibility`](https://getrector.com/rule-detail/change-method-visibility-rector), [`ConstFetchToClassConstFetch`](https://getrector.com/find-rule), [`MergeInterfaces`](https://getrector.com/find-rule), [`MethodCallToFuncCall`](https://getrector.com/find-rule), [`MethodCallToStaticCall`](https://getrector.com/find-rule), [`NestedAnnotationToAttribute`](https://getrector.com/rule-detail/nested-annotation-to-attribute-rector), [`NewToStaticCall`](https://getrector.com/find-rule), [`NullToStrictStringFuncCallArg`](https://getrector.com/rule-detail/null-to-strict-string-func-call-arg-rector), [`RemoveInterfaces`](https://getrector.com/rule-detail/remove-interfaces-rector), [`RemoveMethodCallParam`](https://getrector.com/find-rule), [`RemoveTraitUse`](https://getrector.com/rule-detail/remove-trait-use-rector), [`RenameAttribute`](https://getrector.com/rule-detail/rename-attribute-rector), [`RenameProperty`](https://getrector.com/rule-detail/rename-property-rector), [`RenameStaticMethod`](https://getrector.com/rule-detail/rename-static-method-rector), [`RenameString`](https://getrector.com/rule-detail/rename-string-rector), [`ReplaceArgumentDefaultValue`](https://getrector.com/find-rule), [`StaticCallToNew`](https://getrector.com/rule-detail/static-call-to-new-rector), [`StringToClassConstant`](https://getrector.com/find-rule), [`WrapReturn`](https://getrector.com/rule-detail/wrap-return-rector), [`AddKeysExistsAssertForKeyUse`](https://getrector.com/rule-detail/add-keys-exists-assert-for-key-use-rector), [`AssertClassToThisAssert`](https://getrector.com/rule-detail/assert-class-to-this-assert-rector), [`AssertThatToDirectAssert`](https://getrector.com/rule-detail/assert-that-to-direct-assert-rector), [`ExplicitMockExpectsCall`](https://getrector.com/rule-detail/explicit-mock-expects-call-rector), [`PreferPHPUnitSelfCall`](https://getrector.com/rule-detail/prefer-p-h-p-unit-self-call-rector), [`PreferTestsWithCamelCase`](https://getrector.com/rule-detail/prefer-tests-with-camel-case-rector), [`PreferTestsWithSnakeCase`](https://getrector.com/rule-detail/prefer-tests-with-snake-case-rector).

### laravel upgrade set below laravel-12

[`AddArgumentDefaultValue`](https://getrector.com/rule-detail/add-argument-default-value-rector), [`AddGuardToLoginEvent`](https://getrector.com/rule-detail/add-guard-to-login-event-rector), [`AddMockConsoleOutputFalseToConsoleTests`](https://getrector.com/rule-detail/add-mock-console-output-false-to-console-tests-rector), [`AddParentBootToModelClassMethod`](https://getrector.com/rule-detail/add-parent-boot-to-model-class-method-rector), [`AddParentRegisterToEventServiceProvider`](https://getrector.com/rule-detail/add-parent-register-to-event-service-provider-rector), [`AssertSeeToAssertSeeHtml`](https://getrector.com/rule-detail/assert-see-to-assert-see-html-rector), [`ChangeQueryWhereDateValueWithCarbon`](https://getrector.com/rule-detail/change-query-where-date-value-with-carbon-rector), [`DatabaseExpressionCastsToMethodCall`](https://getrector.com/rule-detail/database-expression-casts-to-method-call-rector), [`DatabaseExpressionToStringToMethodCall`](https://getrector.com/rule-detail/database-expression-to-string-to-method-call-rector), [`DispatchNonShouldQueueToDispatchSync`](https://getrector.com/rule-detail/dispatch-non-should-queue-to-dispatch-sync-rector), [`EventStringToClassConstant`](https://getrector.com/rule-detail/event-string-to-class-constant-rector), [`MigrateToSimplifiedAttribute`](https://getrector.com/rule-detail/migrate-to-simplified-attribute-rector), [`ModelCastsPropertyToCastsMethod`](https://getrector.com/rule-detail/model-casts-property-to-casts-method-rector), [`PropertyDeferToDeferrableProviderTo`](https://getrector.com/rule-detail/property-defer-to-deferrable-provider-to-rector), [`Redirect301ToPermanentRedirect`](https://getrector.com/rule-detail/redirect301-to-permanent-redirect-rector), [`RefactorBlueprintGeometryColumns`](https://getrector.com/rule-detail/refactor-blueprint-geometry-columns-rector), [`RemoveTraitUse`](https://getrector.com/rule-detail/remove-trait-use-rector), [`RenameStaticMethod`](https://getrector.com/rule-detail/rename-static-method-rector), [`ReplaceAssertTimesSendWithAssertSentTimes`](https://getrector.com/rule-detail/replace-assert-times-send-with-assert-sent-times-rector), [`ReplaceExpectsMethodsInTests`](https://getrector.com/rule-detail/replace-expects-methods-in-tests-rector), [`ReplaceFakerInstanceWithHelper`](https://getrector.com/rule-detail/replace-faker-instance-with-helper-rector), [`ReplaceQueueTraitsWithQueueable`](https://getrector.com/rule-detail/replace-queue-traits-with-queueable-rector), [`ReplaceWithoutJobsEventsAndNotificationsWithFacadeFake`](https://getrector.com/rule-detail/replace-without-jobs-events-and-notifications-with-facade-fake-rector), [`UnifyModelDatesWithCasts`](https://getrector.com/rule-detail/unify-model-dates-with-casts-rector).

### legacy-factories migration (Laravel 7 to 8 upgrade), below laravel-12

[`FactoryApplyingStates`](https://getrector.com/rule-detail/factory-applying-states-rector), [`FactoryDefinition`](https://getrector.com/rule-detail/factory-definition-rector), [`FactoryFuncCallToStaticCall`](https://getrector.com/rule-detail/factory-func-call-to-static-call-rector).

### lumen set (Lumen framework only)

[`LumenRoutesStringActionToUsesArray`](https://getrector.com/rule-detail/lumen-routes-string-action-to-uses-array-rector), [`LumenRoutesStringMiddlewareToArray`](https://getrector.com/rule-detail/lumen-routes-string-middleware-to-array-rector).

### not correctly added upstream (registered in no set)

[`UseToBeReadableWritable`](https://getrector.com/find-rule).

### only in PHPUnit upgrade sets below phpunit110 (below the Laravel 12 / PHPUnit 11 floor)

[`AddParamTypeDeclaration`](https://getrector.com/rule-detail/add-param-type-declaration-rector), [`AddReturnTypeDeclaration`](https://getrector.com/rule-detail/add-return-type-declaration-rector), [`RenameAnnotation`](https://getrector.com/find-rule), [`AddDoesNotPerformAssertionToNonAssertingTest`](https://getrector.com/rule-detail/add-does-not-perform-assertion-to-non-asserting-test-rector), [`AddProphecyTrait`](https://getrector.com/rule-detail/add-prophecy-trait-rector), [`AssertEqualsParameterToSpecificMethodsType`](https://getrector.com/rule-detail/assert-equals-parameter-to-specific-methods-type-rector), [`AssertRegExp`](https://getrector.com/rule-detail/assert-reg-exp-rector), [`DelegateExceptionArguments`](https://getrector.com/rule-detail/delegate-exception-arguments-rector), [`ExceptionAnnotation`](https://getrector.com/rule-detail/exception-annotation-rector), [`ExplicitPhpErrorApi`](https://getrector.com/rule-detail/explicit-php-error-api-rector), [`GetMock`](https://getrector.com/rule-detail/get-mock-rector), [`ParentTestClassConstructor`](https://getrector.com/rule-detail/parent-test-class-constructor-rector), [`PropertyExistsWithoutAssert`](https://getrector.com/rule-detail/property-exists-without-assert-rector), [`PublicDataProviderClassMethod`](https://getrector.com/rule-detail/public-data-provider-class-method-rector), [`RemoveDataProviderTestPrefix`](https://getrector.com/rule-detail/remove-data-provider-test-prefix-rector), [`RemoveSetMethodsMethodCall`](https://getrector.com/rule-detail/remove-set-methods-method-call-rector), [`ScenarioToTestAnnotation`](https://getrector.com/rule-detail/scenario-to-test-annotation-rector), [`SpecificAssertContains`](https://getrector.com/rule-detail/specific-assert-contains-rector), [`SpecificAssertContainsWithoutIdentity`](https://getrector.com/rule-detail/specific-assert-contains-without-identity-rector), [`SpecificAssertInternalType`](https://getrector.com/rule-detail/specific-assert-internal-type-rector), [`StaticDataProviderClassMethod`](https://getrector.com/rule-detail/static-data-provider-class-method-rector), [`TestListenerToHooks`](https://getrector.com/rule-detail/test-listener-to-hooks-rector), [`WithConsecutive`](https://getrector.com/rule-detail/with-consecutive-rector).

### only in php52..php81 upgrade sets (below php82)

[`AddParamBasedOnParentClassMethod`](https://getrector.com/rule-detail/add-param-based-on-parent-class-method-rector), [`ArgumentAdder`](https://getrector.com/rule-detail/argument-adder-rector), [`ArrayKeyExistsOnProperty`](https://getrector.com/rule-detail/array-key-exists-on-property-rector), [`ArrayKeyFirstLast`](https://getrector.com/rule-detail/array-key-first-last-rector), [`ArrayKeysToArrayKeyFirstLast`](https://getrector.com/rule-detail/array-keys-to-array-key-first-last-rector), [`ArrayToFirstClassCallable`](https://getrector.com/rule-detail/array-to-first-class-callable-rector), [`ArrowFunctionDelegatingCallToFirstClassCallable`](https://getrector.com/rule-detail/arrow-function-delegating-call-to-first-class-callable-rector), [`AssignArrayToString`](https://getrector.com/rule-detail/assign-array-to-string-rector), [`BinaryOpBetweenNumberAndString`](https://getrector.com/rule-detail/binary-op-between-number-and-string-rector), [`BreakNotInLoopOrSwitchToReturn`](https://getrector.com/rule-detail/break-not-in-loop-or-switch-to-return-rector), [`CallUserMethod`](https://getrector.com/rule-detail/call-user-method-rector), [`ChangeSwitchToMatch`](https://getrector.com/rule-detail/change-switch-to-match-rector), [`ClassConstantToSelfClass`](https://getrector.com/rule-detail/class-constant-to-self-class-rector), [`ClassOnObject`](https://getrector.com/rule-detail/class-on-object-rector), [`ClassOnThisVariableObject`](https://getrector.com/rule-detail/class-on-this-variable-object-rector), [`ClassPropertyAssignToConstructorPromotion`](https://getrector.com/rule-detail/class-property-assign-to-constructor-promotion-rector), [`ClosureDelegatingCallToFirstClassCallable`](https://getrector.com/rule-detail/closure-delegating-call-to-first-class-callable-rector), [`ClosureFromCallableToFirstClassCallable`](https://getrector.com/rule-detail/closure-from-callable-to-first-class-callable-rector), [`ClosureToArrowFunction`](https://getrector.com/rule-detail/closure-to-arrow-function-rector), [`ConsistentImplode`](https://getrector.com/rule-detail/consistent-implode-rector), [`ContinueToBreakInSwitch`](https://getrector.com/rule-detail/continue-to-break-in-switch-rector), [`CreateFunctionToAnonymousFunction`](https://getrector.com/rule-detail/create-function-to-anonymous-function-rector), [`CurlyToSquareBracketArrayString`](https://getrector.com/rule-detail/curly-to-square-bracket-array-string-rector), [`DirNameFileConstantToDirConstant`](https://getrector.com/rule-detail/dir-name-file-constant-to-dir-constant-rector), [`EmptyList`](https://getrector.com/rule-detail/empty-list-rector), [`EregToPregMatch`](https://getrector.com/rule-detail/ereg-to-preg-match-rector), [`ExceptionHandlerTypehint`](https://getrector.com/rule-detail/exception-handler-typehint-rector), [`ExplicitPublicClassMethod`](https://getrector.com/rule-detail/explicit-public-class-method-rector), [`ExportToReflectionFunction`](https://getrector.com/rule-detail/export-to-reflection-function-rector), [`FilterVarToAddSlashes`](https://getrector.com/rule-detail/filter-var-to-add-slashes-rector), [`FinalPrivateToPrivateVisibility`](https://getrector.com/rule-detail/final-private-to-private-visibility-rector), [`FunctionArgumentDefaultValueReplacer`](https://getrector.com/find-rule), [`FunctionFirstClassCallable`](https://getrector.com/rule-detail/function-first-class-callable-rector), [`GetCalledClassToSelfClass`](https://getrector.com/rule-detail/get-called-class-to-self-class-rector), [`GetCalledClassToStaticClass`](https://getrector.com/rule-detail/get-called-class-to-static-class-rector), [`GetClassOnNull`](https://getrector.com/rule-detail/get-class-on-null-rector), [`GetDebugType`](https://getrector.com/rule-detail/get-debug-type-rector), [`GetHeadersArgumentFormat`](https://getrector.com/rule-detail/get-headers-argument-format-rector), [`HebrevcToNl2brHebrev`](https://getrector.com/rule-detail/hebrevc-to-nl2br-hebrev-rector), [`IfIssetToCoalescing`](https://getrector.com/rule-detail/if-isset-to-coalescing-rector), [`IfToNullCoalescingAssign`](https://getrector.com/rule-detail/if-to-null-coalescing-assign-rector), [`IfToSpaceship`](https://getrector.com/rule-detail/if-to-spaceship-rector), [`IsCountable`](https://getrector.com/rule-detail/is-countable-rector), [`IsIterable`](https://getrector.com/rule-detail/is-iterable-rector), [`ListEach`](https://getrector.com/rule-detail/list-each-rector), [`ListSplitString`](https://getrector.com/rule-detail/list-split-string-rector), [`ListToArrayDestruct`](https://getrector.com/rule-detail/list-to-array-destruct-rector), [`LongArrayToShortArray`](https://getrector.com/rule-detail/long-array-to-short-array-rector), [`MbStrrposEncodingArgumentPosition`](https://getrector.com/rule-detail/mb-strrpos-encoding-argument-position-rector), [`MoneyFormatToNumberFormat`](https://getrector.com/rule-detail/money-format-to-number-format-rector), [`MultiDirname`](https://getrector.com/rule-detail/multi-dirname-rector), [`MultiExceptionCatch`](https://getrector.com/rule-detail/multi-exception-catch-rector), [`MyCLabsClassToEnum`](https://getrector.com/rule-detail/my-c-labs-class-to-enum-rector), [`MyCLabsConstructorCallToEnumFrom`](https://getrector.com/rule-detail/my-c-labs-constructor-call-to-enum-from-rector), [`MyCLabsMethodCallToEnumConst`](https://getrector.com/rule-detail/my-c-labs-method-call-to-enum-const-rector), [`NullCoalescingOperator`](https://getrector.com/rule-detail/null-coalescing-operator-rector), [`NullToStrictIntPregSlitFuncCallLimitArg`](https://getrector.com/rule-detail/null-to-strict-int-preg-slit-func-call-limit-arg-rector), [`ParenthesizeNestedTernary`](https://getrector.com/rule-detail/parenthesize-nested-ternary-rector), [`ParseStrWithResultArgument`](https://getrector.com/rule-detail/parse-str-with-result-argument-rector), [`Php4Constructor`](https://getrector.com/rule-detail/php4-constructor-rector), [`PowToExp`](https://getrector.com/rule-detail/pow-to-exp-rector), [`PregReplaceEModifier`](https://getrector.com/rule-detail/preg-replace-e-modifier-rector), [`RandomFunction`](https://getrector.com/rule-detail/random-function-rector), [`ReadOnlyProperty`](https://getrector.com/rule-detail/read-only-property-rector), [`ReduceMultipleDefaultSwitch`](https://getrector.com/rule-detail/reduce-multiple-default-switch-rector), [`RegexDashEscape`](https://getrector.com/rule-detail/regex-dash-escape-rector), [`RemoveReferenceFromCall`](https://getrector.com/rule-detail/remove-reference-from-call-rector), [`RemoveReflectionSetAccessibleCalls`](https://getrector.com/rule-detail/remove-reflection-set-accessible-calls-rector), [`RemoveUnusedVariableInCatch`](https://getrector.com/rule-detail/remove-unused-variable-in-catch-rector), [`RemoveZeroBreakContinue`](https://getrector.com/rule-detail/remove-zero-break-continue-rector), [`RenameMktimeWithoutArgsToTime`](https://getrector.com/rule-detail/rename-mktime-without-args-to-time-rector), [`ReplaceEachAssignmentWithKeyCurrent`](https://getrector.com/rule-detail/replace-each-assignment-with-key-current-rector), [`ReplaceHttpServerVarsByServer`](https://getrector.com/rule-detail/replace-http-server-vars-by-server-rector), [`RestoreDefaultNullToNullableTypeProperty`](https://getrector.com/rule-detail/restore-default-null-to-nullable-type-property-rector), [`RestoreIncludePathToIniRestore`](https://getrector.com/rule-detail/restore-include-path-to-ini-restore-rector), [`SensitiveConstantName`](https://getrector.com/rule-detail/sensitive-constant-name-rector), [`SensitiveDefine`](https://getrector.com/rule-detail/sensitive-define-rector), [`SensitiveHereNowDoc`](https://getrector.com/rule-detail/sensitive-here-now-doc-rector), [`SetCookie`](https://getrector.com/rule-detail/set-cookie-rector), [`SetStateToStatic`](https://getrector.com/rule-detail/set-state-to-static-rector), [`SpatieEnumClassToEnum`](https://getrector.com/rule-detail/spatie-enum-class-to-enum-rector), [`SpatieEnumMethodCallToEnumConst`](https://getrector.com/rule-detail/spatie-enum-method-call-to-enum-const-rector), [`StaticCallToFuncCall`](https://getrector.com/rule-detail/static-call-to-func-call-rector), [`StaticToSelfOnFinalClass`](https://getrector.com/rule-detail/static-to-self-on-final-class-rector), [`StrContains`](https://getrector.com/rule-detail/str-contains-rector), [`StrEndsWith`](https://getrector.com/rule-detail/str-ends-with-rector), [`StrStartsWith`](https://getrector.com/rule-detail/str-starts-with-rector), [`StringableForToString`](https://getrector.com/rule-detail/stringable-for-to-string-rector), [`StringifyDefine`](https://getrector.com/rule-detail/stringify-define-rector), [`StringifyStrNeedles`](https://getrector.com/rule-detail/stringify-str-needles-rector), [`StringsAssertNaked`](https://getrector.com/rule-detail/strings-assert-naked-rector), [`TernaryToElvis`](https://getrector.com/rule-detail/ternary-to-elvis-rector), [`TernaryToNullCoalescing`](https://getrector.com/rule-detail/ternary-to-null-coalescing-rector), [`TernaryToNullsafeCoalesce`](https://getrector.com/rule-detail/ternary-to-nullsafe-coalesce-rector), [`TernaryToSpaceship`](https://getrector.com/rule-detail/ternary-to-spaceship-rector), [`ThisCallOnStaticMethodToStaticCall`](https://getrector.com/rule-detail/this-call-on-static-method-to-static-call-rector), [`UnsetCast`](https://getrector.com/rule-detail/unset-cast-rector), [`VersionCompareFuncCallArgument`](https://getrector.com/rule-detail/version-compare-func-call-argument-rector), [`WhileEachToForeach`](https://getrector.com/rule-detail/while-each-to-foreach-rector), [`WrapVariableVariableNameInCurlyBraces`](https://getrector.com/rule-detail/wrap-variable-variable-name-in-curly-braces-rector).

### only in sets outside the eight prepared sets: datetime-to-carbon

[`DateFuncCallToCarbon`](https://getrector.com/rule-detail/date-func-call-to-carbon-rector), [`DateTimeInstanceToCarbon`](https://getrector.com/rule-detail/date-time-instance-to-carbon-rector), [`DateTimeMethodCallToCarbon`](https://getrector.com/rule-detail/date-time-method-call-to-carbon-rector), [`TimeFuncCallToCarbon`](https://getrector.com/rule-detail/time-func-call-to-carbon-rector).

### only in sets outside the eight prepared sets: instanceof

[`BinaryOpNullableToInstanceof`](https://getrector.com/find-rule).

### only in sets outside the eight prepared sets: named-args

[`AddNameToBooleanArgument`](https://getrector.com/rule-detail/add-name-to-boolean-argument-rector), [`AddNameToNullArgument`](https://getrector.com/rule-detail/add-name-to-null-argument-rector), [`ExplicitAttributeNamedArgs`](https://getrector.com/rule-detail/explicit-attribute-named-args-rector).

### only in sets outside the eight prepared sets: php-polyfills

[`MbStrContains`](https://getrector.com/rule-detail/mb-str-contains-rector).

### only in sets outside the eight prepared sets: rector-preset

[`AddParamTypeToRefactorMethod`](https://getrector.com/rule-detail/add-param-type-to-refactor-method-rector), [`RemoveRefactorDuplicatedNodeInstanceCheck`](https://getrector.com/rule-detail/remove-refactor-duplicated-node-instance-check-rector), [`AddSeeTestAnnotation`](https://getrector.com/rule-detail/add-see-test-annotation-rector).

### package upgrade set below the current major (cashier-13)

[`CashierStripeOptionsToStripe`](https://getrector.com/rule-detail/cashier-stripe-options-to-stripe-rector).

### package upgrade set below the current major (faker-10)

[`ReplaceFakerPropertyFetchWithMethodCall`](https://getrector.com/rule-detail/replace-faker-property-fetch-with-method-call-rector).

### package upgrade set below the current major (livewire-30)

[`LivewireComponentComputedMethodToComputedAttribute`](https://getrector.com/rule-detail/livewire-component-computed-method-to-computed-attribute-rector), [`LivewireComponentQueryStringToUrlAttribute`](https://getrector.com/rule-detail/livewire-component-query-string-to-url-attribute-rector).

## Pun-only rules

- [`lint/comments/no-unused-ignore`](/docs/rules/lint/comments/no-unused-ignore)
