Files
hdk-auth/rector.php
李东云 cfd41be7cf build(deps): 更新依赖并提升 PHP 版本要求
- 将 PHP 最低版本要求提升到 8.2
- 添加 hyperf 相关库作为正式依赖
- 更新 symfony polyfill 版本
- 移除 hyperf/session 作为正式依赖,改为建议依赖
- 添加 friendsofhyperf/rector 作为开发依赖
- 更新 minimum-stability 从 alpha 到 beta
2025-04-11 15:33:43 +08:00

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
]);
};