This commit is contained in:
as2252258@163.com
2021-08-05 00:57:45 +08:00
parent 1d68177cb9
commit 8b638abf13
3 changed files with 7 additions and 12 deletions
+2 -2
View File
@@ -17,9 +17,9 @@ class ExceptionHandlerDispatcher implements ExceptionHandlerInterface
/**
* @param Throwable $exception
* @param CResponse $response
* @return CResponse|\HttpServer\Http\Response
* @return ResponseInterface
*/
public function emit(Throwable $exception, Response $response): Response|\HttpServer\Http\Response
public function emit(Throwable $exception, Response $response): ResponseInterface
{
if ($exception->getCode() == 404) {
return $response->setContent($exception->getMessage())