We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c065ad2 commit 1962b36Copy full SHA for 1962b36
1 file changed
src/Common/Middleware/HttpClientOptions.php
@@ -9,16 +9,18 @@ final class HttpClientOptions
9
public function __construct(
10
public readonly ?int $timeout = null,
11
public readonly ?int $connectTimeout = null,
12
+ public readonly ?bool $verifySsl = null,
13
) {}
14
15
/**
- * @return array{timeout?: int, connect_timeout?: int}
16
+ * @return array{timeout?: int, connect_timeout?: int, verify?: bool}
17
*/
18
public function toGuzzleHttpClientConfig(): array
19
{
20
return array_filter([
21
'timeout' => $this->timeout,
22
'connect_timeout' => $this->connectTimeout,
23
+ 'verify' => $this->verifySsl,
24
], fn($value) => $value !== null);
25
}
26
0 commit comments