mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
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:
parent
329e226426
commit
09bb83e149
@ -268,7 +268,7 @@ class FormTypeParser implements ParserInterface
|
|||||||
} else {
|
} else {
|
||||||
// TODO: fixme
|
// TODO: fixme
|
||||||
// does not work since: https://github.com/symfony/symfony/commit/03efce1b568379eac21d880e427090e43035f505
|
// does not work since: https://github.com/symfony/symfony/commit/03efce1b568379eac21d880e427090e43035f505
|
||||||
$choices = [];
|
$choices = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($choices) && count($choices)) {
|
if (is_array($choices) && count($choices)) {
|
||||||
@ -306,7 +306,7 @@ class FormTypeParser implements ParserInterface
|
|||||||
return $refl->newInstance();
|
return $refl->newInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createForm($item, $data = null, array $options = [])
|
private function createForm($item, $data = null, array $options = array())
|
||||||
{
|
{
|
||||||
if ($this->implementsType($item)) {
|
if ($this->implementsType($item)) {
|
||||||
$type = $this->getTypeInstance($item);
|
$type = $this->getTypeInstance($item);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.4",
|
"php": ">=5.3",
|
||||||
"symfony/twig-bundle": "~2.3",
|
"symfony/twig-bundle": "~2.3",
|
||||||
"symfony/framework-bundle": "~2.3",
|
"symfony/framework-bundle": "~2.3",
|
||||||
"symfony/console": "~2.3",
|
"symfony/console": "~2.3",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user