Skip to content

Commit

Permalink
Remove duplicate config, fix ->can()
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Jan 6, 2025
1 parent 0fe9774 commit 0e067b7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Console/MetaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,14 @@ protected function getExpectedArguments()
'argumentSet' => 'auth',
],
[
'class' => ['\Illuminate\Support\Facades\Route', '\Illuminate\Support\Facades\Auth'],
'class' => ['\Illuminate\Support\Facades\Route', '\Illuminate\Support\Facades\Auth', 'Illuminate\Foundation\Auth\Access\Authorizable'],
'method' => ['can', 'cannot'],
'argumentSet' => 'auth',
],
[
'method' => 'config',
'argumentSet' => 'configs',
],
[
'class' => ['\Illuminate\Config\Repository', '\Illuminate\Support\Facades\Config'],
'method' => [
'get',
// 'get', // config() and Config::Get() are added with return type hints already
'getMany',
'set',
'string',
Expand Down

0 comments on commit 0e067b7

Please sign in to comment.