mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
chore: add UseSpecificWillMethodRector to rector configuration
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
29e39c0a2e
commit
3cc34ac29d
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue