Remove duplicate config, fix ->can() (#1650)

This commit is contained in:
Barry vd. Heuvel
2025-01-06 15:08:47 +01:00
committed by GitHub
parent 0fe9774dfb
commit 4c656cc71d
+2 -6
View File
@@ -232,18 +232,14 @@ class MetaCommand extends Command
'argumentSet' => 'auth', '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'], 'method' => ['can', 'cannot'],
'argumentSet' => 'auth', 'argumentSet' => 'auth',
], ],
[
'method' => 'config',
'argumentSet' => 'configs',
],
[ [
'class' => ['\Illuminate\Config\Repository', '\Illuminate\Support\Facades\Config'], 'class' => ['\Illuminate\Config\Repository', '\Illuminate\Support\Facades\Config'],
'method' => [ 'method' => [
'get', // 'get', // config() and Config::Get() are added with return type hints already
'getMany', 'getMany',
'set', 'set',
'string', 'string',