Skip to content

Commit 4c656cc

Browse files
authored
Remove duplicate config, fix ->can() (#1650)
1 parent 0fe9774 commit 4c656cc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Console/MetaCommand.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,14 @@ protected function getExpectedArguments()
232232
'argumentSet' => 'auth',
233233
],
234234
[
235-
'class' => ['\Illuminate\Support\Facades\Route', '\Illuminate\Support\Facades\Auth'],
235+
'class' => ['\Illuminate\Support\Facades\Route', '\Illuminate\Support\Facades\Auth', 'Illuminate\Foundation\Auth\Access\Authorizable'],
236236
'method' => ['can', 'cannot'],
237237
'argumentSet' => 'auth',
238238
],
239-
[
240-
'method' => 'config',
241-
'argumentSet' => 'configs',
242-
],
243239
[
244240
'class' => ['\Illuminate\Config\Repository', '\Illuminate\Support\Facades\Config'],
245241
'method' => [
246-
'get',
242+
// 'get', // config() and Config::Get() are added with return type hints already
247243
'getMany',
248244
'set',
249245
'string',

0 commit comments

Comments
 (0)