mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +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
|
public function WriteException(\Throwable $oException, int $iType = \LOG_NOTICE, string $sName = '') : void
|
||||||
{
|
{
|
||||||
if (empty($oException->__WRITTEN__)) {
|
$this->Write((string) $oException, $iType, $sName);
|
||||||
$oException->__WRITTEN__ = true;
|
|
||||||
$this->Write((string) $oException, $iType, $sName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function WriteExceptionShort(\Throwable $oException, int $iType = \LOG_NOTICE, string $sName = '') : void
|
public function WriteExceptionShort(\Throwable $oException, int $iType = \LOG_NOTICE, string $sName = '') : void
|
||||||
{
|
{
|
||||||
if (empty($oException->__WRITTEN__)) {
|
$this->Write($oException->getMessage(), $iType, $sName);
|
||||||
$oException->__WRITTEN__ = true;
|
|
||||||
$this->Write($oException->getMessage(), $iType, $sName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue