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
This commit is contained in:
William Durand 2015-10-27 09:23:44 +01:00
parent 329e226426
commit 09bb83e149
No known key found for this signature in database
GPG Key ID: A509BCF1C1274F3B
2 changed files with 3 additions and 3 deletions

View File

@ -268,7 +268,7 @@ class FormTypeParser implements ParserInterface
} else {
// TODO: fixme
// does not work since: https://github.com/symfony/symfony/commit/03efce1b568379eac21d880e427090e43035f505
$choices = [];
$choices = array();
}
if (is_array($choices) && count($choices)) {
@ -306,7 +306,7 @@ class FormTypeParser implements ParserInterface
return $refl->newInstance();
}
private function createForm($item, $data = null, array $options = [])
private function createForm($item, $data = null, array $options = array())
{
if ($this->implementsType($item)) {
$type = $this->getTypeInstance($item);

View File

@ -15,7 +15,7 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=5.3",
"symfony/twig-bundle": "~2.3",
"symfony/framework-bundle": "~2.3",
"symfony/console": "~2.3",