We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e24d7c9 commit 4742ebaCopy full SHA for 4742eba
src/WorkerJS/PHPClient/MySQLTaskStore.php
@@ -29,7 +29,7 @@ public function getTask($taskID) {
29
throw new TaskNotFoundException("Task $taskID not found.");
30
} else {
31
$task = mysqli_fetch_assoc($result)["task"];
32
- return json_decode($task);
+ return json_decode($task, true);
33
}
34
35
src/WorkerJS/PHPClient/TaskMessageRequestHandler.php
@@ -23,7 +23,7 @@ public function __construct(Client $client) {
23
* @throws exceptions\UndefinedSettingsException
24
*/
25
public function handleRequest(string $body) {
26
- $body = json_decode($body);
+ $body = json_decode($body, true);
27
//TODO: Check protocol
28
if ($body === null && json_last_error() !== JSON_ERROR_NONE) {
0 commit comments