Skip to content

Commit

Permalink
Exclude IncreaseDeclareStrictTypesRector from rector-preset set as co…
Browse files Browse the repository at this point in the history
…nflict with DeclareStrictTypesRector (#5926)
  • Loading branch information
samsonasik authored May 30, 2024
1 parent 756a45a commit 2039b67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/set/rector-preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
use Rector\TypeDeclaration\Rector\BooleanAnd\BinaryOpNullableToInstanceofRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\IncreaseDeclareStrictTypesRector;
use Rector\TypeDeclaration\Rector\While_\WhileNullableToInstanceofRector;

return static function (RectorConfig $rectorConfig): void {
Expand All @@ -26,7 +25,6 @@
StrvalToTypeCastRector::class,
BoolvalToTypeCastRector::class,
FloatvalToTypeCastRector::class,
IncreaseDeclareStrictTypesRector::class,
StaticClosureRector::class,
StaticArrowFunctionRector::class,
PostIncDecToPreIncDecRector::class,
Expand Down
2 changes: 2 additions & 0 deletions utils/Command/MissingInSetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Rector\Php81\Rector\ClassConst\FinalizePublicClassConstantRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\AddCoversClassAttributeRector;
use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\IncreaseDeclareStrictTypesRector;
use Rector\Utils\Enum\RectorDirectoryToSetFileMap;
use Rector\Utils\Finder\RectorClassFinder;
use Rector\Utils\Finder\SetRectorClassesResolver;
Expand All @@ -31,6 +32,7 @@ final class MissingInSetCommand extends Command
private const SKIPPED_RULES = [
ConfigurableRectorInterface::class,
// optional
IncreaseDeclareStrictTypesRector::class,
CallableThisArrayToAnonymousFunctionRector::class,
// changes behavior, should be applied on purpose regardless PHP 7.3 level
JsonThrowOnErrorRector::class,
Expand Down

0 comments on commit 2039b67

Please sign in to comment.