From f7b6b34e19e9ffa0ee834798fd5ee43011b12d24 Mon Sep 17 00:00:00 2001 From: campbell-m <87438215+campbell-m@users.noreply.github.com> Date: Wed, 3 Jul 2024 18:04:12 +0100 Subject: [PATCH] Add type declarations --- web/lib/MRBS/DBException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/MRBS/DBException.php b/web/lib/MRBS/DBException.php index d7ea0bddf7..cf9bb106c8 100644 --- a/web/lib/MRBS/DBException.php +++ b/web/lib/MRBS/DBException.php @@ -7,7 +7,7 @@ class DBException extends PDOException { - public function __construct($message, $code=0, PDOException $previous=null, $sql=null, $params=null) + public function __construct(string $message, int $code=0, PDOException $previous=null, string $sql=null, array $params=null) { if (isset($sql)) {