Skip to content

Commit 0cba875

Browse files
authored
fix implicit null usage (#1362)
php8.4 deprecates implicit null (now checked by phan)
1 parent da3572b commit 0cba875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Propagation/MultiTextMapPropagator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public function fields(): array
3232
return $this->fields;
3333
}
3434

35-
public function inject(&$carrier, PropagationSetterInterface $setter = null, ContextInterface $context = null): void
35+
public function inject(&$carrier, ?PropagationSetterInterface $setter = null, ?ContextInterface $context = null): void
3636
{
3737
foreach ($this->propagators as $propagator) {
3838
$propagator->inject($carrier, $setter, $context);
3939
}
4040
}
4141

42-
public function extract($carrier, PropagationGetterInterface $getter = null, ContextInterface $context = null): ContextInterface
42+
public function extract($carrier, ?PropagationGetterInterface $getter = null, ?ContextInterface $context = null): ContextInterface
4343
{
4444
$context ??= Context::getCurrent();
4545

0 commit comments

Comments
 (0)