X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fcache%2FCacheHelper.php;h=6c6b18473547f0adccdb6908664695822c2e8fea;hp=b2a91c297443b70e4f0f8d66bd4f8457acbd9473;hb=1facc21e49541fe48945ad9a1e9486bfff32c3de;hpb=7793c8acc6d21c451cd5737fd6b98b1a7d9a5e00 diff --git a/includes/cache/CacheHelper.php b/includes/cache/CacheHelper.php index b2a91c2974..6c6b184735 100644 --- a/includes/cache/CacheHelper.php +++ b/includes/cache/CacheHelper.php @@ -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( ...array_values( $this->cacheKey ) ); } /**