From cf4b87e70165d3164664d20f687e44cce1db4190 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 30 Jun 2023 14:50:20 +1000 Subject: [PATCH] Fixes for mailers --- app/Jobs/Mail/NinjaMailerJob.php | 1 + app/Services/Email/Email.php | 1 + phpstan.neon | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Mail/NinjaMailerJob.php b/app/Jobs/Mail/NinjaMailerJob.php index 39179844a0f8..0e81d544f9be 100644 --- a/app/Jobs/Mail/NinjaMailerJob.php +++ b/app/Jobs/Mail/NinjaMailerJob.php @@ -245,6 +245,7 @@ class NinjaMailerJob implements ShouldQueue $this->setGmailMailer(); return $this; case 'office365': + case 'microsoft': $this->mailer = 'office365'; $this->setOfficeMailer(); return $this; diff --git a/app/Services/Email/Email.php b/app/Services/Email/Email.php index 941d1c150b3f..4a9663ea43f4 100644 --- a/app/Services/Email/Email.php +++ b/app/Services/Email/Email.php @@ -432,6 +432,7 @@ class Email implements ShouldQueue $this->setGmailMailer(); return $this; case 'office365': + case 'microsoft': $this->mailer = 'office365'; $this->setOfficeMailer(); return $this; diff --git a/phpstan.neon b/phpstan.neon index 4fcf09b7dab7..148ec353ba82 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,8 +6,6 @@ parameters: ignoreErrors: - '#Call to an undefined method .*badMethod\(\)#' - '#Call to an undefined method Illuminate\Database\Eloquent\Builder::exclude#' - parallel: - maximumNumberOfProcesses: 1 level: 4 paths: - 'app/'