1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00

Update src/Appwrite/Extend/Exception.php

This commit is contained in:
Jake Barnby 2024-04-30 12:30:35 +12:00 committed by GitHub
parent 9bf13a2400
commit 3c3e066bce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;