diff --git a/src/Subscription/ThrowableToErrorContextTransformer.php b/src/Subscription/ThrowableToErrorContextTransformer.php index 96f1571b..f9b2f5e1 100644 --- a/src/Subscription/ThrowableToErrorContextTransformer.php +++ b/src/Subscription/ThrowableToErrorContextTransformer.php @@ -56,6 +56,10 @@ private static function transformThrowable(Throwable $error): array */ private static function transformTrace(array $trace): array { + if (array_key_exists('class', $trace) && is_string($trace['class'])) { + $trace['class'] = str_replace("\x00", '', $trace['class']); + } + if (!array_key_exists('args', $trace)) { return $trace; }