|
|
|
@ -12,6 +12,7 @@ use PhpParser\Node; |
|
|
|
|
use Rector\CodingStyle\Contract\ClassNameImport\ClassNameImportSkipVoterInterface; |
|
|
|
|
use Rector\Config\RectorConfig; |
|
|
|
|
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; |
|
|
|
|
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\UseSpecificWillMethodRector; |
|
|
|
|
use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; |
|
|
|
|
use Rector\ValueObject\Application\File; |
|
|
|
|
|
|
|
|
@ -79,6 +80,9 @@ $config = RectorConfig::configure() |
|
|
|
|
// ->withPhpSets() |
|
|
|
|
->withImportNames(importShortClasses:false) |
|
|
|
|
->withTypeCoverageLevel(0) |
|
|
|
|
->withRules([ |
|
|
|
|
UseSpecificWillMethodRector::class |
|
|
|
|
]) |
|
|
|
|
->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [ |
|
|
|
|
'inline_public' => true, |
|
|
|
|
'rename_property' => true, |
|
|
|
|