mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +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
e888e7863c
commit
9638bddaac
@ -396,7 +396,7 @@ class Sharing
|
|||||||
$class = strpos($status, '404') === 0 ? 'EGroupware\Api\Exception\NotFound' :
|
$class = strpos($status, '404') === 0 ? 'EGroupware\Api\Exception\NotFound' :
|
||||||
(strpos($status, '401') === 0 ? 'EGroupware\Api\Exception\NoPermission' :
|
(strpos($status, '401') === 0 ? 'EGroupware\Api\Exception\NoPermission' :
|
||||||
'EGroupware\Api\Exception');
|
'EGroupware\Api\Exception');
|
||||||
throw new $class($message, $status);
|
throw new $class($message, (int)$status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user