From 1d3900a3dbdc7280ec4424bdb13255474dc55b14 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sat, 20 May 2017 18:25:31 +0000 Subject: [PATCH] verify: missing "static" on static methods git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3708 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- verify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]) &&