Skip to content

Commit ffa7dc9

Browse files
committed
Disable increment_style change
1 parent 1aaff6c commit ffa7dc9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
'@Symfony:risky' => true,
1818
'yoda_style' => false,
1919
'single_line_throw' => false,
20+
'increment_style' => false,
2021
])
2122
->setRiskyAllowed(true)
2223
->setFinder($finder);

src/Http/Transport/CurlTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private static function getHeadersAndContentFromCurlHandle($curlHandle): array
224224
$headerParts = explode("\r\n\r\n", $headerContent, 2); // only split once to mitigate scrapping content if it contains newlines with carriage return
225225

226226
// Loop of response headers. The "count() -1" is to avoid an empty row for the extra line break before the body of the response.
227-
for ($index = 0; $index < \count($headerParts) - 1; ++$index) {
227+
for ($index = 0; $index < \count($headerParts) - 1; $index++) {
228228
foreach (explode("\r\n", $headerParts[$index]) as $i => $line) {
229229
if (0 === $i) {
230230
// HTTP code

0 commit comments

Comments
 (0)