Skip to content

Commit 8f73325

Browse files
[5.3] cs fixes
1 parent 89aac61 commit 8f73325

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function create(array $defaultOptions = [], int $maxHostConnection
4444
$curlVersion = $curlVersion ?? curl_version();
4545

4646
// HTTP/2 push crashes before curl 7.61
47-
if (0x073d00 > $curlVersion['version_number'] || !(\CURL_VERSION_HTTP2 & $curlVersion['features'])) {
47+
if (0x073D00 > $curlVersion['version_number'] || !(\CURL_VERSION_HTTP2 & $curlVersion['features'])) {
4848
return new AmpHttpClient($defaultOptions, null, $maxHostConnections, $maxPendingPushes);
4949
}
5050
}

Response/AmpResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ private static function followRedirects(Request $originRequest, AmpClientState $
330330
// Discard body of redirects
331331
while (null !== yield $response->getBody()->read()) {
332332
}
333-
} catch (HttpException | StreamException $e) {
333+
} catch (HttpException|StreamException $e) {
334334
// Ignore streaming errors on previous responses
335335
}
336336

Tests/CurlHttpClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function getHttpClient(string $testCase): HttpClientInterface
2727
$this->markTestSkipped('PHP 7.3.0 to 7.3.3 don\'t support HTTP/2 PUSH');
2828
}
2929

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

0 commit comments

Comments
 (0)