IP: Hard deprecate `IP::isValidBlock()` in favor of `::isValidRange()`
authorDerick Alangi <alangiderick@gmail.com>
Thu, 9 May 2019 14:31:26 +0000 (15:31 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Thu, 9 May 2019 17:53:04 +0000 (18:53 +0100)
`IP::isValidRange()` replaces deprecated `IP::isValidBlock()` and after
Ic00f760a0a214f is landed, no usage will remain so hard deprecating it
in preparation for removal in after the 1.34 cut.

Depends-On: Ic00f760a0a214faba7a71dd088da1dc25ecb796c
Change-Id: I6943e45c06dbb954e2156dc4e796ddf3553b7a76

includes/libs/IP.php

index da525e7..37e0076 100644 (file)
@@ -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 );
        }