This commit is contained in:
Jerry Ma
2023-09-08 22:12:59 +08:00
committed by GitHub
parent 54e98666e7
commit be8eb90b86
11 changed files with 11 additions and 32 deletions

View File

@@ -6,9 +6,7 @@ namespace SPC\doctor;
class CheckResult
{
public function __construct(private readonly bool $ok, private readonly ?string $message = null, private string $fix_item = '', private array $fix_params = [])
{
}
public function __construct(private readonly bool $ok, private readonly ?string $message = null, private string $fix_item = '', private array $fix_params = []) {}
public static function fail(string $message, string $fix_item = '', array $fix_params = []): CheckResult
{