Merge branch 'feat-tweak-meta-catch' of github.com:barryvdh/laravel-ide-helper into feat-tweak-meta-catch

This commit is contained in:
Barry vd. Heuvel
2025-01-08 10:27:49 +01:00
+2 -2
View File
@@ -237,7 +237,7 @@ class MetaCommand extends Command
'argumentSet' => 'auth', 'argumentSet' => 'auth',
], ],
[ [
'class' => [ 'Illuminate\Contracts\Auth\Access\Authorizable'], 'class' => ['Illuminate\Contracts\Auth\Access\Authorizable'],
'method' => ['can'], 'method' => ['can'],
'argumentSet' => 'auth', 'argumentSet' => 'auth',
], ],
@@ -317,7 +317,7 @@ class MetaCommand extends Command
$value = $this->files->requireOnce($file) ?: []; $value = $this->files->requireOnce($file) ?: [];
} catch (\Throwable $e) { } catch (\Throwable $e) {
$value = []; $value = [];
$this->warn('Cannot load template for ' . $name .': '.$e->getMessage()); $this->warn('Cannot load template for ' . $name . ': ' . $e->getMessage());
} }
if (!$value instanceof Collection) { if (!$value instanceof Collection) {