We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 052dbe9 commit b3d5e1bCopy full SHA for b3d5e1b
lib/Mage/HTTP/Client/Curl.php
@@ -437,7 +437,7 @@ protected function parseHeaders($ch, $data): int
437
$name = $value = '';
438
$out = explode(': ', trim($data), 2);
439
if (count($out) === 2) {
440
- [$name, $value] = $out;
+ list($name, $value) = $out;
441
}
442
443
if ('' !== $name) {
@@ -462,7 +462,7 @@ protected function parseHeaders($ch, $data): int
462
*
463
* @throws Exception
464
*/
465
- protected function validateHttpVersion(array $line): void
+ protected function validateHttpVersion(array $line)
466
{
467
if ($line[0] === 'HTTP/1.1') {
468
if (count($line) !== 3) {
0 commit comments