Skip to content

Commit 09bb83e

Browse files
committed
Restore 5.3 compat (implicit)
Implicit means: it's a best effort approach but there is no guarantee that this bundle will continue to work well with PHP < 5.4
1 parent 329e226 commit 09bb83e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Parser/FormTypeParser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private function parseForm($form)
268268
} else {
269269
// TODO: fixme
270270
// does not work since: https://github.com/symfony/symfony/commit/03efce1b568379eac21d880e427090e43035f505
271-
$choices = [];
271+
$choices = array();
272272
}
273273

274274
if (is_array($choices) && count($choices)) {
@@ -306,7 +306,7 @@ private function getTypeInstance($type)
306306
return $refl->newInstance();
307307
}
308308

309-
private function createForm($item, $data = null, array $options = [])
309+
private function createForm($item, $data = null, array $options = array())
310310
{
311311
if ($this->implementsType($item)) {
312312
$type = $this->getTypeInstance($item);

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=5.4",
18+
"php": ">=5.3",
1919
"symfony/twig-bundle": "~2.3",
2020
"symfony/framework-bundle": "~2.3",
2121
"symfony/console": "~2.3",

0 commit comments

Comments
 (0)