From 24c0e90d0d6b8a8d0db17af3a1d1dd6a18ac97f7 Mon Sep 17 00:00:00 2001 From: Tyler Arbon Date: Mon, 12 Mar 2018 22:38:12 -0600 Subject: [PATCH] Fixed type error for the `choice` function --- CHANGELOG.md | 3 +++ src/Commands/LicenseUpdate.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 {