Skip to content

Commit

Permalink
Restore 5.3 compat (implicit)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
willdurand committed Oct 27, 2015
1 parent 329e226 commit 09bb83e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Parser/FormTypeParser.php
Expand Up @@ -268,7 +268,7 @@ private function parseForm($form)
} else {
// TODO: fixme
// does not work since: https://github.com/symfony/symfony/commit/03efce1b568379eac21d880e427090e43035f505
$choices = [];
$choices = array();
}

if (is_array($choices) && count($choices)) {
Expand Down Expand Up @@ -306,7 +306,7 @@ private function getTypeInstance($type)
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);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -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",
Expand Down

0 comments on commit 09bb83e

Please sign in to comment.