Skip to content

Commit 80f9249

Browse files
authored
[10.x] Change closures function to arrow function in LogServiceProvider (#46366)
* change closures function to arrow function in `LogServiceProvider` * add missing arrow into arrow function
1 parent 489b39c commit 80f9249

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Log/LogServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ class LogServiceProvider extends ServiceProvider
1313
*/
1414
public function register()
1515
{
16-
$this->app->singleton('log', function ($app) {
17-
return new LogManager($app);
18-
});
16+
$this->app->singleton('log', fn ($app) => new LogManager($app));
1917
}
2018
}

0 commit comments

Comments
 (0)