X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FIP.php;h=37e007665190e02aeeb2a1b9b9fb87d4e94a9e2e;hb=e83ca504052654a2b9decdf6208fec335aa43e7a;hp=8efcd1589b4ff48872e3e1dbb20f78841c11b308;hpb=a93cf8f4eee40a448bcd99b8fe1c32dc80775b6b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/IP.php b/includes/libs/IP.php index 8efcd1589b..37e0076651 100644 --- a/includes/libs/IP.php +++ b/includes/libs/IP.php @@ -125,6 +125,7 @@ class IP { * @return bool True if it is valid */ public static function isValidBlock( $ipRange ) { + wfDeprecated( __METHOD__, '1.30' ); return self::isValidRange( $ipRange ); } @@ -467,7 +468,7 @@ class IP { * to an integer network and a number of bits * * @param string $range IP with CIDR prefix - * @return array(int or string, int) + * @return array [int or string, int] */ public static function parseCIDR( $range ) { if ( self::isIPv6( $range ) ) { @@ -557,7 +558,7 @@ class IP { * * @param string $range * - * @return array(string, int) + * @return array [string, int] */ private static function parseCIDR6( $range ) { # Explode into @@ -598,7 +599,7 @@ class IP { * * @param string $range * - * @return array(string, string) + * @return array [string, string] */ private static function parseRange6( $range ) { # Expand any IPv6 IP