Resolve PHP 8.2 Creation of dynamic property is deprecated

This commit is contained in:
the-djmaze 2022-11-08 10:26:23 +01:00
parent 061b219a9a
commit 10835a6f82

View file

@ -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);
}
}