X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fcache%2FCacheHelper.php;h=9db8166d502f0c1f0d7d3e625cc09adc27a2924d;hb=55aab97bb4b507911e24995ae870b78f86c17557;hp=e77e2515869545decbbc0410cc47529c6086e517;hpb=11ee7f78da9776db26098642a151a288f98bea14;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/CacheHelper.php b/includes/cache/CacheHelper.php index e77e251586..9db8166d50 100644 --- a/includes/cache/CacheHelper.php +++ b/includes/cache/CacheHelper.php @@ -18,7 +18,7 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GNU GPL v2 or later + * @license GPL-2.0-or-later * @author Jeroen De Dauw < jeroendedauw@gmail.com > */ @@ -294,7 +294,7 @@ class CacheHelper implements ICacheHelper { $args = [ $args ]; } - $value = call_user_func_array( $computeFunction, $args ); + $value = $computeFunction( ...$args ); if ( $this->cacheEnabled ) { if ( is_null( $key ) ) { @@ -350,7 +350,7 @@ class CacheHelper implements ICacheHelper { throw new MWException( 'No cache key set, so cannot obtain or save the CacheHelper values.' ); } - return call_user_func_array( 'wfMemcKey', $this->cacheKey ); + return wfMemcKey( ...$this->cacheKey ); } /**