6 Star 49 Fork 8

guanguans/soar-php

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rector-soar-options.php 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
<?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,
]);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/guanguans/soar-php.git
git@gitee.com:guanguans/soar-php.git
guanguans
soar-php
soar-php
master

搜索帮助