Skip to content

Commit 9a83c89

Browse files
SonataCIgithub-actions[bot]
authored andcommitted
DevKit updates
1 parent 591d505 commit 9a83c89

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
]],
5757
'php_unit_strict' => true,
5858
'php_unit_test_case_static_method_calls' => true,
59+
'php_unit_data_provider_name' => true,
60+
'php_unit_data_provider_return_type' => true,
5961
'phpdoc_to_comment' => ['ignored_tags' => ['psalm-suppress', 'phpstan-var']],
6062
'single_line_throw' => false,
6163
'static_lambda' => true,

rector.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
use Rector\Config\RectorConfig;
2121
use Rector\Php70\Rector\FunctionLike\ExceptionHandlerTypehintRector;
2222
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
23+
use Rector\PHPUnit\CodeQuality\Rector\Class_\AddSeeTestAnnotationRector;
24+
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
25+
use Rector\PHPUnit\Set\PHPUnitSetList;
2326
use Rector\Set\ValueObject\LevelSetList;
2427

2528
return static function (RectorConfig $rectorConfig): void {
@@ -30,12 +33,15 @@
3033

3134
$rectorConfig->sets([
3235
LevelSetList::UP_TO_PHP_80,
36+
PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
37+
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
3338
]);
3439

3540
$rectorConfig->importNames();
3641
$rectorConfig->importShortClasses(false);
3742
$rectorConfig->skip([
3843
CountOnNullRector::class,
3944
ExceptionHandlerTypehintRector::class,
45+
AddSeeTestAnnotationRector::class,
4046
]);
4147
};

0 commit comments

Comments
 (0)