Fix yoda style

This commit is contained in:
2024-06-12 14:47:21 +02:00
parent 06fb90881e
commit 2aca0fc5a6
9 changed files with 17 additions and 12 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ class User implements UserInterface, UserOwnedInterface, PasswordAuthenticatedUs
public function hasRoles(array $roles): bool
{
return 0 < count(array_intersect($this->getRoles(), $roles));
return count(array_intersect($this->getRoles(), $roles)) > 0;
}
/**