diff --git a/config/sentry.php b/config/sentry.php index b8503b98..4f95db20 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -61,5 +61,5 @@ return [ // @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#traces-sample-rate. 'traces_sample_rate' => env('SENTRY_TRACES_SAMPLE_RATE') === null ? null : (float) env('SENTRY_TRACES_SAMPLE_RATE'), - 'before_send' => ExceptionsHelper::sentryEventHandler(...), + 'before_send' => [ExceptionsHelper::class, 'sentryEventHandler'], ];