We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68c0777 commit 26ff05bCopy full SHA for 26ff05b
src/Symfony/Component/Security/Acl/Domain/RoleSecurityIdentity.php
@@ -12,7 +12,7 @@
12
namespace Symfony\Component\Security\Acl\Domain;
13
14
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
15
-use Symfony\Component\Security\Core\Role\Role;
+use Symfony\Component\Security\Core\Role\RoleInterface;
16
17
/**
18
* A SecurityIdentity implementation for roles
@@ -31,7 +31,7 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface
31
*/
32
public function __construct($role)
33
{
34
- if ($role instanceof Role) {
+ if ($role instanceof RoleInterface) {
35
$role = $role->getRole();
36
}
37
0 commit comments