Skip to content

Commit

Permalink
修复 Rector 测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Dec 21, 2023
1 parent 93f3eae commit ec964fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dev/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function getRectorConfigCallback(string $path): callable
\Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector::class,
\Rector\CodeQuality\Rector\ClassMethod\OptionalParametersAfterRequiredRector::class, // 调整包含默认值的参数顺序,会导致代码被破坏
\Rector\Php81\Rector\ClassConst\FinalizePublicClassConstantRector::class, // 常量自动加 final,无法继承覆盖了
\Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector::class, // 自说自话改never真下头
]);

$rectorConfig->bootstrapFiles([
Expand Down

0 comments on commit ec964fc

Please sign in to comment.