Skip to content

Commit

Permalink
Merge pull request #3626 from michalsn/fix/cast_null
Browse files Browse the repository at this point in the history
Cast null value to string
  • Loading branch information
michalsn authored Sep 10, 2020
2 parents 41571e1 + 7d23fb3 commit f9613ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function getIPAddress(): string
*/
public function isValidIP(string $ip = null, string $which = null): bool
{
switch (strtolower($which))
switch (strtolower((string) $which))
{
case 'ipv4':
$which = FILTER_FLAG_IPV4;
Expand Down

0 comments on commit f9613ad

Please sign in to comment.