We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52ac433 commit 2c61091Copy full SHA for 2c61091
1 file changed
system/HTTP/RequestTrait.php
@@ -44,7 +44,7 @@ trait RequestTrait
44
/**
45
* Gets the user's IP address.
46
*
47
- * @return string IP address if it can be detected, or empty string.
+ * @return string IP address if it can be detected.
48
* If the IP address is not a valid IP address,
49
* then will return '0.0.0.0'.
50
*/
@@ -156,7 +156,7 @@ public function getIPAddress(): string
156
return $this->ipAddress = '0.0.0.0';
157
}
158
159
- return empty($this->ipAddress) ? '' : $this->ipAddress;
+ return $this->ipAddress;
160
161
162
0 commit comments