Skip to content

Commit 1387cdb

Browse files
authored
Fix twig deprecation for spaceless tag (#652)
* Add composer conflict * Fix deprecation * Add changelog
1 parent 5718550 commit 1387cdb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG-2.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This changelog references the relevant changes done in 6.0 versions.
66
### 2.0.0-ALPHA1 (unreleased)
77

88
* Added `NL` translations [[#631](https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/pull/631)]
9+
* Bumped `twig/twig` supported versions to `1.40` for `1.x` and `2.9` for `2.x` [[#652](https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/pull/652)]
910
* Dropped support for PHP 7.1 [[#651](https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/pull/651)]
1011
* Dropped support for Symfony versions anterior to `4.4` [[#648](https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/pull/648)]
1112
* Fixed form submission/validation [[#643](https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/pull/643)]

Resources/views/form.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{% block field_label %}
3-
{% spaceless %}
3+
{% apply spaceless %}
44
<label for="{{ id }}">{{ id|trans([], 'FOSOAuthServerBundle') }}</label>
5-
{% endspaceless %}
5+
{% endapply %}
66
{% endblock field_label %}

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"symfony/framework-bundle": "^4.4",
2727
"symfony/security-bundle": "^4.4"
2828
},
29+
"conflict": {
30+
"twig/twig": "<1.40 || >=2.0,<2.9"
31+
},
2932
"require-dev": {
3033
"doctrine/doctrine-bundle": "~1.0",
3134
"doctrine/mongodb-odm": "~1.0",

0 commit comments

Comments
 (0)