Fix FileBackendStore IDEA warnings due to var reuse
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 19 Oct 2016 06:10:58 +0000 (23:10 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 19 Oct 2016 06:10:58 +0000 (23:10 -0700)
Change-Id: I1b667fb7e891053c7898a0c247745b4376061590

includes/libs/filebackend/FileBackendStore.php

index b1b7652..bd2ce5d 100644 (file)
@@ -1098,9 +1098,9 @@ abstract class FileBackendStore extends FileBackend {
 
                // Build the list of paths involved
                $paths = [];
-               foreach ( $performOps as $op ) {
-                       $paths = array_merge( $paths, $op->storagePathsRead() );
-                       $paths = array_merge( $paths, $op->storagePathsChanged() );
+               foreach ( $performOps as $performOp ) {
+                       $paths = array_merge( $paths, $performOp->storagePathsRead() );
+                       $paths = array_merge( $paths, $performOp->storagePathsChanged() );
                }
 
                // Enlarge the cache to fit the stat entries of these files