Browse Source
chore: add UseSpecificWillMethodRector to rector configuration
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/53459/head
Robin Appelman
5 months ago
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with
4 additions and
0 deletions
-
build/rector.php
|
|
|
@ -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, |
|
|
|
|