add 7.1.0.0 sourceGuardian PHP 8
This commit is contained in:
@ -15,6 +15,8 @@
|
||||
|
||||
namespace D3\ModCfg\Application\Model\Exception;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
/**
|
||||
* handle d3_cfg_mod specific exceptions
|
||||
*/
|
||||
@ -27,9 +29,8 @@ class d3_cfg_mod_exception extends d3modprofile_exception
|
||||
*/
|
||||
public function getString()
|
||||
{
|
||||
$sStr = self::class . " (time: " . date(
|
||||
'Y-m-d H:i:s'
|
||||
) . "): [{$this->code}]: {$this->message} ";
|
||||
$sStr = self::class . " (time: " . (new DateTimeImmutable())->format('Y-m-d H:i:s')
|
||||
. "): [{$this->code}]: {$this->message} ";
|
||||
|
||||
if ($this->getCompareData()) {
|
||||
$sStr .= "(".$this->getCompareData().") ";
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
namespace D3\ModCfg\Application\Model\Exception;
|
||||
|
||||
use DateTimeImmutable;
|
||||
use Exception;
|
||||
use OxidEsales\Eshop\Core\Exception\StandardException;
|
||||
use OxidEsales\Eshop\Core\Registry;
|
||||
@ -33,9 +34,8 @@ class d3modprofile_exception extends StandardException
|
||||
*/
|
||||
public function getString()
|
||||
{
|
||||
return self::class . " (time: " . date(
|
||||
'Y-m-d H:i:s'
|
||||
) . "): [{$this->code}]: {$this->message} - Faulty ModProfile: " . $this->getModCfgId();
|
||||
return self::class . " (time: " . (new DateTimeImmutable())->format('Y-m-d H:i:s')
|
||||
. "): [{$this->code}]: {$this->message} - Faulty ModProfile: " . $this->getModCfgId();
|
||||
//." \n Stack Trace: {$this->getTraceAsString()}\n\n";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user