1414
1515final class PropagationContextTest extends TestCase
1616{
17- public function testFromDefaults ()
17+ public function testFromDefaults (): void
1818 {
1919 $ propagationContext = PropagationContext::fromDefaults ();
2020
@@ -27,7 +27,7 @@ public function testFromDefaults()
2727 /**
2828 * @dataProvider tracingDataProvider
2929 */
30- public function testFromHeaders (string $ sentryTraceHeader , string $ baggageHeader , ?TraceId $ expectedTraceId , ?SpanId $ expectedParentSpanId , ?bool $ expectedDynamicSamplingContextFrozen )
30+ public function testFromHeaders (string $ sentryTraceHeader , string $ baggageHeader , ?TraceId $ expectedTraceId , ?SpanId $ expectedParentSpanId , ?bool $ expectedDynamicSamplingContextFrozen ): void
3131 {
3232 $ propagationContext = PropagationContext::fromHeaders ($ sentryTraceHeader , $ baggageHeader );
3333
@@ -49,7 +49,7 @@ public function testFromHeaders(string $sentryTraceHeader, string $baggageHeader
4949 /**
5050 * @dataProvider tracingDataProvider
5151 */
52- public function testFromEnvironment (string $ sentryTrace , string $ baggage , ?TraceId $ expectedTraceId , ?SpanId $ expectedParentSpanId , ?bool $ expectedDynamicSamplingContextFrozen )
52+ public function testFromEnvironment (string $ sentryTrace , string $ baggage , ?TraceId $ expectedTraceId , ?SpanId $ expectedParentSpanId , ?bool $ expectedDynamicSamplingContextFrozen ): void
5353 {
5454 $ propagationContext = PropagationContext::fromEnvironment ($ sentryTrace , $ baggage );
5555
@@ -95,7 +95,7 @@ public static function tracingDataProvider(): iterable
9595 ];
9696 }
9797
98- public function testToTraceparent ()
98+ public function testToTraceparent (): void
9999 {
100100 $ propagationContext = PropagationContext::fromDefaults ();
101101 $ propagationContext ->setTraceId (new TraceId ('566e3688a61d4bc888951642d6f14a19 ' ));
@@ -104,7 +104,7 @@ public function testToTraceparent()
104104 $ this ->assertSame ('566e3688a61d4bc888951642d6f14a19-566e3688a61d4bc8 ' , $ propagationContext ->toTraceparent ());
105105 }
106106
107- public function testToBaggage ()
107+ public function testToBaggage (): void
108108 {
109109 $ dynamicSamplingContext = DynamicSamplingContext::fromHeader ('sentry-trace_id=566e3688a61d4bc888951642d6f14a19 ' );
110110 $ propagationContext = PropagationContext::fromDefaults ();
@@ -113,7 +113,7 @@ public function testToBaggage()
113113 $ this ->assertSame ('sentry-trace_id=566e3688a61d4bc888951642d6f14a19 ' , $ propagationContext ->toBaggage ());
114114 }
115115
116- public function testGetTraceContext ()
116+ public function testGetTraceContext (): void
117117 {
118118 $ propagationContext = PropagationContext::fromDefaults ();
119119 $ propagationContext ->setTraceId (new TraceId ('566e3688a61d4bc888951642d6f14a19 ' ));
0 commit comments