Skip to content

Commit b96f982

Browse files
authored
Skip Mailer in Laravel 9
Fixes #1289
1 parent bafb390 commit b96f982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelDebugbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ function ($event, $params) use ($queryCollector) {
450450
}
451451
}
452452

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

0 commit comments

Comments
 (0)