-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathrector-soar-options.php
34 lines (29 loc) · 1.01 KB
/
rector-soar-options.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
29
30
31
32
33
34
<?php
/** @noinspection DebugFunctionUsageInspection */
/** @noinspection PhpInternalEntityUsedInspection */
/** @noinspection PhpUnhandledExceptionInspection */
declare(strict_types=1);
/**
* Copyright (c) 2019-2025 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\SoarPHP\Support\Rectors\AddSoarOptionsDocCommentRector;
use Guanguans\SoarPHP\Support\Rectors\SimplifyListIndexRector;
use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__.'/examples/soar-options.php',
])
->withPhpVersion(PhpVersion::PHP_80)
->withoutParallel()
// ->withImportNames(importNames: false)
->withImportNames(importDocBlockNames: false, importShortClasses: false)
->withRules([
AddSoarOptionsDocCommentRector::class,
SimplifyListIndexRector::class,
]);