Skip to content

Commit c5e1d48

Browse files
committed
Fix stan
1 parent 14883aa commit c5e1d48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/FilebeatContextProcessor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,13 @@ public static function phpExtras(): array
7777
];
7878
}
7979

80+
/**
81+
* @return array<array-key, mixed>
82+
*/
8083
public function traceExtras(): array
8184
{
8285
if (class_exists(\OpenTelemetry\Context\Context::class)) {
83-
$context ??= \OpenTelemetry\Context\Context::getCurrent();
86+
$context = \OpenTelemetry\Context\Context::getCurrent();
8487
$spanContext = \OpenTelemetry\API\Trace\Span::fromContext($context)->getContext();
8588

8689
return [
@@ -100,5 +103,6 @@ public function traceExtras(): array
100103
];
101104
}
102105

106+
return [];
103107
}
104108
}

0 commit comments

Comments
 (0)