Skip to content

Commit 491a23a

Browse files
committed
[RELEASE] Release v1.4.1
1 parent 18d84d9 commit 491a23a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

rector.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
use Rector\Config\RectorConfig;
4+
use Rector\PHPUnit\Set\PHPUnitSetList;
5+
use Rector\Set\ValueObject\LevelSetList;
6+
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
7+
use Rector\ValueObject\PhpVersion;
8+
9+
return static function (RectorConfig $rectorConfig): void {
10+
$rectorConfig->sets([
11+
LevelSetList::UP_TO_PHP_74,
12+
//PHPUnitSetList::PHPUNIT_50,
13+
//PHPUnitSetList::PHPUNIT_60,
14+
//PHPUnitSetList::PHPUNIT_70,
15+
]);
16+
17+
$rectorConfig->paths([
18+
__DIR__ . '/examples',
19+
__DIR__ . '/src',
20+
__DIR__ . '/tests',
21+
]);
22+
23+
$rectorConfig->rules([
24+
//AddVoidReturnTypeWhereNoReturnRector::class,
25+
]);
26+
27+
// Define your target version, which you want to support
28+
$rectorConfig->phpVersion(PhpVersion::PHP_74);
29+
};

0 commit comments

Comments
 (0)