From ec964fc04373ba2dd223d2b33c08c10c83ee8091 Mon Sep 17 00:00:00 2001 From: Yurun Date: Thu, 21 Dec 2023 13:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Rector=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev/bootstrap.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/bootstrap.php b/dev/bootstrap.php index 7005ef1198..ba49f9e0f3 100644 --- a/dev/bootstrap.php +++ b/dev/bootstrap.php @@ -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([