diff --git a/Model/SentryLog.php b/Model/SentryLog.php index e8f1b491143a36c77371ad2c1c8db14046de2e32..ba58f9596c505313dd5d0c75a1cb064b6222167b 100755 --- a/Model/SentryLog.php +++ b/Model/SentryLog.php @@ -99,12 +99,12 @@ class SentryLog { return EventHint::fromArray( [ - 'exception' => ($context['exception'] ?? null) instanceof \Throwable ? $context['exception'] : null, - 'mechanism' => ($context['mechanism'] ?? null) instanceof ExceptionMechanism ? $context['mechanism'] : null, + 'exception' => ($context['exception'] ?? null) instanceof \Throwable ? $context['exception'] : null, + 'mechanism' => ($context['mechanism'] ?? null) instanceof ExceptionMechanism ? $context['mechanism'] : null, 'stacktrace' => ($context['stacktrace'] ?? null) instanceof Stacktrace ? $context['stacktrace'] : null, - 'extra' => array_filter( + 'extra' => array_filter( $context, - fn($key) => !in_array($key, ['exception', 'mechanism', 'stacktrace']), + fn ($key) => !in_array($key, ['exception', 'mechanism', 'stacktrace']), ARRAY_FILTER_USE_KEY ) ?: [], ]