Skip to content

Commit da5ec3b

Browse files
author
Wim Vandersmissen
committed
small fix for RoleSecurityIdentity
1 parent 6b94407 commit da5ec3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Security\Acl\Domain;
1313

1414
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
15-
use Symfony\Component\Security\Core\Role\Role;
15+
use Symfony\Component\Security\Core\Role\RoleInterface;
1616

1717
/**
1818
* A SecurityIdentity implementation for roles
@@ -26,11 +26,11 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface
2626
/**
2727
* Constructor
2828
*
29-
* @param mixed $role a Role instance, or its string representation
29+
* @param mixed $role an object implementing RoleInterface, or its string representation
3030
*/
3131
public function __construct($role)
3232
{
33-
if ($role instanceof Role) {
33+
if ($role instanceof RoleInterface) {
3434
$role = $role->getRole();
3535
}
3636

0 commit comments

Comments
 (0)