change method signature of \Froxlor\Validate\Validate::validate_ip2

This commit is contained in:
Pascal
2019-10-28 16:58:34 +01:00
parent d76f4108e5
commit 9689afc759
4 changed files with 16 additions and 13 deletions

View File

@@ -114,9 +114,12 @@ class Validate
* @param bool $cidr_as_netmask
* whether to format CIDR nodation to netmask notation
*
* @param bool $throw_exception
* whether to throw an exception on failure
*
* @return string|bool ip address on success, false on failure
*/
public static function validate_ip2($ip, $return_bool = false, $lng = 'invalidip', $allow_localhost = false, $allow_priv = false, $allow_cidr = false, $throw_exception = false, $cidr_as_netmask = false)
public static function validate_ip2($ip, $return_bool = false, $lng = 'invalidip', $allow_localhost = false, $allow_priv = false, $allow_cidr = false, $cidr_as_netmask = false, $throw_exception = false)
{
$cidr = "";
if ($allow_cidr) {