Skip to content

Commit 1c71c0e

Browse files
authored
fixing implicit nullable deprecations, bump GH actions (#1340)
* implicit nullable parameters are deprecated in 8.4, so make them explicit * update github actions versions
1 parent df4d667 commit 1c71c0e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

JaegerBaggagePropagator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function fields(): array
3939
}
4040

4141
/** {@inheritdoc} */
42-
public function inject(&$carrier, PropagationSetterInterface $setter = null, ContextInterface $context = null): void
42+
public function inject(&$carrier, ?PropagationSetterInterface $setter = null, ?ContextInterface $context = null): void
4343
{
4444
$setter ??= ArrayAccessGetterSetter::getInstance();
4545
$context ??= Context::getCurrent();
@@ -59,7 +59,7 @@ public function inject(&$carrier, PropagationSetterInterface $setter = null, Con
5959
}
6060

6161
/** {@inheritdoc} */
62-
public function extract($carrier, PropagationGetterInterface $getter = null, ContextInterface $context = null): ContextInterface
62+
public function extract($carrier, ?PropagationGetterInterface $getter = null, ?ContextInterface $context = null): ContextInterface
6363
{
6464
$getter ??= ArrayAccessGetterSetter::getInstance();
6565
$context ??= Context::getCurrent();

JaegerPropagator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function fields(): array
5151
}
5252

5353
/** {@inheritdoc} */
54-
public function inject(&$carrier, PropagationSetterInterface $setter = null, ContextInterface $context = null): void
54+
public function inject(&$carrier, ?PropagationSetterInterface $setter = null, ?ContextInterface $context = null): void
5555
{
5656
$setter ??= ArrayAccessGetterSetter::getInstance();
5757
$context ??= Context::getCurrent();
@@ -75,7 +75,7 @@ public function inject(&$carrier, PropagationSetterInterface $setter = null, Con
7575
}
7676

7777
/** {@inheritdoc} */
78-
public function extract($carrier, PropagationGetterInterface $getter = null, ContextInterface $context = null): ContextInterface
78+
public function extract($carrier, ?PropagationGetterInterface $getter = null, ?ContextInterface $context = null): ContextInterface
7979
{
8080
$getter ??= ArrayAccessGetterSetter::getInstance();
8181
$context ??= Context::getCurrent();

0 commit comments

Comments
 (0)