From bdb0e4640dcdecddd8e19ff17115caefa93c5f62 Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 28 Nov 2024 17:42:54 +0000 Subject: [PATCH] Fix "Passing null to parameter #2 ($code) of type int is deprecated" (#18) --- lib/Horde/Imap/Client/Exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Horde/Imap/Client/Exception.php b/lib/Horde/Imap/Client/Exception.php index dba53fb6..516883d6 100644 --- a/lib/Horde/Imap/Client/Exception.php +++ b/lib/Horde/Imap/Client/Exception.php @@ -260,7 +260,7 @@ class Horde_Imap_Client_Exception extends Horde_Exception_Wrapped * @param string $message Error message (non-translated). * @param int $code Error code. */ - public function __construct($message = null, $code = null) + public function __construct($message = '', $code = 0) { parent::__construct($message, $code);