From 2f100e28011d1f7f7eec3d1bf6bfd0638f9a7167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Wed, 25 Mar 2026 18:00:20 +0100 Subject: [PATCH] Fix the Pusher parameter order to prevent a PHP error --- app/Workers/Pusher/Pusher.php | 2 +- workers/pusher.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Workers/Pusher/Pusher.php b/app/Workers/Pusher/Pusher.php index 919c3b6be..bbeb5b607 100644 --- a/app/Workers/Pusher/Pusher.php +++ b/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 = [], diff --git a/workers/pusher.php b/workers/pusher.php index f67f420e0..5f2699221 100644 --- a/workers/pusher.php +++ b/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,