Skip to content

Commit f6a5247

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: [Twig] Mention that passing an array of roles/attributes is deprecated
2 parents 6752b65 + e1c82fd commit f6a5247

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
@@ -152,6 +152,10 @@ is_granted
152152

153153
Returns ``true`` if the current user has the given role.
154154

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

0 commit comments

Comments
 (0)