diff --git a/components/security/authorization.rst b/components/security/authorization.rst
index 3311e962e89..68a4f3379c7 100644
--- a/components/security/authorization.rst
+++ b/components/security/authorization.rst
@@ -142,7 +142,7 @@ method::
 
     $roleVoter = new RoleVoter('ROLE_');
 
-    $roleVoter->vote($token, $object, 'ROLE_ADMIN');
+    $roleVoter->vote($token, $object, array('ROLE_ADMIN'));
 
 RoleHierarchyVoter
 ~~~~~~~~~~~~~~~~~~