Skip to content

Commit d7a621c

Browse files
committed
chore: add declare(strict_types=1) in rector.php
1 parent eeebfc8 commit d7a621c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

rector.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
46
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
57
use Rector\CodeQuality\Rector\For_\ForToForeachRector;
@@ -37,8 +39,15 @@
3739
use Rector\Set\ValueObject\SetList;
3840

3941
return static function (RectorConfig $rectorConfig): void {
40-
$rectorConfig->sets([SetList::DEAD_CODE, LevelSetList::UP_TO_PHP_74, PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, PHPUnitSetList::PHPUNIT_80]);
42+
$rectorConfig->sets([
43+
SetList::DEAD_CODE,
44+
LevelSetList::UP_TO_PHP_74,
45+
PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD,
46+
PHPUnitSetList::PHPUNIT_80,
47+
]);
48+
4149
$rectorConfig->parallel();
50+
4251
// The paths to refactor (can also be supplied with CLI arguments)
4352
$rectorConfig->paths([
4453
__DIR__ . '/src/',

0 commit comments

Comments
 (0)