This commit is contained in:
2020-12-17 14:09:14 +08:00
parent 672a719dbd
commit 36c1d0502a
151 changed files with 1937 additions and 2848 deletions
+4 -4
View File
@@ -16,12 +16,12 @@ class BaseGoto extends Component
{
/**
* @param $message
* @param string $message
* @param int $statusCode
* @return mixed|void
* @throws Exception
* @return mixed
* @throws ExitException
*/
public function end(string $message, $statusCode = 200)
public function end(string $message, $statusCode = 200): mixed
{
throw new ExitException(JSON::to(12350, $message), $statusCode);
}