Skip to content

Commit

Permalink
Fix alias parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenscheel committed Nov 18, 2022
1 parent 963a1c6 commit 517c287
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Commands/DynamicDockerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private function processConfig(): void
try {
$config = json_decode(file_get_contents($path), true, 512, JSON_THROW_ON_ERROR);
if ($alias = Arr::get($config, 'aliases.'.$this->tokens[0])) {
if (! \is_array($alias) && str_contains($alias, ' ')) {
if (! \is_array($alias)) {
$alias = collect(explode(' ', $alias))->filter()->map(fn ($token) => trim($token))->toArray();
}
$this->tokens = [...$alias, ...array_slice($this->tokens, 1)];
Expand Down
Binary file modified builds/docker-laravel
Binary file not shown.

0 comments on commit 517c287

Please sign in to comment.