Skip to content

Commit

Permalink
PHPStan- Remove unused $mailer variable in HandleCollaborationInviteE…
Browse files Browse the repository at this point in the history
…mails listener
  • Loading branch information
ssethupathy committed Aug 2, 2023
1 parent d6c0755 commit 9bf13af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function handle($event)
->filter(function ($newCollaborator) use ($oldCollaborators) {
//Remove emails that exist as collaborators in the old article
return !in_array($newCollaborator, $oldCollaborators);
})->each(function ($collaborator) use ($mailer, $event) {
})->each(function ($collaborator) use ($event) {
if ($collaborator) {// Send mails to the new additions
$mailData = new \stdClass();
$mailData->emailTo = $collaborator;
Expand Down
5 changes: 0 additions & 5 deletions sourcecode/apis/contentauthor/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ parameters:
count: 1
path: app/Libraries/HTMLPurify/HTMLModule/MathML.php

-
message: "#^Anonymous function has an unused use \\$mailer\\.$#"
count: 1
path: app/Listeners/Article/HandleCollaborationInviteEmails.php

-
message: "#^Access to an undefined property App\\\\Libraries\\\\Versioning\\\\VersionableObject\\:\\:\\$id\\.$#"
count: 1
Expand Down

0 comments on commit 9bf13af

Please sign in to comment.