X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=bd989328f4e3a9c304e7619ac65ab571837c4cc5;hb=4e9741a71a96bcbe3ed9ce249bb4b43b3950c910;hp=9f29114b7b4a5afbbea918f193363fee028b24cc;hpb=be33fee8260d8aae2aa58e485463b25064f94ecb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 9f29114b7b..bd989328f4 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -148,6 +148,7 @@ function wfArrayDiff2_cmp( $a, $b ) { * @return array */ function wfArrayFilter( array $arr, callable $callback ) { + wfDeprecated( __FUNCTION__, '1.32' ); return array_filter( $arr, $callback, ARRAY_FILTER_USE_BOTH ); } @@ -160,6 +161,7 @@ function wfArrayFilter( array $arr, callable $callback ) { * @return array */ function wfArrayFilterByKey( array $arr, callable $callback ) { + wfDeprecated( __FUNCTION__, '1.32' ); return array_filter( $arr, $callback, ARRAY_FILTER_USE_KEY ); } @@ -3121,7 +3123,7 @@ function wfIsBadImage( $name, $contextTitle = false, $blacklist = null ) { function wfCanIPUseHTTPS( $ip ) { $canDo = true; Hooks::run( 'CanIPUseHTTPS', [ $ip, &$canDo ] ); - return !!$canDo; + return (bool)$canDo; } /**