Skip to content

Commit e4091fa

Browse files
committed
Do not register log channels with static closures
1 parent 947b675 commit e4091fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sentry/Laravel/Features/LogIntegration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ public function isApplicable(): bool
1515

1616
public function register(): void
1717
{
18-
Log::extend('sentry', static function ($app, array $config) {
18+
Log::extend('sentry', function ($app, array $config) {
1919
return (new LogChannel($app))($config);
2020
});
2121

22-
Log::extend('sentry_logs', static function ($app, array $config) {
22+
Log::extend('sentry_logs', function ($app, array $config) {
2323
return (new LogsLogChannel($app))($config);
2424
});
2525
}

0 commit comments

Comments
 (0)