Skip to content

Commit a32dd8b

Browse files
Remove useless code
1 parent 9b1348a commit a32dd8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

User/InMemoryUser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public function isEqualTo(UserInterface $user): bool
8888
return false;
8989
}
9090

91-
$currentRoles = array_map('strval', (array) $this->getRoles());
92-
$newRoles = array_map('strval', (array) $user->getRoles());
91+
$currentRoles = array_map('strval', $this->getRoles());
92+
$newRoles = array_map('strval', $user->getRoles());
9393
$rolesChanged = \count($currentRoles) !== \count($newRoles) || \count($currentRoles) !== \count(array_intersect($currentRoles, $newRoles));
9494
if ($rolesChanged) {
9595
return false;

0 commit comments

Comments
 (0)