diff --git a/Source/API/script/ExceptionHandle/PDOError.php b/Source/API/script/ExceptionHandle/PDOError.php index 25c0f3c..eeead77 100644 --- a/Source/API/script/ExceptionHandle/PDOError.php +++ b/Source/API/script/ExceptionHandle/PDOError.php @@ -10,7 +10,7 @@ class PDOError extends HttpSpecializedException { protected string $title = "PDO connection failed"; - public function __construct(ServerRequestInterface $request,string $message,Throwable $previous) + public function __construct(ServerRequestInterface $request,string $message,?Throwable $previous = null) { $this->file = $previous->getFile(); $this->line = $previous->getLine();