mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
23 lines
722 B
PHP
23 lines
722 B
PHP
<?php
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
use Rector\Set\ValueObject\SetList;
|
|
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
// register single rule
|
|
$rectorConfig->rule(TypedPropertyFromStrictConstructorRector::class);
|
|
|
|
// here we can define, what sets of rules will be applied
|
|
// tip: use "SetList" class to autocomplete sets with your IDE
|
|
$rectorConfig->sets([
|
|
SetList::CODE_QUALITY,
|
|
SetList::CODING_STYLE,
|
|
SetList::DEAD_CODE,
|
|
SetList::EARLY_RETURN,
|
|
SetList::STRICT_BOOLEANS,
|
|
LevelSetList::UP_TO_PHP_82,
|
|
]);
|
|
};
|