From 3c3e066bce4549622a62f7caa415784e2e9b4548 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 30 Apr 2024 12:30:35 +1200 Subject: [PATCH] Update src/Appwrite/Extend/Exception.php --- src/Appwrite/Extend/Exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Extend/Exception.php b/src/Appwrite/Extend/Exception.php index b5e338f1b0..851c19a944 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -296,7 +296,7 @@ class Exception extends \Exception protected array $errors = []; protected bool $publish; - public function __construct(string $type = Exception::GENERAL_UNKNOWN, string $message = null, $code = null, \Throwable $previous = null) + public function __construct(string $type = Exception::GENERAL_UNKNOWN, string $message = null, int|string $code = null, \Throwable $previous = null) { $this->errors = Config::getParam('errors'); $this->type = $type;