Skip to content

Commit

Permalink
Skip Mailer in Laravel 9
Browse files Browse the repository at this point in the history
Fixes #1289
  • Loading branch information
barryvdh authored Feb 9, 2022
1 parent bafb390 commit b96f982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ function ($event, $params) use ($queryCollector) {
}
}

if ($this->shouldCollect('mail', true) && class_exists('Illuminate\Mail\MailServiceProvider')) {
if ($this->shouldCollect('mail', true) && class_exists('Illuminate\Mail\MailServiceProvider') && $this->checkVersion('9.0', '<')) {
try {
$mailer = $this->app['mailer']->getSwiftMailer();
$this->addCollector(new SwiftMailCollector($mailer));
Expand Down

0 comments on commit b96f982

Please sign in to comment.