mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +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(
|
||||
$this->lazyLoadedPostalCodes,
|
||||
function(PostalCode $pc) use ($value) {
|
||||
function(PostalCode $pc = null) use ($value) {
|
||||
return \call_user_func($value, $pc);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user