From 982baa5530bc420bddc8b590b1234c62715e071b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20CROMBEZ?= Date: Tue, 5 Dec 2017 14:18:28 +0100 Subject: [PATCH 1/2] remove "choices_as_values" mention "choices_as_values" is still mentioned in the "Create a custom form field type" doc but has been removed in 4.0. --- form/create_custom_field_type.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/form/create_custom_field_type.rst b/form/create_custom_field_type.rst index fe9633084a1..6230dbde0a1 100644 --- a/form/create_custom_field_type.rst +++ b/form/create_custom_field_type.rst @@ -35,8 +35,7 @@ for form fields, which is ``\Form\Type``. Make sure the field extend 'Standard Shipping' => 'standard', 'Expedited Shipping' => 'expedited', 'Priority Shipping' => 'priority', - ), - 'choices_as_values' => true, + ) )); } From 79109a830046efa54369f531898c66070261eeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20CROMBEZ?= Date: Tue, 5 Dec 2017 15:25:20 +0100 Subject: [PATCH 2/2] add back the trailing comma --- form/create_custom_field_type.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/form/create_custom_field_type.rst b/form/create_custom_field_type.rst index 6230dbde0a1..0a39902c3d9 100644 --- a/form/create_custom_field_type.rst +++ b/form/create_custom_field_type.rst @@ -35,7 +35,7 @@ for form fields, which is ``\Form\Type``. Make sure the field extend 'Standard Shipping' => 'standard', 'Expedited Shipping' => 'expedited', 'Priority Shipping' => 'priority', - ) + ), )); }