This commit is contained in:
2021-08-04 15:39:06 +08:00
parent 9f9d19415d
commit 9589a394eb
3 changed files with 21 additions and 10 deletions
+5 -3
View File
@@ -2,7 +2,9 @@
namespace Server;
use HttpServer\Http\Response as SResponse;
use Server\Constrict\Response;
use Throwable;
/**
*
@@ -12,10 +14,10 @@ interface ExceptionHandlerInterface
/**
* @param \Throwable $exception
* @param Throwable $exception
* @param Response $response
* @return Response
* @return Response|SResponse
*/
public function emit(\Throwable $exception, Response $response): Response;
public function emit(Throwable $exception, Response $response): Response|SResponse;
}