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 9b1348a commit a32dd8bCopy full SHA for a32dd8b
User/InMemoryUser.php
@@ -88,8 +88,8 @@ public function isEqualTo(UserInterface $user): bool
88
return false;
89
}
90
91
- $currentRoles = array_map('strval', (array) $this->getRoles());
92
- $newRoles = array_map('strval', (array) $user->getRoles());
+ $currentRoles = array_map('strval', $this->getRoles());
+ $newRoles = array_map('strval', $user->getRoles());
93
$rolesChanged = \count($currentRoles) !== \count($newRoles) || \count($currentRoles) !== \count(array_intersect($currentRoles, $newRoles));
94
if ($rolesChanged) {
95
0 commit comments