Skip to content

Commit fbc46bb

Browse files
kenjisMGatner
authored andcommitted
docs: add doc comment
1 parent 374486a commit fbc46bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/HTTP/RequestTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ trait RequestTrait
4444
/**
4545
* Gets the user's IP address.
4646
*
47-
* @return string IP address
47+
* @return string IP address if it can be detected, or empty string.
48+
* If the IP address is not a valid IP address,
49+
* then will return '0.0.0.0'.
4850
*/
4951
public function getIPAddress(): string
5052
{

0 commit comments

Comments
 (0)