diff --git a/verify.php b/verify.php index 46ae271..4d72e02 100644 --- a/verify.php +++ b/verify.php @@ -22,7 +22,7 @@ class verify * Return true or false * @param string $val The IP to test */ - public function staticIs_ip ($val) + public static function staticIs_ip ($val) { if (filter_var ($val, FILTER_VALIDATE_IP)) return true; @@ -42,7 +42,7 @@ class verify * Return true or false * @param string $val The IPv4 to test */ - public function staticIs_ipv4 ($val) + public static function staticIs_ipv4 ($val) { if (filter_var ($val, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) return true; @@ -240,7 +240,7 @@ class verify * @param string $val The string to test * @param string $allowedChars The allowed chars */ - public function staticIsAllowedChars ($val, $allowedChars) + public static function staticIsAllowedChars ($val, $allowedChars) { preg_match ('/^['.$allowedChars.']+/u', $val, $matches); if (isset ($matches[0]) &&