2023-04-13 10:01:45 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
2023-05-01 01:36:32 +00:00
|
|
|
namespace RectorPrefix202305;
|
2023-04-13 10:01:45 +00:00
|
|
|
|
|
|
|
use Rector\CodeQuality\Rector\FuncCall\InlineIsAInstanceOfRector;
|
|
|
|
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
|
|
|
|
use Rector\CodeQuality\Rector\Identical\GetClassToInstanceOfRector;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
|
|
use Rector\DeadCode\Rector\BinaryOp\RemoveDuplicatedInstanceOfRector;
|
|
|
|
use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector;
|
2023-04-19 11:05:06 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\BooleanAnd\BinaryOpNullableToInstanceofRector;
|
2023-04-13 10:01:45 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector;
|
2023-04-13 10:40:34 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\Ternary\FlipNegatedTernaryInstanceofRector;
|
2023-04-24 11:18:26 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\While_\WhileNullableToInstanceofRector;
|
2023-04-13 10:01:45 +00:00
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
2023-04-24 11:18:26 +00:00
|
|
|
$rectorConfig->rules([EmptyOnNullableObjectToInstanceOfRector::class, GetClassToInstanceOfRector::class, InlineIsAInstanceOfRector::class, FlipTypeControlToUseExclusiveTypeRector::class, RemoveDuplicatedInstanceOfRector::class, RemoveDeadInstanceOfRector::class, FlipNegatedTernaryInstanceofRector::class, BinaryOpNullableToInstanceofRector::class, WhileNullableToInstanceofRector::class]);
|
2023-04-13 10:01:45 +00:00
|
|
|
};
|