Fix various phpstan issues.

This commit is contained in:
James Cole
2023-11-04 07:18:03 +01:00
parent dc45131f73
commit ef428a0226
42 changed files with 104 additions and 174 deletions

View File

@@ -226,7 +226,7 @@ class UserRepository implements UserRepositoryInterface
*/
public function getRolesInGroup(User $user, int $groupId): array
{
/** @var UserGroup $group */
/** @var UserGroup|null $group */
$group = UserGroup::find($groupId);
if (null === $group) {
throw new FireflyException(sprintf('Could not find group #%d', $groupId));