Skip to content

Commit

Permalink
Fix "Passing null to parameter #2 ($code) of type int is deprecated" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream authored Nov 28, 2024
1 parent 94371bf commit bdb0e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Imap/Client/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bdb0e46

Please sign in to comment.