diff options
author | Robin Appelman <robin@icewind.nl> | 2025-06-30 16:32:14 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-07-01 22:45:01 +0200 |
commit | 259f1fe9bdf1e3437889f0d68914cee0a34cefe6 (patch) | |
tree | 28e094437944ae342e92f10da333accde1633643 | |
parent | c89856b2fa7281421fc8e86cb67223d75a890fe4 (diff) | |
download | nextcloud-server-259f1fe9bdf1e3437889f0d68914cee0a34cefe6.tar.gz nextcloud-server-259f1fe9bdf1e3437889f0d68914cee0a34cefe6.zip |
chore: add phpunit StaticDataProviderClassMethodRector rector rule
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | build/rector.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/rector.php b/build/rector.php index 8cd073bde2d..355dba4f43f 100644 --- a/build/rector.php +++ b/build/rector.php @@ -13,6 +13,7 @@ use Rector\CodingStyle\Contract\ClassNameImport\ClassNameImportSkipVoterInterfac use Rector\Config\RectorConfig; use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; use Rector\PHPUnit\CodeQuality\Rector\MethodCall\UseSpecificWillMethodRector; +use Rector\PHPUnit\PHPUnit100\Rector\Class_\StaticDataProviderClassMethodRector; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; use Rector\ValueObject\Application\File; @@ -81,7 +82,8 @@ $config = RectorConfig::configure() ->withImportNames(importShortClasses:false) ->withTypeCoverageLevel(0) ->withRules([ - UseSpecificWillMethodRector::class + UseSpecificWillMethodRector::class, + StaticDataProviderClassMethodRector::class, ]) ->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [ 'inline_public' => true, |