Skip to content

Commit

Permalink
Adds types to stubs (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Jan 3, 2023
1 parent c23e250 commit 30c3690
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions stubs/HorizonServiceProvider.stub
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ class HorizonServiceProvider extends HorizonApplicationServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
public function boot(): void
{
parent::boot();

Expand All @@ -28,10 +26,8 @@ class HorizonServiceProvider extends HorizonApplicationServiceProvider
* Register the Horizon gate.
*
* This gate determines who can access Horizon in non-local environments.
*
* @return void
*/
protected function gate()
protected function gate(): void
{
Gate::define('viewHorizon', function ($user) {
return in_array($user->email, [
Expand Down

0 comments on commit 30c3690

Please sign in to comment.