-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathrector-options.php
More file actions
31 lines (26 loc) · 894 Bytes
/
rector-options.php
File metadata and controls
31 lines (26 loc) · 894 Bytes
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
29
30
31
<?php
/** @noinspection PhpInternalEntityUsedInspection */
declare(strict_types=1);
/**
* Copyright (c) 2019-2026 guanguans<ityaozm@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/guanguans/soar-php
*/
use Guanguans\RectorRules\Rector\Array_\SimplifyListIndexRector;
use Guanguans\SoarPHP\Support\Rectors\AddDocCommentForSoarOptionsRector;
use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__.'/examples/options.php',
])
->withPhpVersion(PhpVersion::PHP_81)
->withoutParallel()
->withImportNames(importDocBlockNames: false, importShortClasses: false)
->withRules([
AddDocCommentForSoarOptionsRector::class,
SimplifyListIndexRector::class,
]);