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 3bb0831 commit ec5cb2fCopy full SHA for ec5cb2f
system/HTTP/RequestTrait.php
@@ -66,6 +66,11 @@ public function getIPAddress(): string
66
// @phpstan-ignore-next-line
67
$proxyIPs = $this->proxyIPs ?? config(App::class)->proxyIPs;
68
69
+
70
+ // Workaround for old Config\App file. App::$proxyIPs may be empty string.
71
+ if ($proxyIPs === '') {
72
+ $proxyIPs = [];
73
+ }
74
if (! empty($proxyIPs) && (! is_array($proxyIPs) || is_int(array_key_first($proxyIPs)))) {
75
throw new ConfigException(
76
'You must set an array with Proxy IP address key and HTTP header name value in Config\App::$proxyIPs.'
0 commit comments