Skip to content

Commit

Permalink
[CodeQuality] Remove BoolvalToTypeCastRector and FloatvalToTypeCastRe…
Browse files Browse the repository at this point in the history
…ctor as well from code-quality set (#5722)
  • Loading branch information
samsonasik committed Mar 14, 2024
1 parent ea0f1c1 commit 23e3da2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions config/set/code-quality.php
Expand Up @@ -27,11 +27,9 @@
use Rector\CodeQuality\Rector\Foreach_\SimplifyForeachToCoalescingRector;
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
use Rector\CodeQuality\Rector\FuncCall\ArrayMergeOfNonArraysToSimpleArrayRector;
use Rector\CodeQuality\Rector\FuncCall\BoolvalToTypeCastRector;
use Rector\CodeQuality\Rector\FuncCall\CallUserFuncWithArrowFunctionToInlineRector;
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector;
use Rector\CodeQuality\Rector\FuncCall\FloatvalToTypeCastRector;
use Rector\CodeQuality\Rector\FuncCall\InlineIsAInstanceOfRector;
use Rector\CodeQuality\Rector\FuncCall\IsAWithStringWithThirdArgumentRector;
use Rector\CodeQuality\Rector\FuncCall\RemoveSoleValueSprintfRector;
Expand Down Expand Up @@ -140,7 +138,6 @@
SimplifyBoolIdenticalTrueRector::class,
SimplifyRegexPatternRector::class,
BooleanNotIdenticalToNotIdenticalRector::class,
FloatvalToTypeCastRector::class,
CallableThisArrayToAnonymousFunctionRector::class,
AndAssignsToSeparateLinesRector::class,
CompactToVariablesRector::class,
Expand All @@ -151,7 +148,6 @@
RemoveSoleValueSprintfRector::class,
ShortenElseIfRector::class,
ArrayMergeOfNonArraysToSimpleArrayRector::class,
BoolvalToTypeCastRector::class,
ArrayKeyExistsTernaryThenValueToCoalescingRector::class,
AbsolutizeRequireAndIncludePathRector::class,
ChangeArrayPushToArrayAssignRector::class,
Expand Down
4 changes: 4 additions & 0 deletions utils/Command/MissingInSetCommand.php
Expand Up @@ -5,6 +5,8 @@
namespace Rector\Utils\Command;

use Nette\Utils\Strings;
use Rector\CodeQuality\Rector\FuncCall\BoolvalToTypeCastRector;
use Rector\CodeQuality\Rector\FuncCall\FloatvalToTypeCastRector;
use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector;
use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector;
use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector;
Expand Down Expand Up @@ -38,6 +40,8 @@ final class MissingInSetCommand extends Command
WhileNullableToInstanceofRector::class,
IntvalToTypeCastRector::class,
StrvalToTypeCastRector::class,
BoolvalToTypeCastRector::class,
FloatvalToTypeCastRector::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
Expand Down

0 comments on commit 23e3da2

Please sign in to comment.