Skip to content

Commit c9e83bb

Browse files
committed
fix: ci
1 parent 3c25d62 commit c9e83bb

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Span/Exporter/Sentry.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,19 +258,19 @@ private function buildEnvelope(Span $span): ?string
258258
return "{$header}\n{$itemHeader}\n{$payload}";
259259
}
260260

261-
/**
262-
* Classify attributes into tags, contexts, and extra based on the classifier.
263-
*
264-
* @param array<string, mixed> $attributes
265-
* @return array{array<string, string>, array<string, mixed>, array<string, mixed>}
266-
*/
267261
private const HANDLED_HTTP_KEYS = [
268262
'http.url',
269263
'http.method',
270264
'http.query',
271265
'http.response.status_code',
272266
];
273267

268+
/**
269+
* Classify attributes into tags, contexts, and extra based on the classifier.
270+
*
271+
* @param array<string, mixed> $attributes
272+
* @return array{array<string, string>, array<string, mixed>, array<string, mixed>}
273+
*/
274274
private function classifyAttributes(array $attributes): array
275275
{
276276
$tags = [];
@@ -279,7 +279,7 @@ private function classifyAttributes(array $attributes): array
279279

280280
foreach ($attributes as $key => $value) {
281281
// Skip internal span attributes
282-
if (str_starts_with($key, 'span.')) {
282+
if (str_starts_with((string) $key, 'span.')) {
283283
continue;
284284
}
285285

0 commit comments

Comments
 (0)