From 765832f5971ed0d99846a1467b36dfcef0bc7ba0 Mon Sep 17 00:00:00 2001 From: Michi Hoffmann Date: Mon, 16 Dec 2024 17:10:05 +0100 Subject: [PATCH] Substitute E_STRICT (#963) --- src/Sentry/Laravel/Console/TestCommand.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Sentry/Laravel/Console/TestCommand.php b/src/Sentry/Laravel/Console/TestCommand.php index 12015363..4446d561 100644 --- a/src/Sentry/Laravel/Console/TestCommand.php +++ b/src/Sentry/Laravel/Console/TestCommand.php @@ -42,8 +42,11 @@ public function handle(): int return 1; } - // Maximize error reporting - $old_error_reporting = error_reporting(E_ALL | E_STRICT); + /** + * Maximize error reporting. + * 2048 is \E_STRICT which has been deprecated in PHP 8.4 + */ + $old_error_reporting = error_reporting(E_ALL | 2048); $dsn = $this->option('dsn');