Skip to content

Commit c1a4cea

Browse files
committed
Fixed console output errors
1 parent 24c0e90 commit c1a4cea

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

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

5+
### 3.5.6
6+
- Fixed console output errors
7+
58
### 3.5.5
69
- Fixed type error for the `choice` function
710

src/Commands/LicenseUpdate.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ public function handle()
4040
// Perform the update
4141
$license->set($this->getQuantity($license->maximum()));
4242

43-
$this->success("Done!");
43+
$this->info("Done!");
4444
}
4545

4646
protected function getQuantity($current = 0)
4747
{
48-
return intval($this->ask("Please select a new maximum value for this license. The current maximum is {$current}."));
48+
return intval($this->ask("Please select a new maximum value for this license. (The current maximum is {$current})"));
4949
}
5050

5151
protected function selectLicense($where = [])
@@ -76,6 +76,8 @@ final protected function getSelection($column, $where = [])
7676
throw new \Exception("Could not find a {$column}", 1, $e);
7777
}
7878

79+
$this->info("Selected: {$selection}");
80+
7981
return $selection;
8082
}
8183
}

0 commit comments

Comments
 (0)