Skip to content

Commit cdb57ed

Browse files
minor #57868 Remove useless code (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- Remove useless code | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT I went through the remaining components and bundles, following my last PRs of this kind. Commits ------- 58941cec67 Remove useless code
2 parents d869b12 + a32dd8b commit cdb57ed

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)