From e6c2cc6f62da16a246ad1ed9a833f5581fabafc5 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 23 Feb 2022 12:52:41 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main.php b/src/Main.php index 6477238..cd89e78 100644 --- a/src/Main.php +++ b/src/Main.php @@ -33,6 +33,7 @@ final class Main $error = \preg_replace('/_X(["_])?/', '_%d\1', $error); $error = \preg_replace('/_\d+(["_])?/', '_%d\1', $error); $error = preg_replace('/_X$/', '_%d', $error); + return preg_replace('/_\d+$/', '_%d', $error); } @@ -222,7 +223,7 @@ final class Main { if (PHP_SAPI === 'cli') { $this->cli(); - die; + exit; } \ini_set('log_errors', 1);