Browse Source

Fix the Pusher parameter order to prevent a PHP error

pull/1559/head
Timothée Jaussoin 4 months ago
parent
commit
2f100e2801
  1. 2
      app/Workers/Pusher/Pusher.php
  2. 2
      workers/pusher.php

2
app/Workers/Pusher/Pusher.php

@ -25,8 +25,8 @@ class Pusher
public function send(
string $userId,
?string $tag = null,
string $title,
?string $tag = null,
?string $body = null,
?string $picture = null,
?array $actions = [],

2
workers/pusher.php

@ -21,8 +21,8 @@ $handler = function (ServerRequestInterface $request) use ($pusher) {
return new Promise(function () use ($data, $pusher) {
$pusher->send(
userId: $data->user_id,
tag: $data->tag,
title: $data->title,
tag: $data->tag,
body: $data->body,
picture: $data->picture,
actions: $data->actions,

Loading…
Cancel
Save