diff --git a/Frontend/MoptPaymentPayone/Components/Payone/Settings/Configuration/Abstract.php b/Frontend/MoptPaymentPayone/Components/Payone/Settings/Configuration/Abstract.php index eab521c1..e1e76d4e 100755 --- a/Frontend/MoptPaymentPayone/Components/Payone/Settings/Configuration/Abstract.php +++ b/Frontend/MoptPaymentPayone/Components/Payone/Settings/Configuration/Abstract.php @@ -41,7 +41,7 @@ protected function getClassConstants($class) try { $cardtype = new ReflectionClass($class); if (is_object($cardtype)) { - $constants = $cardtype->getConstants(); + $constants = $cardtype->getConstants(); /** @phpstan-ignore-line */ } } catch (ReflectionException $e) { $constants = []; diff --git a/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php b/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php index 7103c3b0..ae35af38 100755 --- a/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php +++ b/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php @@ -1568,6 +1568,6 @@ private function lopen() { $log_file_default = '/tmp/logfile.txt'; $lfile = $this->log_file ? $this->log_file : $log_file_default; - $this->fp = fopen($lfile, 'a') or exit("Can't open $lfile!"); + $this->fp = fopen($lfile, 'a'); } }