mirror of
http://124.126.16.154:8888/singularity/hdk-auth.git
synced 2026-01-15 05:15:06 +08:00
- 将 PHP 最低版本要求提升到 8.2 - 添加 hyperf 相关库作为正式依赖 - 更新 symfony polyfill 版本 - 移除 hyperf/session 作为正式依赖,改为建议依赖 - 添加 friendsofhyperf/rector 作为开发依赖 - 更新 minimum-stability 从 alpha 到 beta
24 lines
576 B
PHP
24 lines
576 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Hyperf\Set\HyperfSetList;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->paths([
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests',
|
|
]);
|
|
|
|
// register a single rule
|
|
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
|
|
|
// define sets of rules
|
|
$rectorConfig->sets([
|
|
HyperfSetList::HYPERF_31
|
|
]);
|
|
};
|