From ab51f911640befcbc1dca60a373fc5ea7accc982 Mon Sep 17 00:00:00 2001 From: alegag Date: Fri, 10 Oct 2025 09:34:17 -0400 Subject: [PATCH] PHP 8.4 fix - trigger_error with E_USER_ERROR deprecated - Update AbstractView.php As of PHP 8.4: "Passing E_USER_ERROR as the error_level is now deprecated. Throw an Exception or call exit() instead. " (https://www.php.net/manual/en/function.trigger-error.php) Changed to "E_USER_WARNING" as this is more considered as a warning in reality, and the old behaviour kept the code going, which wouldn't be the case replacing by a "throw". --- src/AbstractView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractView.php b/src/AbstractView.php index 99b9ae9..486d3a2 100644 --- a/src/AbstractView.php +++ b/src/AbstractView.php @@ -105,7 +105,7 @@ public function __toString() __FUNCTION__, $e ), - E_USER_ERROR + E_USER_WARNING ); return ''; }