From f522c0843869bd49298e2de034dc79db9a733d5c Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 24 Mar 2016 01:41:58 +0100 Subject: [PATCH] Stricter typing in Realtime plugin functions --- plugins/Realtime/RealtimePlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 172e9272af..8b7767ac15 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -311,7 +311,7 @@ class RealtimePlugin extends Plugin return false; // No default processing } - function noticeAsJson($notice) + function noticeAsJson(Notice $notice) { // FIXME: this code should be abstracted to a neutral third // party, like Notice::asJson(). I'm not sure of the ethics @@ -347,7 +347,7 @@ class RealtimePlugin extends Plugin return $arr; } - function getNoticeTags($notice) + function getNoticeTags(Notice $notice) { $tags = null;