From df3fb5b12f3208814819d1ed0bfd68ece9048a30 Mon Sep 17 00:00:00 2001 From: Natan Felles Date: Fri, 22 Nov 2024 15:48:51 -0300 Subject: [PATCH 1/2] Remove deprecated constant E_STRICT --- src/ExceptionHandler.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ExceptionHandler.php b/src/ExceptionHandler.php index c434223..0399981 100644 --- a/src/ExceptionHandler.php +++ b/src/ExceptionHandler.php @@ -286,7 +286,6 @@ public function errorHandler( \E_USER_ERROR => 'User Error', \E_USER_WARNING => 'User Warning', \E_USER_NOTICE => 'User Notice', - \E_STRICT => 'Strict', \E_RECOVERABLE_ERROR => 'Recoverable Error', \E_DEPRECATED => 'Deprecated', \E_USER_DEPRECATED => 'User Deprecated', From bb4d37f5847285d689a05a70190f5d243c300cd6 Mon Sep 17 00:00:00 2001 From: Natan Felles Date: Thu, 5 Dec 2024 18:02:51 -0300 Subject: [PATCH 2/2] Passing E_USER_ERROR to trigger_error() is deprecated since 8.4 --- tests/ExceptionHandlerTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/ExceptionHandlerTest.php b/tests/ExceptionHandlerTest.php index 90ad3a0..297e048 100644 --- a/tests/ExceptionHandlerTest.php +++ b/tests/ExceptionHandlerTest.php @@ -237,7 +237,6 @@ public static function errorProvider() : array return [ [\E_USER_WARNING, 'User Warning'], [\E_USER_DEPRECATED, 'User Deprecated'], - [\E_USER_ERROR, 'User Error'], [\E_USER_NOTICE, 'User Notice'], ]; }