dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure to not unpack an associative array into parameter list
[lhc/web/wiklou.git]
/
includes
/
cache
/
CacheHelper.php
diff --git
a/includes/cache/CacheHelper.php
b/includes/cache/CacheHelper.php
index
b2a91c2
..
6c6b184
100644
(file)
--- a/
includes/cache/CacheHelper.php
+++ b/
includes/cache/CacheHelper.php
@@
-294,7
+294,7
@@
class CacheHelper implements ICacheHelper {
$args = [ $args ];
}
$args = [ $args ];
}
- $value =
call_user_func_array( $computeFunction,
$args );
+ $value =
$computeFunction( ...
$args );
if ( $this->cacheEnabled ) {
if ( is_null( $key ) ) {
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.' );
}
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 )
);
}
/**
}
/**