don't catch irrelevant errors

This commit is contained in:
Daniel Seifert 2024-08-22 22:40:44 +02:00
parent e6eb559e8b
commit 586aa9e9c8
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170

View File

@ -87,13 +87,6 @@ class MailConfigCheck extends AdminDetailsController
protected function getCurrentMailer(): void
{
set_error_handler(
function ($errno, $errstr, $errfile, $errline) {
throw oxNew(Exception::class, $errstr.' in '.$errfile.'('.$errline.')', $errno);
},
E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
);
try {
$shop = Registry::getConfig()->getActiveShop();