You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/CountryType.php
+7-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,13 @@ public function configureOptions(OptionsResolver $resolver)
38
38
{
39
39
$resolver->setDefaults(array(
40
40
'choice_loader' => function (Options$options) {
41
-
return$options['choices'] ? null : $this;
41
+
if ($options['choices']) {
42
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/CurrencyType.php
+7-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,13 @@ public function configureOptions(OptionsResolver $resolver)
38
38
{
39
39
$resolver->setDefaults(array(
40
40
'choice_loader' => function (Options$options) {
41
-
return$options['choices'] ? null : $this;
41
+
if ($options['choices']) {
42
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/LanguageType.php
+7-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,13 @@ public function configureOptions(OptionsResolver $resolver)
38
38
{
39
39
$resolver->setDefaults(array(
40
40
'choice_loader' => function (Options$options) {
41
-
return$options['choices'] ? null : $this;
41
+
if ($options['choices']) {
42
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/LocaleType.php
+7-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,13 @@ public function configureOptions(OptionsResolver $resolver)
38
38
{
39
39
$resolver->setDefaults(array(
40
40
'choice_loader' => function (Options$options) {
41
-
return$options['choices'] ? null : $this;
41
+
if ($options['choices']) {
42
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/TimezoneType.php
+7-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,13 @@ public function configureOptions(OptionsResolver $resolver)
35
35
{
36
36
$resolver->setDefaults(array(
37
37
'choice_loader' => function (Options$options) {
38
-
return$options['choices'] ? null : $this;
38
+
if ($options['choices']) {
39
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
0 commit comments