mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
Resolve PHP 8.2 Creation of dynamic property is deprecated
This commit is contained in:
parent
061b219a9a
commit
10835a6f82
1 changed files with 2 additions and 8 deletions
|
|
@ -191,17 +191,11 @@ class Logger extends \SplFixedArray
|
|||
|
||||
public function WriteException(\Throwable $oException, int $iType = \LOG_NOTICE, string $sName = '') : void
|
||||
{
|
||||
if (empty($oException->__WRITTEN__)) {
|
||||
$oException->__WRITTEN__ = true;
|
||||
$this->Write((string) $oException, $iType, $sName);
|
||||
}
|
||||
$this->Write((string) $oException, $iType, $sName);
|
||||
}
|
||||
|
||||
public function WriteExceptionShort(\Throwable $oException, int $iType = \LOG_NOTICE, string $sName = '') : void
|
||||
{
|
||||
if (empty($oException->__WRITTEN__)) {
|
||||
$oException->__WRITTEN__ = true;
|
||||
$this->Write($oException->getMessage(), $iType, $sName);
|
||||
}
|
||||
$this->Write($oException->getMessage(), $iType, $sName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue