From c1a4cea32b498ac7da2fe8aa1f2c5672fd77730c Mon Sep 17 00:00:00 2001 From: Tyler Arbon Date: Mon, 12 Mar 2018 22:44:44 -0600 Subject: [PATCH] Fixed console output errors --- CHANGELOG.md | 3 +++ src/Commands/LicenseUpdate.php | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 947ca4d..7498ff3 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.6 +- Fixed console output errors + ### 3.5.5 - Fixed type error for the `choice` function diff --git a/src/Commands/LicenseUpdate.php b/src/Commands/LicenseUpdate.php index 811a4dc..f4cb6cb 100644 --- a/src/Commands/LicenseUpdate.php +++ b/src/Commands/LicenseUpdate.php @@ -40,12 +40,12 @@ public function handle() // Perform the update $license->set($this->getQuantity($license->maximum())); - $this->success("Done!"); + $this->info("Done!"); } protected function getQuantity($current = 0) { - return intval($this->ask("Please select a new maximum value for this license. The current maximum is {$current}.")); + return intval($this->ask("Please select a new maximum value for this license. (The current maximum is {$current})")); } protected function selectLicense($where = []) @@ -76,6 +76,8 @@ final protected function getSelection($column, $where = []) throw new \Exception("Could not find a {$column}", 1, $e); } + $this->info("Selected: {$selection}"); + return $selection; } } \ No newline at end of file