$args = [ $args ];
}
- $value = call_user_func_array( $computeFunction, $args );
+ $value = $computeFunction( ...$args );
if ( $this->cacheEnabled ) {
if ( is_null( $key ) ) {
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 ) );
}
/**