Skip to content

Commit a5a5ee1

Browse files
authored
Merge pull request #1639 from Loscillo/Loscillo-patch-1
Fix incorrect syntax for arrays in PHP 5.3
2 parents c453c7d + 644fd4d commit a5a5ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Gedmo/Tree/Entity/Repository/ClosureTreeRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public function verify()
404404
$nodeIdField = $nodeMeta->getSingleIdentifierFieldName();
405405
$config = $this->listener->getConfiguration($this->_em, $nodeMeta->name);
406406
$closureMeta = $this->_em->getClassMetadata($config['closure']);
407-
$errors = [];
407+
$errors = array();
408408

409409
$q = $this->_em->createQuery("
410410
SELECT COUNT(node)
@@ -486,7 +486,7 @@ public function rebuildClosure()
486486
$conn->beginTransaction();
487487
foreach ($entries as $entry) {
488488
$conn->insert($closureTable, array_combine(
489-
[$ancestorColumnName, $descendantColumnName, $depthColumnName],
489+
array($ancestorColumnName, $descendantColumnName, $depthColumnName),
490490
$entry
491491
));
492492
}

0 commit comments

Comments
 (0)