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()
|
public function handle()
|
||||||
{
|
{
|
||||||
$balance = (int) $this->argument('balance');
|
$balance = (double) $this->argument('balance');
|
||||||
$id = (int) $this->argument('id');
|
$id = (int) $this->argument('id');
|
||||||
if ($balance == 0 || $id == 0) {
|
if ($balance == 0 || $id == 0) {
|
||||||
$this->fail('Balance or Id must be non zero value!');
|
$this->fail('Balance or Id must be non zero value!');
|
||||||
|
|
Loading…
Reference in New Issue