Remove unused use in anonymous function
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 09:13:38 +0000 (10:13 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 09:13:38 +0000 (10:13 +0100)
Found by PHPStan.

Change-Id: Id2dd9996fd4d78da930ee0cc802bb07b66a5f084

includes/Revision/RevisionStore.php

index 6d3b72c..fc1f6df 100644 (file)
@@ -1624,7 +1624,7 @@ class RevisionStore
                        $row->role_name = $this->slotRoleStore->getName( (int)$row->slot_role_id );
                        $row->model_name = $this->contentModelStore->getName( (int)$row->content_model );
 
-                       $contentCallback = function ( SlotRecord $slot ) use ( $queryFlags, $row ) {
+                       $contentCallback = function ( SlotRecord $slot ) use ( $queryFlags ) {
                                return $this->loadSlotContent( $slot, null, null, null, $queryFlags );
                        };