Skip to content

Commit d5323b8

Browse files
committed
map to string
1 parent b4a605a commit d5323b8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Console/MetaCommand.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,12 @@ protected function registerClassAutoloadExceptions(): callable
189189
protected function getExpectedArgumentSets()
190190
{
191191
return [
192-
'configs' => $this->loadTemplate('configs')->pluck('name')->filter(),
193-
'routes' => $this->loadTemplate('routes')->pluck('name')->filter(),
194-
'views' => $this->loadTemplate('views')->pluck('key')->filter(),
195-
'translations' => $this->loadTemplate('translations')->filter()->keys(),
192+
'configs' => $this->loadTemplate('configs')->pluck('name')->filter()->toArray(),
193+
'routes' => $this->loadTemplate('routes')->pluck('name')->filter()->toArray(),
194+
'views' => $this->loadTemplate('views')->pluck('key')->filter()->map(function($value) {
195+
return (string) $value;
196+
})->toArray(),
197+
'translations' => $this->loadTemplate('translations')->filter()->keys()->toArray(),
196198
];
197199
}
198200

0 commit comments

Comments
 (0)