mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix bug with PostalCode ChoiceLoader form
error: must be an instance of Chill\MainBundle\Entity\PostalCode, null given only with: APP_DEV=prod
This commit is contained in:
parent
455e1f21c4
commit
14d32aa763
@ -47,7 +47,7 @@ class PostalCodeChoiceLoader implements ChoiceLoaderInterface
|
|||||||
{
|
{
|
||||||
$list = new \Symfony\Component\Form\ChoiceList\ArrayChoiceList(
|
$list = new \Symfony\Component\Form\ChoiceList\ArrayChoiceList(
|
||||||
$this->lazyLoadedPostalCodes,
|
$this->lazyLoadedPostalCodes,
|
||||||
function(PostalCode $pc) use ($value) {
|
function(PostalCode $pc = null) use ($value) {
|
||||||
return \call_user_func($value, $pc);
|
return \call_user_func($value, $pc);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user