From 4d65e1c9c63d5a6b9b3e27f3e34db14d33d3c31f Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 5 Apr 2018 10:33:54 +0200 Subject: [PATCH] fix deprecations --- Form/Type/Select2MaritalStatusType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Form/Type/Select2MaritalStatusType.php b/Form/Type/Select2MaritalStatusType.php index e248a534e..ed0dcc084 100644 --- a/Form/Type/Select2MaritalStatusType.php +++ b/Form/Type/Select2MaritalStatusType.php @@ -75,7 +75,7 @@ class Select2MaritalStatusType extends AbstractType $resolver->setDefaults(array( 'class' => 'Chill\PersonBundle\Entity\MaritalStatus', - 'choices' => $choices + 'choices' => array_combine(array_values($choices),array_keys($choices)) )); } }