Skip to content

Commit 6fa6cfa

Browse files
committed
Fix cs
1 parent d844b98 commit 6fa6cfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Subscription/ThrowableToErrorContextTransformer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use function is_resource;
2222
use function mb_strlen;
2323
use function mb_substr;
24+
use function str_replace;
2425

2526
/**
2627
* @psalm-import-type Context from SubscriptionError
@@ -70,7 +71,7 @@ private static function transformThrowable(Throwable $error): array
7071
*/
7172
private static function transformTrace(array $trace): array
7273
{
73-
if (array_key_exists('class', $trace) && is_string($trace['class'])) {
74+
if (array_key_exists('class', $trace)) {
7475
$trace['class'] = str_replace("\x00", '', $trace['class']);
7576
}
7677

0 commit comments

Comments
 (0)