diff --git a/CHANGELOG.md b/CHANGELOG.md index 416fe7c..947ca4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/Commands/LicenseUpdate.php b/src/Commands/LicenseUpdate.php index 4ebee3b..811a4dc 100644 --- a/src/Commands/LicenseUpdate.php +++ b/src/Commands/LicenseUpdate.php @@ -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 {