use solution repository instead of built-in (#209)

* use solution repository instead of built-in

* suppress static analysis
This commit is contained in:
sunxyw
2022-12-27 20:39:24 +08:00
committed by GitHub
parent 05b3321af7
commit 87840930e0
13 changed files with 75 additions and 30 deletions

View File

@@ -12,11 +12,11 @@ class ConfigException extends ZMException
public static function unsupportedFileType(string $file_path): ConfigException
{
return new self("不支持的配置文件类型:{$file_path}", '请检查配置文件的后缀名是否正确', self::UNSUPPORTED_FILE_TYPE);
return new self("不支持的配置文件类型:{$file_path}", self::UNSUPPORTED_FILE_TYPE);
}
public static function loadConfigFailed(string $file_path, string $message): ConfigException
{
return new self("加载配置文件失败:{$file_path}{$message}", '请检查配置文件的格式是否正确,并尝试按照错误信息排查', self::LOAD_CONFIG_FAILED);
return new self("加载配置文件失败:{$file_path}{$message}", self::LOAD_CONFIG_FAILED);
}
}