feat: accept double values in CLI

This commit is contained in:
b1ek 2024-09-17 23:03:29 +10:00
parent 1f65330a73
commit e78f0a6fae
Signed by: blek
GPG Key ID: A622C22C9BC616B2
1 changed files with 1 additions and 1 deletions

View File

@ -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!');