Skip to content

Commit 96b6b2e

Browse files
authored
Merge pull request #157 from Flowpack/dfeyer-patch-1
BUGIFX: Remove useless variable in traverseNodes callback This change solve issue with PHP 7.1 that don't allow it.
2 parents 1811f71 + 2f49186 commit 96b6b2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Service/IndexWorkspaceTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected function indexWorkspaceWithDimensions($workspaceName, array $dimension
7171
$rootNode = $context->getRootNode();
7272
$indexedNodes = 0;
7373

74-
$traverseNodes = function (NodeInterface $currentNode, &$indexedNodes) use ($limit, &$indexedNodes, &$traverseNodes) {
74+
$traverseNodes = function (NodeInterface $currentNode, &$indexedNodes) use ($limit, &$traverseNodes) {
7575
if ($limit !== null && $indexedNodes > $limit) {
7676
return;
7777
}

0 commit comments

Comments
 (0)