-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
rector.php
28 lines (25 loc) · 795 Bytes
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
// uncomment to reach your current PHP version
->withPhpSets(php82: true)
->withPreparedSets(deadCode: true, codingStyle: true)
->withSets([
PHPUnitSetList::PHPUNIT_100,
])
->withRules([
AddVoidReturnTypeWhereNoReturnRector::class,
])
->withSkip([
FirstClassCallableRector::class => [
__DIR__ . '/tests/Stubs/EventListeners/UserEventSubscriber.php',
],
]);