From b374db290339315c48a526e0eb559a4b9daec909 Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Mon, 29 Jun 2026 18:20:49 +0930 Subject: [PATCH] ci: add rector DataProvider rules to be consistent across all sabre-io repos --- rector.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rector.php b/rector.php index 201fc80..5a44260 100644 --- a/rector.php +++ b/rector.php @@ -3,6 +3,8 @@ declare(strict_types=1); use Rector\Config\RectorConfig; +use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DataProviderAnnotationToAttributeRector; +use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\AddParamArrayDocblockFromDataProviderRector; return RectorConfig::configure() ->withPaths([ @@ -11,6 +13,10 @@ ]) // uncomment to reach your current PHP version ->withPhpSets(false, true) + ->withRules([ + AddParamArrayDocblockFromDataProviderRector::class, + DataProviderAnnotationToAttributeRector::class, + ]) ->withTypeCoverageLevel(0) ->withDeadCodeLevel(0) ->withCodeQualityLevel(0);