Skip to content

Commit f6d5520

Browse files
committed
Fix cs
1 parent fac8d7c commit f6d5520

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Subscription/ThrowableToErrorContextTransformer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use function is_object;
1414
use function is_resource;
1515
use function sprintf;
16+
use function str_replace;
1617

1718
/**
1819
* @psalm-import-type Context from SubscriptionError
@@ -56,7 +57,7 @@ private static function transformThrowable(Throwable $error): array
5657
*/
5758
private static function transformTrace(array $trace): array
5859
{
59-
if (array_key_exists('class', $trace) && is_string($trace['class'])) {
60+
if (array_key_exists('class', $trace)) {
6061
$trace['class'] = str_replace("\x00", '', $trace['class']);
6162
}
6263

0 commit comments

Comments
 (0)