Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b49ac82

Browse filesBrowse files
committed
removed deprecated usage of some Twig features
1 parent 3fcec72 commit b49ac82
Copy full SHA for b49ac82

File tree

5 files changed

+5
-5
lines changed
Filter options

5 files changed

+5
-5
lines changed

‎composer.json

Copy file name to clipboardExpand all lines: composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"doctrine/event-manager": "~1.0",
2323
"doctrine/persistence": "~1.0",
2424
"fig/link-util": "^1.0",
25-
"twig/twig": "^1.40|^2.9",
25+
"twig/twig": "^1.41|^2.10",
2626
"psr/cache": "~1.0",
2727
"psr/container": "^1.0",
2828
"psr/link": "^1.0",

‎src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
{# Support #}
400400

401401
{%- block form_rows -%}
402-
{% for child in form if not child.rendered %}
402+
{% for child in form|filter(child => not child.rendered) %}
403403
{{- form_row(child) -}}
404404
{% endfor %}
405405
{%- endblock form_rows -%}

‎src/Symfony/Bridge/Twig/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": "^7.1.3",
2020
"symfony/contracts": "^1.0.2",
21-
"twig/twig": "^1.40|^2.9"
21+
"twig/twig": "^1.41|^2.10"
2222
},
2323
"require-dev": {
2424
"symfony/asset": "~3.4|~4.0",

‎src/Symfony/Bundle/TwigBundle/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"symfony/http-foundation": "~4.1",
2323
"symfony/http-kernel": "~4.1",
2424
"symfony/polyfill-ctype": "~1.8",
25-
"twig/twig": "~1.40|~2.9"
25+
"twig/twig": "~1.41|~2.10"
2626
},
2727
"require-dev": {
2828
"symfony/asset": "~3.4|~4.0",

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259

260260
<h4>Defined as regular env variables</h4>
261261
{% set requestserver = [] %}
262-
{% for key, value in collector.requestserver if key not in collector.dotenvvars.keys %}
262+
{% for key, value in collector.requestserver|filter((_, key) => key not in collector.dotenvvars.keys) %}
263263
{% set requestserver = requestserver|merge({(key): value}) %}
264264
{% endfor %}
265265
{{ include('@WebProfiler/Profiler/table.html.twig', { data: requestserver }, with_context = false) }}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.