Skip to content

Commit e86a452

Browse files
committed
fixed typo
1 parent 04b250a commit e86a452

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/WorkerJS/PHPClient/HTTPClientTask.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public function sendTask() {
3333
$url = $this->client->getSetting("api_base")."/task";
3434
$payload = $this->getTask();
3535

36-
$webhook = $this->client->getSettings("task-webhook");
36+
$webhook = $this->client->getSetting("task-webhook");
3737

3838
if ($webhook === null) {
3939
throw new RequestException("You need to set webhook url.");
4040
}
4141

42-
$payload->webhook = $webhook;
42+
$payload['webhook'] = $webhook;
4343

4444
$taskResponse = $this->sendRequest($url, $payload);
4545

src/WorkerJS/PHPClient/TaskMessageRequestHandler.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ public function __construct(Client $client) {
1717
$this->client = $client;
1818
}
1919

20-
/**
21-
* @param string $body
22-
* @throws exceptions\InvalidApiException
23-
* @throws exceptions\UndefinedSettingsException
24-
*/
20+
/**
21+
* @param string $body
22+
* @throws InvalidRequestException
23+
* @throws exceptions\InvalidApiException
24+
* @throws exceptions\TaskNotFoundException
25+
* @throws exceptions\UndefinedSettingsException
26+
*/
2527
public function handleRequest(string $body) {
2628
$body = json_decode($body, true);
2729
//TODO: Check protocol

0 commit comments

Comments
 (0)