mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
17 lines
976 B
PHP
17 lines
976 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202304;
|
|
|
|
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;
|
|
use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector;
|
|
use Rector\TypeDeclaration\Rector\Ternary\FlipNegatedTernaryInstanceofRector;
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->rules([EmptyOnNullableObjectToInstanceOfRector::class, GetClassToInstanceOfRector::class, InlineIsAInstanceOfRector::class, FlipTypeControlToUseExclusiveTypeRector::class, RemoveDuplicatedInstanceOfRector::class, RemoveDeadInstanceOfRector::class, FlipNegatedTernaryInstanceofRector::class]);
|
|
};
|