Skip to content

Commit

Permalink
fixing implicit nullable deprecations, bump GH actions (#1340)
Browse files Browse the repository at this point in the history
* implicit nullable parameters are deprecated in 8.4, so make them explicit
* update github actions versions
  • Loading branch information
brettmc authored Jun 28, 2024
1 parent df4d667 commit 1c71c0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions JaegerBaggagePropagator.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function fields(): array
}

/** {@inheritdoc} */
public function inject(&$carrier, PropagationSetterInterface $setter = null, ContextInterface $context = null): void
public function inject(&$carrier, ?PropagationSetterInterface $setter = null, ?ContextInterface $context = null): void
{
$setter ??= ArrayAccessGetterSetter::getInstance();
$context ??= Context::getCurrent();
Expand All @@ -59,7 +59,7 @@ public function inject(&$carrier, PropagationSetterInterface $setter = null, Con
}

/** {@inheritdoc} */
public function extract($carrier, PropagationGetterInterface $getter = null, ContextInterface $context = null): ContextInterface
public function extract($carrier, ?PropagationGetterInterface $getter = null, ?ContextInterface $context = null): ContextInterface
{
$getter ??= ArrayAccessGetterSetter::getInstance();
$context ??= Context::getCurrent();
Expand Down
4 changes: 2 additions & 2 deletions JaegerPropagator.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function fields(): array
}

/** {@inheritdoc} */
public function inject(&$carrier, PropagationSetterInterface $setter = null, ContextInterface $context = null): void
public function inject(&$carrier, ?PropagationSetterInterface $setter = null, ?ContextInterface $context = null): void
{
$setter ??= ArrayAccessGetterSetter::getInstance();
$context ??= Context::getCurrent();
Expand All @@ -75,7 +75,7 @@ public function inject(&$carrier, PropagationSetterInterface $setter = null, Con
}

/** {@inheritdoc} */
public function extract($carrier, PropagationGetterInterface $getter = null, ContextInterface $context = null): ContextInterface
public function extract($carrier, ?PropagationGetterInterface $getter = null, ?ContextInterface $context = null): ContextInterface
{
$getter ??= ArrayAccessGetterSetter::getInstance();
$context ??= Context::getCurrent();
Expand Down

0 comments on commit 1c71c0e

Please sign in to comment.