Skip to content

Commit 5514b60

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Adding an if condition on a for tag is deprecated in Twig 2.10.
2 parents 33fe989 + 6ef85a3 commit 5514b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/create_custom_field_type.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ libraries are used in your application:
405405

406406
{# templates/form/custom_types.html.twig #}
407407
{% block postal_address_row %}
408-
{% for child in form.children if not child.rendered %}
408+
{% for child in form.children|filter(child => not child.rendered) %}
409409
<div class="form-group">
410410
{{ form_label(child) }}
411411
{{ form_widget(child) }}

0 commit comments

Comments
 (0)