add 7.1.0.0 sourceGuardian PHP 8

This commit is contained in:
2024-06-26 13:49:30 +02:00
parent 988cfb837b
commit 6cd13a07d0
177 changed files with 616 additions and 971 deletions

View File

@ -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().") ";

View File

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