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 0167153 commit 1691f0dCopy full SHA for 1691f0d
lib/internal/Magento/Framework/HTTP/PhpEnvironment/RemoteAddress.php
@@ -104,9 +104,9 @@ function (string $ip) {
104
return !in_array(trim($ip), $this->trustedProxies, true);
105
}
106
);
107
- $remoteAddress = trim(array_pop($ipList));
+ $remoteAddress = trim((string) array_pop($ipList));
108
} else {
109
- $remoteAddress = trim(reset($ipList));
+ $remoteAddress = trim((string) reset($ipList));
110
111
112
return $remoteAddress ?: null;
0 commit comments