Skip to content

Commit fe90558

Browse files
committed
Fix CS
1 parent 9a5fdf1 commit fe90558

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CurlHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function __construct(array $defaultOptions = [], int $maxHostConnections
9090
}
9191

9292
// HTTP/2 push crashes before curl 7.61
93-
if (!\defined('CURLMOPT_PUSHFUNCTION') || 0x073d00 > self::$curlVersion['version_number'] || !(\CURL_VERSION_HTTP2 & self::$curlVersion['features'])) {
93+
if (!\defined('CURLMOPT_PUSHFUNCTION') || 0x073D00 > self::$curlVersion['version_number'] || !(\CURL_VERSION_HTTP2 & self::$curlVersion['features'])) {
9494
return;
9595
}
9696

@@ -185,7 +185,7 @@ public function request(string $method, string $url, array $options = []): Respo
185185
$this->multi->dnsCache->evictions = [];
186186
$port = parse_url($authority, \PHP_URL_PORT) ?: ('http:' === $scheme ? 80 : 443);
187187

188-
if ($resolve && 0x072a00 > self::$curlVersion['version_number']) {
188+
if ($resolve && 0x072A00 > self::$curlVersion['version_number']) {
189189
// DNS cache removals require curl 7.42 or higher
190190
// On lower versions, we have to create a new multi handle
191191
curl_multi_close($this->multi->handle);

Tests/CurlHttpClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private function getVulcainClient(): CurlHttpClient
142142
$this->markTestSkipped('PHP 7.3.0 to 7.3.3 don\'t support HTTP/2 PUSH');
143143
}
144144

145-
if (!\defined('CURLMOPT_PUSHFUNCTION') || 0x073d00 > ($v = curl_version())['version_number'] || !(\CURL_VERSION_HTTP2 & $v['features'])) {
145+
if (!\defined('CURLMOPT_PUSHFUNCTION') || 0x073D00 > ($v = curl_version())['version_number'] || !(\CURL_VERSION_HTTP2 & $v['features'])) {
146146
$this->markTestSkipped('curl <7.61 is used or it is not compiled with support for HTTP/2 PUSH');
147147
}
148148

0 commit comments

Comments
 (0)