Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
YeePHP: fix request id count
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkEzz committed Jan 2, 2021
1 parent a146b10 commit f6a26ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/YeePHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ private function createJobArray(string $method, array $params): array
throw new Exception('Invalid method supplied ' . $method);

return [
'id' => (count($this->jobs)),
'id' => !empty($this->jobs) ? count($this->jobs) : 0,
'method' => $method,
'params' => $params
];
Expand Down

0 comments on commit f6a26ae

Please sign in to comment.