Skip to content

Commit 90c870b

Browse files
authored
fixes #1600 (#1603)
1 parent 939d3a2 commit 90c870b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Common/Export/Http/PsrTransportFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Http\Discovery\Psr18ClientDiscovery;
1111
use InvalidArgumentException;
1212
use OpenTelemetry\SDK\Common\Export\TransportFactoryInterface;
13+
use OpenTelemetry\SDK\Common\Export\TransportInterface;
1314
use OpenTelemetry\SDK\Common\Http\Psr\Client\Discovery;
1415
use Psr\Http\Client\ClientInterface;
1516
use Psr\Http\Message\RequestFactoryInterface;
@@ -38,7 +39,7 @@ public function create(
3839
?string $cacert = null,
3940
?string $cert = null,
4041
?string $key = null,
41-
): PsrTransport {
42+
): TransportInterface {
4243
if (!filter_var($endpoint, FILTER_VALIDATE_URL)) {
4344
throw new InvalidArgumentException(sprintf('Invalid endpoint url "%s"', $endpoint));
4445
}

0 commit comments

Comments
 (0)