Skip to content

Commit

Permalink
Merge pull request #821 from roelofr/hotfix/broken-command-arguments
Browse files Browse the repository at this point in the history
Fixed commands receiving argument names instead of values
  • Loading branch information
irazasyed authored Dec 10, 2020
2 parents 479650d + a13c194 commit 439552e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function make(Api $telegram, Update $update, array $entity)
$this->entity = $entity;
$this->arguments = $this->parseCommandArguments();

return call_user_func_array([$this, 'handle'], array_keys($this->getArguments()));
return call_user_func_array([$this, 'handle'], array_values($this->getArguments()));
}

/**
Expand Down

0 comments on commit 439552e

Please sign in to comment.