Skip to content

Commit

Permalink
Fixed type error for the choice function
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Mar 13, 2018
1 parent d7493d3 commit 24c0e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to `laravel-licenser` will be documented in this file.

### 3.5.5
- Fixed type error for the `choice` function

### 3.5.4
- One day I'll get the file paths correct everytime all the time.

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/LicenseUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function selectOwnerId($where = [])
final protected function getSelection($column, $where = [])
{
try {
$options = DB::table('licenses')->where($where)->groupBy($column)->get([$column])->pluck($column);
$options = DB::table('licenses')->where($where)->groupBy($column)->get([$column])->pluck($column)->toArray();
if(count($options) > 1) {
$selection = $this->choice("Select a {$column}", $options);
} else {
Expand Down

0 comments on commit 24c0e90

Please sign in to comment.