Skip to content

Commit 06c56c1

Browse files
committed
bug symfony#3709 [Components][Security] Fix symfony#3708 (bicpi)
This PR was merged into the 2.3 branch. Discussion ---------- [Components][Security] Fix symfony#3708 | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | symfony#3708 Commits ------- da025b1 [Components][Security] Fix symfony#3708
2 parents e15afe0 + da025b1 commit 06c56c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/security/authorization.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ method::
142142

143143
$roleVoter = new RoleVoter('ROLE_');
144144

145-
$roleVoter->vote($token, $object, 'ROLE_ADMIN');
145+
$roleVoter->vote($token, $object, array('ROLE_ADMIN'));
146146

147147
RoleHierarchyVoter
148148
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)