Skip to content

Commit 4742eba

Browse files
committed
Fix consistency
1 parent e24d7c9 commit 4742eba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WorkerJS/PHPClient/MySQLTaskStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getTask($taskID) {
2929
throw new TaskNotFoundException("Task $taskID not found.");
3030
} else {
3131
$task = mysqli_fetch_assoc($result)["task"];
32-
return json_decode($task);
32+
return json_decode($task, true);
3333
}
3434
}
3535

src/WorkerJS/PHPClient/TaskMessageRequestHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(Client $client) {
2323
* @throws exceptions\UndefinedSettingsException
2424
*/
2525
public function handleRequest(string $body) {
26-
$body = json_decode($body);
26+
$body = json_decode($body, true);
2727
//TODO: Check protocol
2828

2929
if ($body === null && json_last_error() !== JSON_ERROR_NONE) {

0 commit comments

Comments
 (0)