mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Bugfixes and more conversions to PHP 7
This commit is contained in:
parent
2cada68f41
commit
3a7ec4ecb0
100 changed files with 238 additions and 992 deletions
|
|
@ -76,7 +76,7 @@ class Notifications
|
|||
/**
|
||||
* @staticvar array $aMap
|
||||
*/
|
||||
static public function GetNotificationsMessage(int $iCode, ?\Exception $oPrevious = null) : string
|
||||
static public function GetNotificationsMessage(int $iCode, ?\Throwable $oPrevious = null) : string
|
||||
{
|
||||
static $aMap = array(
|
||||
self::InvalidToken => 'InvalidToken',
|
||||
|
|
@ -138,7 +138,7 @@ class Notifications
|
|||
self::UnknownError => 'UnknownError'
|
||||
);
|
||||
|
||||
if (self::ClientViewError === $iCode && $oPrevious instanceof \Exception)
|
||||
if (self::ClientViewError === $iCode && $oPrevious instanceof \Throwable)
|
||||
{
|
||||
return $oPrevious->getMessage();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue