Skip to content

Commit a093f92

Browse files
Use arrow function (#42838)
* Use arrow function * Update AuthServiceProvider.php Co-authored-by: Taylor Otwell <[email protected]>
1 parent 4170afa commit a093f92

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Auth/AuthServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ protected function registerUserResolver()
5757
protected function registerAccessGate()
5858
{
5959
$this->app->singleton(GateContract::class, function ($app) {
60-
return new Gate($app, function () use ($app) {
61-
return call_user_func($app['auth']->userResolver());
62-
});
60+
return new Gate($app, fn () => call_user_func($app['auth']->userResolver()));
6361
});
6462
}
6563

0 commit comments

Comments
 (0)