mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix various phpstan issues.
This commit is contained in:
@@ -220,7 +220,7 @@ class UserGroupRepository implements UserGroupRepositoryInterface
|
||||
return $userGroup;
|
||||
}
|
||||
// count the number of members in the group right now:
|
||||
$membershipCount = $userGroup->groupMemberships()->distinct()->count(['group_memberships.user_id']);
|
||||
$membershipCount = $userGroup->groupMemberships()->distinct()->count('group_memberships.user_id');
|
||||
|
||||
// if it's 1:
|
||||
if (1 === $membershipCount) {
|
||||
|
Reference in New Issue
Block a user