Skip to content

Commit 407b09c

Browse files
author
xmarchegay
committed
update rector
1 parent 0c59a1f commit 407b09c

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

rector.php

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,20 @@
22

33
declare(strict_types=1);
44

5-
use Rector\Config\RectorConfig;
6-
use Rector\Core\ValueObject\PhpVersion;
7-
use Rector\Set\ValueObject\LevelSetList;
8-
use Rector\Set\ValueObject\SetList;
9-
use Rector\Symfony\Set\SymfonyLevelSetList;
10-
11-
return static function (RectorConfig $rectorConfig): void {
12-
$rectorConfig->parallel();
13-
$rectorConfig->importNames();
14-
$rectorConfig->importShortClasses();
5+
/*
6+
* This file is part of the CleverAge/ProcessBundle package.
7+
*
8+
* Copyright (c) 2017-2024 Clever-Age
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
1513

16-
$rectorConfig->paths([__DIR__.'/src']);
17-
$rectorConfig->skip([__DIR__.'/src/Resources/tests']);
18-
19-
$rectorConfig->sets([
20-
SetList::TYPE_DECLARATION,
21-
LevelSetList::UP_TO_PHP_81,
22-
SymfonyLevelSetList::UP_TO_SYMFONY_63,
23-
]);
14+
use Rector\Config\RectorConfig;
2415

25-
$rectorConfig->phpVersion(PhpVersion::PHP_81);
26-
};
16+
return RectorConfig::configure()
17+
->withPaths([__DIR__.'/src', __DIR__.'/tests'])
18+
->withPhpSets(php82: true)
19+
->withAttributesSets(symfony: true)
20+
->withImportNames(removeUnusedImports: true)
21+
;

0 commit comments

Comments
 (0)