Skip to content

Commit 53270f1

Browse files
authored
Cast status to string (#242)
1 parent 87e14e3 commit 53270f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Watchers/ClientRequestWatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private function maybeRecordError(SpanInterface $span, Response $response): void
110110

111111
$span->setStatus(
112112
StatusCode::STATUS_ERROR,
113-
HttpResponse::$statusTexts[$response->status()] ?? $response->status()
113+
HttpResponse::$statusTexts[$response->status()] ?? (string) $response->status()
114114
);
115115
}
116116
}

0 commit comments

Comments
 (0)