Skip to content

Commit 9948a01

Browse files
authored
fix 8.4 deprecation in traceresponse propagator (open-telemetry#321)
1 parent 4e6037a commit 9948a01

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Propagation/TraceResponse/composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
"phpunit/phpunit": "^9.5",
2828
"vimeo/psalm": "^5.0",
2929
"symfony/http-client": "^5.4|^6.0",
30-
"guzzlehttp/promises": "^1.5",
30+
"guzzlehttp/promises": "^2",
3131
"php-http/message-factory": "^1.0",
3232
"nyholm/psr7": "^1.5"
3333
},
3434
"config": {
3535
"allow-plugins": {
36-
"php-http/discovery": true
36+
"php-http/discovery": true,
37+
"tbachert/spi": true
3738
}
3839
}
3940
}

src/Propagation/TraceResponse/src/ResponsePropagator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ interface ResponsePropagator
2020
*
2121
* @param mixed $carrier
2222
*/
23-
public function inject(&$carrier, PropagationSetterInterface $setter = null, ContextInterface $context = null): void;
23+
public function inject(&$carrier, ?PropagationSetterInterface $setter = null, ?ContextInterface $context = null): void;
2424
}

0 commit comments

Comments
 (0)