function CurlClient::create
@phan-suppress PhanUndeclaredClassReference,PhanTypeMismatchReturn,PhanUndeclaredClassMethod @psalm-suppress UndefinedClass,InvalidReturnType,InvalidReturnStatement
Overrides DiscoveryInterface::create
File
-
vendor/
open-telemetry/ sdk/ Common/ Http/ Psr/ Client/ Discovery/ CurlClient.php, line 24
Class
Namespace
OpenTelemetry\SDK\Common\Http\Psr\Client\DiscoveryCode
public function create(mixed $options) : ClientInterface {
$options = [
\CURLOPT_TIMEOUT => $options['timeout'] ?? null,
];
/** @phpstan-ignore-next-line */
return new Client(options: array_filter($options));
}