mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
c56fdd2b7f
1b68ff48b8
[automated] Apply Coding Standard (#6524)
19 lines
1.1 KiB
PHP
19 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202412;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
|
|
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
|
|
use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector;
|
|
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
|
|
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
|
|
use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector;
|
|
use Rector\Php81\Rector\MethodCall\SpatieEnumMethodCallToEnumConstRector;
|
|
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->rules([ReturnNeverTypeRector::class, MyCLabsClassToEnumRector::class, MyCLabsMethodCallToEnumConstRector::class, ReadOnlyPropertyRector::class, SpatieEnumClassToEnumRector::class, SpatieEnumMethodCallToEnumConstRector::class, NewInInitializerRector::class, NullToStrictStringFuncCallArgRector::class, FirstClassCallableRector::class]);
|
|
};
|