Skip to content

Commit b3d5e1b

Browse files
authored
Make PHP 7.0 compatible
Remove list shortcut and void return type
1 parent 052dbe9 commit b3d5e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Mage/HTTP/Client/Curl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ protected function parseHeaders($ch, $data): int
437437
$name = $value = '';
438438
$out = explode(': ', trim($data), 2);
439439
if (count($out) === 2) {
440-
[$name, $value] = $out;
440+
list($name, $value) = $out;
441441
}
442442

443443
if ('' !== $name) {
@@ -462,7 +462,7 @@ protected function parseHeaders($ch, $data): int
462462
*
463463
* @throws Exception
464464
*/
465-
protected function validateHttpVersion(array $line): void
465+
protected function validateHttpVersion(array $line)
466466
{
467467
if ($line[0] === 'HTTP/1.1') {
468468
if (count($line) !== 3) {

0 commit comments

Comments
 (0)