Avoid IDEA warning about $keys being both a parameter and loop variable
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 8 Jan 2017 00:10:23 +0000 (16:10 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 8 Jan 2017 00:10:23 +0000 (16:10 -0800)
Change-Id: Id562053a71f135fa863cb88b5f081982c01575cf

includes/libs/objectcache/WANObjectCache.php

index 8d3c6d9..01a9149 100644 (file)
@@ -275,8 +275,8 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface {
                $checkKeysForAll = [];
                $checkKeysByKey = [];
                $checkKeysFlat = [];
-               foreach ( $checkKeys as $i => $keys ) {
-                       $prefixed = self::prefixCacheKeys( (array)$keys, self::TIME_KEY_PREFIX );
+               foreach ( $checkKeys as $i => $checkKeyGroup ) {
+                       $prefixed = self::prefixCacheKeys( (array)$checkKeyGroup, self::TIME_KEY_PREFIX );
                        $checkKeysFlat = array_merge( $checkKeysFlat, $prefixed );
                        // Is this check keys for a specific cache key, or for all keys being fetched?
                        if ( is_int( $i ) ) {