mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Fix phpstan issues.
This commit is contained in:
@@ -104,7 +104,7 @@ class UserGroupRepository implements UserGroupRepositoryInterface
|
||||
$memberships = $this->user->groupMemberships()->get();
|
||||
/** @var GroupMembership $membership */
|
||||
foreach ($memberships as $membership) {
|
||||
/** @var UserGroup $group */
|
||||
/** @var UserGroup|null $group */
|
||||
$group = $membership->userGroup()->first();
|
||||
if (null !== $group) {
|
||||
$collection->push($group);
|
||||
@@ -131,6 +131,7 @@ class UserGroupRepository implements UserGroupRepositoryInterface
|
||||
$existingGroup = $this->findByName($groupName);
|
||||
if (null === $existingGroup) {
|
||||
$exists = false;
|
||||
/** @var UserGroup|null $existingGroup */
|
||||
$existingGroup = $this->store(['user' => $user, 'title' => $groupName]);
|
||||
}
|
||||
if (null !== $existingGroup) {
|
||||
|
Reference in New Issue
Block a user