Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CurlClient.php

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

CurlClient

Namespace

OpenTelemetry\SDK\Common\Http\Psr\Client\Discovery

Code

public function create(mixed $options) : ClientInterface {
    $options = [
        \CURLOPT_TIMEOUT => $options['timeout'] ?? null,
    ];
    
    /** @phpstan-ignore-next-line  */
    return new Client(options: array_filter($options));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal