Skip to content

Commit

Permalink
Merge pull request #1639 from Loscillo/Loscillo-patch-1
Browse files Browse the repository at this point in the history
Fix incorrect syntax for arrays in PHP 5.3
  • Loading branch information
l3pp4rd authored Jul 25, 2016
2 parents c453c7d + 644fd4d commit a5a5ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Gedmo/Tree/Entity/Repository/ClosureTreeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public function verify()
$nodeIdField = $nodeMeta->getSingleIdentifierFieldName();
$config = $this->listener->getConfiguration($this->_em, $nodeMeta->name);
$closureMeta = $this->_em->getClassMetadata($config['closure']);
$errors = [];
$errors = array();

$q = $this->_em->createQuery("
SELECT COUNT(node)
Expand Down Expand Up @@ -486,7 +486,7 @@ public function rebuildClosure()
$conn->beginTransaction();
foreach ($entries as $entry) {
$conn->insert($closureTable, array_combine(
[$ancestorColumnName, $descendantColumnName, $depthColumnName],
array($ancestorColumnName, $descendantColumnName, $depthColumnName),
$entry
));
}
Expand Down

0 comments on commit a5a5ee1

Please sign in to comment.