2023-04-13 10:01:45 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
2024-03-01 20:02:28 +00:00
|
|
|
namespace RectorPrefix202403;
|
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\If_\RemoveDeadInstanceOfRector;
|
2023-08-05 23:50:25 +00:00
|
|
|
use Rector\Instanceof_\Rector\Ternary\FlipNegatedTernaryInstanceofRector;
|
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-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-05-23 13:59:54 +00:00
|
|
|
$rectorConfig->rules([EmptyOnNullableObjectToInstanceOfRector::class, GetClassToInstanceOfRector::class, InlineIsAInstanceOfRector::class, FlipTypeControlToUseExclusiveTypeRector::class, RemoveDeadInstanceOfRector::class, FlipNegatedTernaryInstanceofRector::class, BinaryOpNullableToInstanceofRector::class, WhileNullableToInstanceofRector::class]);
|
2023-04-13 10:01:45 +00:00
|
|
|
};
|