Skip to content

Commit

Permalink
php 8.1
Browse files Browse the repository at this point in the history
shutdown - filter_var(): Passing null to parameter fuel#3 ($options) of type array|int is deprecated in /core/classes/input.php on 122
$options - cannot be null
  • Loading branch information
hotlabs authored Sep 29, 2021
1 parent 8214790 commit b63abaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/input.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static function real_ip($default = '0.0.0.0', $exclude_reserved = false)
});

$ips = array_filter($ips, function($ip) use($exclude_reserved) {
return filter_var($ip, FILTER_VALIDATE_IP, $exclude_reserved ? FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE : null);
return filter_var($ip, FILTER_VALIDATE_IP, $exclude_reserved ? FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE : false);
});

if ($ips)
Expand Down

0 comments on commit b63abaa

Please sign in to comment.