Skip to content

Commit

Permalink
Fix: PowerMonitor invoked Client::get() with 2 parameters, 1 required
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Dec 12, 2024
1 parent 585fb47 commit 8fb93e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public function __construct()
->asJson();
}

public function get(string $endpoint): Response
public function get(string $endpoint, array|string|null $query = null): Response
{
return $this->client->get($endpoint);
return $this->client->get($endpoint, $query);
}

public function post(string $endpoint, array $data = []): Response
Expand Down

0 comments on commit 8fb93e9

Please sign in to comment.