diff --git a/config/set/code-quality.php b/config/set/code-quality.php index f07eabc2969..1621bc042a1 100644 --- a/config/set/code-quality.php +++ b/config/set/code-quality.php @@ -33,7 +33,6 @@ use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector; use Rector\CodeQuality\Rector\FuncCall\FloatvalToTypeCastRector; use Rector\CodeQuality\Rector\FuncCall\InlineIsAInstanceOfRector; -use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector; use Rector\CodeQuality\Rector\FuncCall\IsAWithStringWithThirdArgumentRector; use Rector\CodeQuality\Rector\FuncCall\RemoveSoleValueSprintfRector; use Rector\CodeQuality\Rector\FuncCall\SetTypeToCastRector; @@ -42,7 +41,6 @@ use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector; use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector; -use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector; use Rector\CodeQuality\Rector\FuncCall\UnwrapSprintfOneArgumentRector; use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector; use Rector\CodeQuality\Rector\Identical\BooleanNotIdenticalToNotIdenticalRector; @@ -142,7 +140,6 @@ SimplifyBoolIdenticalTrueRector::class, SimplifyRegexPatternRector::class, BooleanNotIdenticalToNotIdenticalRector::class, - StrvalToTypeCastRector::class, FloatvalToTypeCastRector::class, CallableThisArrayToAnonymousFunctionRector::class, AndAssignsToSeparateLinesRector::class, @@ -154,7 +151,6 @@ RemoveSoleValueSprintfRector::class, ShortenElseIfRector::class, ArrayMergeOfNonArraysToSimpleArrayRector::class, - IntvalToTypeCastRector::class, BoolvalToTypeCastRector::class, ArrayKeyExistsTernaryThenValueToCoalescingRector::class, AbsolutizeRequireAndIncludePathRector::class, diff --git a/utils/Command/MissingInSetCommand.php b/utils/Command/MissingInSetCommand.php index 0cd0f1a54fd..7aa571df297 100644 --- a/utils/Command/MissingInSetCommand.php +++ b/utils/Command/MissingInSetCommand.php @@ -5,6 +5,8 @@ namespace Rector\Utils\Command; use Nette\Utils\Strings; +use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector; +use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector; use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector; use Rector\Contract\Rector\ConfigurableRectorInterface; use Rector\DeadCode\Rector\ClassMethod\RemoveNullTagValueNodeRector; @@ -34,6 +36,8 @@ final class MissingInSetCommand extends Command // optional BinaryOpNullableToInstanceofRector::class, WhileNullableToInstanceofRector::class, + IntvalToTypeCastRector::class, + StrvalToTypeCastRector::class, // changes behavior, should be applied on purpose regardless PHP 7.3 level JsonThrowOnErrorRector::class, // in confront with sub type safe belt detection on RemoveUseless*TagRector