From 2474bb3e5a02e4924508c598a7cfe0225bb69a30 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 5 Apr 2018 11:47:12 +0200 Subject: [PATCH] fix deprecations: flip contents of array --- Form/Type/Select2CountryType.php | 2 +- Form/Type/Select2LanguageType.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Form/Type/Select2CountryType.php b/Form/Type/Select2CountryType.php index 7887ec898..48a921b58 100644 --- a/Form/Type/Select2CountryType.php +++ b/Form/Type/Select2CountryType.php @@ -82,7 +82,7 @@ class Select2CountryType extends AbstractType $resolver->setDefaults(array( 'class' => 'Chill\MainBundle\Entity\Country', - 'choices' => $choices + 'choices' => array_combine(array_values($choices),array_keys($choices)) )); } } diff --git a/Form/Type/Select2LanguageType.php b/Form/Type/Select2LanguageType.php index ab92466cb..42a0f74cd 100644 --- a/Form/Type/Select2LanguageType.php +++ b/Form/Type/Select2LanguageType.php @@ -79,7 +79,7 @@ class Select2LanguageType extends AbstractType $resolver->setDefaults(array( 'class' => 'Chill\MainBundle\Entity\Language', - 'choices' => $choices + 'choices' => array_combine(array_values($choices),array_keys($choices)) )); } }