8000 Fix test · symfony/symfony@026ed90 · GitHub
[go: up one dir, main page]

Skip to content

Commit 026ed90

Browse files
Fix test
1 parent 47875df commit 026ed90

File tree

4 files changed

+38
-49
lines changed

4 files changed

+38
-49
lines changed

src/Symfony/Component/Form/ChoiceList/Factory/CachingFactoryDecorator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
183183
*/
184184
public function createView(ChoiceListInterface $list, $preferredChoices = null, $label = null, $index = null, $groupBy = null, $attr = null/*, $labelTranslationParameters = []*/)
185185
{
186-
if (\count(\func_get_args()) < 7) {
187-
trigger_deprecation('symfony/form', '5.2', 'Calling %s without passing the label translation parameters is deprecated.', __METHOD__);
188-
}
189-
190186
$labelTranslationParameters = \func_get_args()[6] ?? [];
191187
$cache = true;
192188

src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, callable $va
7171
*/
7272
public function createView(ChoiceListInterface $list, $preferredChoices = null, $label = null, callable $index = null, callable $groupBy = null, $attr = null/*, $labelTranslationParameters = []*/)
7373
{
74-
if (\count(\func_get_args()) < 7) {
75-
trigger_deprecation('symfony/form', '5.2', 'Calling %s without passing the label translation parameters is deprecated.', __METHOD__);
76-
}
77-
7874
$labelTranslationParameters = \func_get_args()[6] ?? [];
7975
$preferredViews = [];
8076
$preferredViewsOrder = [];

src/Symfony/Component/Form/ChoiceList/Factory/PropertyAccessDecorator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
156156
*/
157157
public function createView(ChoiceListInterface $list, $preferredChoices = null, $label = null, $index = null, $groupBy = null, $attr = null/*, $labelTranslationParameters = []*/)
158158
{
159-
if (\count(\func_get_args()) < 7) {
160-
trigger_deprecation('symfony/form', '5.2', 'Calling %s without passing the label translation parameters is deprecated.', __METHOD__);
161-
}
162-
163159
$labelTranslationParameters = \func_get_args()[6] ?? [];
164160
$accessor = $this->propertyAccessor;
165161

src/Symfony/Component/Form/Tests/Fixtures/Descriptor/resolved_form_type_1.txt

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,44 @@
22
Symfony\Component\Form\Extension\Core\Type\ChoiceType (Block prefix: "choice")
33
==============================================================================
44

5-
------------------------------- -------------------- ------------------------------ -----------------------
6-
Options Overridden options Parent options Extension options
7-
------------------------------- -------------------- ------------------------------ -----------------------
8-
choice_attr FormType FormType FormTypeCsrfExtension
9-
choice_filter -------------------- ------------------------------ -----------------------
10-
choice_label compound action csrf_field_name
11-
choice_loader data_class allow_file_upload csrf_message
12-
choice_name empty_data attr csrf_protection
13-
choice_translation_domain error_bubbling attr_translation_parameters csrf_token_id
14-
choice_translation_parameters invalid_message auto_initialize csrf_token_manager
15-
choice_value trim block_name
16-
choices block_prefix
17-
expanded by_reference
18-
group_by data
19-
multiple disabled
20-
placeholder help
21-
preferred_choices help_attr
22-
help_html
23-
help_translation_parameters
24-
inherit_data
25-
invalid_message_parameters
26-
is_empty_callback
27-
label
28-
label_attr
29-
label_format
30-
label_html
31-
label_translation_parameters
32-
mapped
33-
method
34-
post_max_size_message
35-
property_path
36-
required
37-
row_attr
38-
setter
39-
translation_domain
40-
upload_max_size_message
41-
------------------------------- -------------------- ------------------------------ -----------------------
5+
------------------------------- -------------------- ------------------------------ -----------------------
6+
Options Overridden options Parent options Extension options
7+
------------------------------- -------------------- ------------------------------ -----------------------
8+
choice_attr FormType FormType FormTypeCsrfExtension
9+
choice_filter -------------------- ------------------------------ -----------------------
10+
choice_label compound action csrf_field_name
11+
choice_loader data_class allow_file_upload csrf_message
12+
choice_name empty_data attr csrf_protection
13+
choice_translation_domain error_bubbling attr_translation_parameters csrf_token_id
14+
choice_translation_parameters invalid_message auto_initialize csrf_token_manager
15+
choice_value trim block_name
16+
choices block_prefix
17+
expanded by_reference
18+
group_by data
19+
multiple disabled
20+
placeholder getter
21+
preferred_choices help
22+
help_attr
23+
help_html
24+
help_translation_parameters
25+
inherit_data
26+
invalid_message_parameters
27+
is_empty_callback
28+
label
29+
label_attr
30+
label_format
31+
label_html
32+
label_translation_parameters
33+
mapped
34+
method
35+
post_max_size_message
36+
property_path
37+
required
38+
row_attr
39+
setter
40+
translation_domain
41+
upload_max_size_message
42+
------------------------------- -------------------- ------------------------------ -----------------------
4243

4344
Parent types
4445
------------

0 commit comments

Comments
 (0)
0