Update rector config
This commit is contained in:
parent
43d48ee882
commit
32aaa20077
@ -24,6 +24,7 @@ use Rector\DeadCode\Rector\Switch_\RemoveDuplicatedCaseInSwitchRector;
|
|||||||
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
|
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
|
||||||
use Rector\EarlyReturn\Rector\If_\{ChangeIfElseValueAssignToEarlyReturnRector, RemoveAlwaysElseRector};
|
use Rector\EarlyReturn\Rector\If_\{ChangeIfElseValueAssignToEarlyReturnRector, RemoveAlwaysElseRector};
|
||||||
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
|
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
|
||||||
|
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
|
||||||
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
||||||
use Rector\PHPUnit\Set\PHPUnitSetList;
|
use Rector\PHPUnit\Set\PHPUnitSetList;
|
||||||
use Rector\Set\ValueObject\LevelSetList;
|
use Rector\Set\ValueObject\LevelSetList;
|
||||||
@ -33,7 +34,7 @@ use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
|
|||||||
|
|
||||||
return static function (RectorConfig $config): void {
|
return static function (RectorConfig $config): void {
|
||||||
// Import names with use statements
|
// Import names with use statements
|
||||||
$config->importNames();
|
// $config->importNames();
|
||||||
$config->importShortClasses(FALSE);
|
$config->importShortClasses(FALSE);
|
||||||
|
|
||||||
$config->sets([
|
$config->sets([
|
||||||
@ -83,6 +84,7 @@ return static function (RectorConfig $config): void {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$config->skip([
|
$config->skip([
|
||||||
|
NullToStrictStringFuncCallArgRector::class,
|
||||||
ReadOnlyPropertyRector::class,
|
ReadOnlyPropertyRector::class,
|
||||||
RestoreDefaultNullToNullableTypePropertyRector::class,
|
RestoreDefaultNullToNullableTypePropertyRector::class,
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user