Skip to content

Commit e1c82fd

Browse files
committed
minor #13777 [Twig] Mention that passing an array of roles/attributes is deprecated (javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- [Twig] Mention that passing an array of roles/attributes is deprecated Fixes #13773. Commits ------- ac875c4 [Twig] Mention that passing an array of roles/attributes is deprecated
2 parents b60b22e + ac875c4 commit e1c82fd

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)