X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=51fe1671d41ed5aed0097b17b8a1beee6652d61c;hb=0dddebc82db2d4046167b2c6a02f21cb8e68405d;hp=a74060c7154e2bf19dd055643b3209a12b088ae7;hpb=c4e35c216d4036cc7f19e499e214278d9572da52;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index a74060c715..51fe1671d4 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -225,7 +225,7 @@ function wfMergeErrorArrays( ...$args ) { * * @param array $array The array. * @param array $insert The array to insert. - * @param mixed $after The key to insert after + * @param mixed $after The key to insert after. Callers need to make sure the key is set. * @return array */ function wfArrayInsertAfter( array $array, array $insert, $after ) { @@ -3123,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; } /**