Skip to content

Commit ac875c4

Browse files
committed
[Twig] Mention that passing an array of roles/attributes is deprecated
1 parent b60b22e commit ac875c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/twig_reference.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ Returns ``true`` if the current user has the given role. If several roles are
154154
passed in an array, ``true`` is returned if the user has at least one of
155155
them.
156156

157+
.. deprecated:: 4.4
158+
159+
The feature to pass an array of roles to ``is_granted()`` was deprecated in Symfony 4.4.
160+
157161
Optionally, an object can be passed to be used by the voter. More information
158162
can be found in :ref:`security-template`.
159163

0 commit comments

Comments
 (0)