From 2f377b354a4dad4f6dd470dcc1268a2c06d89668 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 29 Dec 2024 02:05:00 +0700 Subject: [PATCH] php 8.4 compatible --- src/Compat/Logger.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/Compat/Logger.php diff --git a/src/Compat/Logger.php b/src/Compat/Logger.php new file mode 100644 index 00000000..56c11d97 --- /dev/null +++ b/src/Compat/Logger.php @@ -0,0 +1,27 @@ + self::NOTICE, + E_USER_NOTICE => self::NOTICE, + E_WARNING => self::WARN, + E_CORE_WARNING => self::WARN, + E_USER_WARNING => self::WARN, + E_ERROR => self::ERR, + E_USER_ERROR => self::ERR, + E_CORE_ERROR => self::ERR, + E_RECOVERABLE_ERROR => self::ERR, + E_PARSE => self::ERR, + E_COMPILE_ERROR => self::ERR, + E_COMPILE_WARNING => self::ERR, + // E_STRICT is deprecated in php 8.4 + 2048 => self::DEBUG, + E_DEPRECATED => self::DEBUG, + E_USER_DEPRECATED => self::DEBUG, + ]; +} \ No newline at end of file