feat: accept double values in CLI
This commit is contained in:
parent
1f65330a73
commit
e78f0a6fae
|
@ -26,7 +26,7 @@ class AddBalance extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
$balance = (int) $this->argument('balance');
|
||||
$balance = (double) $this->argument('balance');
|
||||
$id = (int) $this->argument('id');
|
||||
if ($balance == 0 || $id == 0) {
|
||||
$this->fail('Balance or Id must be non zero value!');
|
||||
|
|
Loading…
Reference in New Issue