chore: add UseSpecificWillMethodRector to rector configuration

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/53459/head
Robin Appelman 4 months ago
parent 29e39c0a2e
commit 3cc34ac29d
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 4
      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,

Loading…
Cancel
Save