From 363ce5e13ef9fda224bbdd7585b7e38042a78f6f Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Mon, 6 Mar 2023 16:27:57 +0100 Subject: [PATCH] Removing test line, API should be 100% functional 2 --- Source/API/script/ExceptionHandle/PDOError.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();