Skip to content

Commit 1691f0d

Browse files
committed
test fix
1 parent 0167153 commit 1691f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/HTTP/PhpEnvironment/RemoteAddress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ function (string $ip) {
104104
return !in_array(trim($ip), $this->trustedProxies, true);
105105
}
106106
);
107-
$remoteAddress = trim(array_pop($ipList));
107+
$remoteAddress = trim((string) array_pop($ipList));
108108
} else {
109-
$remoteAddress = trim(reset($ipList));
109+
$remoteAddress = trim((string) reset($ipList));
110110
}
111111

112112
return $remoteAddress ?: null;

0 commit comments

Comments
 (0)