|
2 | 2 |
|
3 | 3 | declare(strict_types=1);
|
4 | 4 |
|
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 | + */ |
15 | 13 |
|
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; |
24 | 15 |
|
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