Skip to content

Commit 36c3af4

Browse files
committed
bug symfony#31290 [TwigBundle] Use the apply tag instead of the filter tag (greg0ire)
This PR was merged into the 3.4 branch. Discussion ---------- [TwigBundle] Use the apply tag instead of the filter tag The filter has been deprecated in favor of the apply tag since Twig 2.9, see https://twig.symfony.com/doc/2.x/tags/filter.html (apply does not seem to have its own documentation page yet). | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a ⚠ Note: don't merge until Twig 2.9 and 1.40 are released, or this will block symfony releases ⚠ Commits ------- 9c11b98 Use the apply tag instead of the filter tag
2 parents 73880db + 9c11b98 commit 36c3af4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"ext-xml": "*",
2121
"doctrine/common": "~2.4",
2222
"fig/link-util": "^1.0",
23-
"twig/twig": "^1.35|^2.4.4",
23+
"twig/twig": "^1.40|^2.9",
2424
"psr/cache": "~1.0",
2525
"psr/container": "^1.0",
2626
"psr/link": "^1.0",

src/Symfony/Bundle/TwigBundle/Resources/views/Exception/traces_text.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<td>
2020
{% if exception.trace|length %}
2121
<pre class="stacktrace">
22-
{%- filter escape('html') -%}
22+
{%- apply escape('html') -%}
2323
{{- include('@Twig/Exception/traces.txt.twig', { exception: exception, format: 'html' }, with_context = false) }}
24-
{% endfilter %}
24+
{% endapply %}
2525
</pre>
2626
{% endif %}
2727
</td>

src/Symfony/Bundle/TwigBundle/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"symfony/http-foundation": "~2.8|~3.0|~4.0",
2323
"symfony/http-kernel": "^3.3|~4.0",
2424
"symfony/polyfill-ctype": "~1.8",
25-
"twig/twig": "~1.34|~2.4"
25+
"twig/twig": "~1.40|~2.9"
2626
},
2727
"require-dev": {
2828
"symfony/asset": "~2.8|~3.0|~4.0",

0 commit comments

Comments
 (0)