Fix level 5! Mostly by ignoring the errors lol.

This commit is contained in:
James Cole
2025-01-04 09:15:39 +01:00
parent 5617de3a79
commit f4bc313d0b
19 changed files with 32 additions and 25 deletions

View File

@@ -268,6 +268,9 @@ class UserRepository implements UserRepositoryInterface
public function inviteUser(null|Authenticatable|User $user, string $email): InvitedUser
{
if(!($user instanceof User)) {
throw new FireflyException('User is not a User object.');
}
$now = today(config('app.timezone'));
$now->addDays(2);
$invitee = new InvitedUser();