Skip to content

Commit 52ab119

Browse files
committed
Removing one deprecation
1 parent 8739955 commit 52ab119

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"symfony/finder": "^4.1",
1919
"symfony/dom-crawler": "^4.1",
2020
"symfony/css-selector": "^4.1",
21-
"symfony/console": "^4.1"
21+
"symfony/console": "^4.1",
22+
"twig/twig": "^2.7.3"
2223
},
2324
"require-dev": {
2425
"gajus/dindent": "^2.0",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% apply spaceless %}
22
{% set domElement = attributes.domElement|default %}
33
{% set class = (attributes.class|default ? attributes.class ~ ' ' : '') ~ 'reference ' ~ (('://' in url) ? 'external' : 'internal') %}
4-
<a href="{{ url|raw }}" class="{{ class }}"{% for key, value in attributes if key != 'domElement' and key != 'class' %} {{ key }}="{{ value }}"{% endfor %}>{% if domElement %}<{{ domElement }}>{% endif %}{{ title|raw }}{% if domElement %}</{{ domElement }}>{% endif %}</a>
4+
<a href="{{ url|raw }}" class="{{ class }}"{% for key, value in attributes|filter((v, key) => key != 'domElement' and key != 'class') %} {{ key }}="{{ value }}"{% endfor %}>{% if domElement %}<{{ domElement }}>{% endif %}{{ title|raw }}{% if domElement %}</{{ domElement }}>{% endif %}</a>
55
{% endapply %}

0 commit comments

Comments
 (0)