Skip to content

Commit 4a2083b

Browse files
committed
Return collect() and add missing ->filter()
1 parent 6355182 commit 4a2083b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Console/Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ protected function context()
239239
{
240240
$options = array_only($this->option(), ['no-interaction', 'ansi', 'no-ansi', 'quiet', 'verbose']);
241241

242-
collect($options)->mapWithKeys(function ($value, $key) {
242+
return collect($options)->mapWithKeys(function ($value, $key) {
243243
return ["--{$key}" => $value];
244-
})->all();
244+
})->filter()->all();
245245
}
246246

247247
/**

0 commit comments

Comments
 (0)