From c7f2de6500b83a2a89633e229fb702190157bdd1 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 30 Apr 2024 12:25:12 +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 f96057bc5b..458a89dece 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -303,7 +303,7 @@ class Exception extends \Exception $this->code = $code ?? $this->errors[$type]['code']; // todo: Handle better PDOExceptions or string errors - if(is_string($this->code)) { + if(\is_string($this->code) && !\is_numeric($this->code)) { $this->code = 500; }