Make sure to not unpack an associative array into parameter list
authorMax Semenik <maxsem.wiki@gmail.com>
Sat, 28 Jul 2018 20:59:22 +0000 (13:59 -0700)
committerReedy <reedy@wikimedia.org>
Sat, 28 Jul 2018 23:52:57 +0000 (23:52 +0000)
Bug: T200394
Change-Id: I9c28e1cadeb76275d24eb7725f1578bf5ba43ad0

includes/cache/CacheHelper.php

index 9db8166..6c6b184 100644 (file)
@@ -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 wfMemcKey( ...$this->cacheKey );
+               return wfMemcKey( ...array_values( $this->cacheKey ) );
        }
 
        /**
        }
 
        /**