Skip to content

Commit

Permalink
change closure to arrow function in NotificationServiceProvider (#47055)
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev authored May 12, 2023
1 parent 82875a1 commit d5f9c4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Notifications/NotificationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public function boot()
*/
public function register()
{
$this->app->singleton(ChannelManager::class, function ($app) {
return new ChannelManager($app);
});
$this->app->singleton(ChannelManager::class, fn ($app) => new ChannelManager($app));

$this->app->alias(
ChannelManager::class, DispatcherContract::class
Expand Down

0 comments on commit d5f9c4c

Please sign in to comment.