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');