Skip to content

Commit 5dc4bf0

Browse files
Merge branch '6.0' into 6.1
* 6.0: CS fixes Bump Symfony version to 6.0.11 Update VERSION for 6.0.10 Update CHANGELOG for 6.0.10 Bump Symfony version to 5.4.11 Update VERSION for 5.4.10 Update CHANGELOG for 5.4.10 Bump Symfony version to 4.4.44 Update VERSION for 4.4.43 Update CONTRIBUTORS for 4.4.43 Update CHANGELOG for 4.4.43
2 parents ea1af6c + 308f6f3 commit 5dc4bf0

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

CurlHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ private function findConstantName(int $opt): ?string
449449
private function validateExtraCurlOptions(array $options): void
450450
{
451451
$curloptsToConfig = [
452-
//options used in CurlHttpClient
452+
// options used in CurlHttpClient
453453
\CURLOPT_HTTPAUTH => 'auth_ntlm',
454454
\CURLOPT_USERPWD => 'auth_ntlm',
455455
\CURLOPT_RESOLVE => 'resolve',
@@ -477,7 +477,7 @@ private function validateExtraCurlOptions(array $options): void
477477
\CURLOPT_CERTINFO => 'capture_peer_cert_chain',
478478
\CURLOPT_USERAGENT => 'normalized_headers',
479479
\CURLOPT_REFERER => 'headers',
480-
//options used in CurlResponse
480+
// options used in CurlResponse
481481
\CURLOPT_NOPROGRESS => 'on_progress',
482482
\CURLOPT_PROGRESSFUNCTION => 'on_progress',
483483
];

Exception/HttpExceptionTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(ResponseInterface $response)
6161
$separator = isset($body['hydra:title'], $body['hydra:description']) ? "\n\n" : '';
6262
$message = ($body['hydra:title'] ?? '').$separator.($body['hydra:description'] ?? '');
6363
} elseif ((isset($body['title']) || isset($body['detail']))
64-
&& (is_scalar($body['title'] ?? '') && is_scalar($body['detail'] ?? ''))) {
64+
&& (\is_scalar($body['title'] ?? '') && \is_scalar($body['detail'] ?? ''))) {
6565
// see RFC 7807 and https://jsonapi.org/format/#error-objects
6666
$separator = isset($body['title'], $body['detail']) ? "\n\n" : '';
6767
$message = ($body['title'] ?? '').$separator.($body['detail'] ?? '');

HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function create(array $defaultOptions = [], int $maxHostConnection
5050
}
5151

5252
if (\extension_loaded('curl')) {
53-
if ('\\' !== \DIRECTORY_SEPARATOR || isset($defaultOptions['cafile']) || isset($defaultOptions['capath']) || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
53+
if ('\\' !== \DIRECTORY_SEPARATOR || isset($defaultOptions['cafile']) || isset($defaultOptions['capath']) || \ini_get('curl.cainfo') || \ini_get('openssl.cafile') || \ini_get('openssl.capath')) {
5454
return new CurlHttpClient($defaultOptions, $maxHostConnections, $maxPendingPushes);
5555
}
5656

HttpClientTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private static function prepareRequest(?string $method, ?string $url, array $opt
175175

176176
// Finalize normalization of options
177177
$options['http_version'] = (string) ($options['http_version'] ?? '') ?: null;
178-
if (0 > $options['timeout'] = (float) ($options['timeout'] ?? ini_get('default_socket_timeout'))) {
178+
if (0 > $options['timeout'] = (float) ($options['timeout'] ?? \ini_get('default_socket_timeout'))) {
179179
$options['timeout'] = 172800.0; // 2 days
180180
}
181181

Tests/DataCollector/HttpClientDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public function __toString(): string
324324
'foo' => [
325325
'bar' => 'baz',
326326
'qux' => [1.10, 1.0],
327-
'fred' => ['<foo>',"'bar'",'"baz"','&blong&'],
327+
'fred' => ['<foo>', "'bar'", '"baz"', '&blong&'],
328328
],
329329
],
330330
],

Tests/HttpClientTestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Symfony\Contracts\HttpClient\Test\HttpClientTestCase as BaseHttpClientTestCase;
2424
use Symfony\Contracts\HttpClient\Test\TestHttpServer;
2525

26-
2726
/*
2827
Tests for HTTP2 Push need a recent version of both PHP and curl. This docker command should run them:
2928
docker run -it --rm -v $(pwd):/app -v /path/to/vulcain:/usr/local/bin/vulcain -w /app php:7.3-alpine ./phpunit src/Symfony/Component/HttpClient --filter Push

0 commit comments

Comments
 (0)