Skip to content

Commit 9cde363

Browse files
authored
Merge pull request #1869 from pmoubed/v2.4.x
Fixed #1867 - fixed broken array syntax for php 5.3 - removed [] syntax
2 parents 8db1f69 + 52fdbaa commit 9cde363

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Gedmo/Sluggable/Mapping/Driver/Annotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private function retrieveSlug($meta, array &$config, $property, $fieldNamePrefix
148148
if ($slug->unique_base && !$meta->hasField($slug->unique_base) && !$meta->hasAssociation($slug->unique_base)) {
149149
throw new InvalidMappingException("Unable to find [{$slug->unique_base}] as mapped property in entity - {$meta->name}");
150150
}
151-
$sluggableFields = [];
151+
$sluggableFields = array();
152152
foreach ($slug->fields as $field) {
153153
$sluggableFields[] = $fieldNamePrefix ? ($fieldNamePrefix . '.' . $field) : $field;
154154
}

tests/Gedmo/Sortable/Fixture/NotifyNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class NotifyNode extends AbstractNode implements NotifyPropertyChanged
1818
*
1919
* @var PropertyChangedListener[]
2020
*/
21-
private $_propertyChangedListeners = [];
21+
private $_propertyChangedListeners = array();
2222

2323
/**
2424
* Adds a listener that wants to be notified about property changes.

tests/Gedmo/Sortable/SortableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ public function testSetOutOfBoundsHighPosition()
799799
public function shouldFixIssue1809()
800800
{
801801
$manager = $this->em;
802-
$nodes = [];
802+
$nodes = array();
803803
for ($i = 1; $i <= 3; $i++) {
804804
$node = new NotifyNode();
805805
$node->setName("Node".$i);

0 commit comments

Comments
 (0)