mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fix PHP 8.0 TypeError: Exception::__construct(): Argument #2 ($code) must be of type int, string given
This commit is contained in:
parent
7792c706a6
commit
02270f63fb
@ -396,7 +396,7 @@ class Sharing
|
||||
$class = strpos($status, '404') === 0 ? 'EGroupware\Api\Exception\NotFound' :
|
||||
(strpos($status, '401') === 0 ? 'EGroupware\Api\Exception\NoPermission' :
|
||||
'EGroupware\Api\Exception');
|
||||
throw new $class($message, $status);
|
||||
throw new $class($message, (int)$status);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user