From: Mikael Nordfeldth Date: Thu, 24 Mar 2016 00:41:58 +0000 (+0100) Subject: Stricter typing in Realtime plugin functions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f522c0843869bd49298e2de034dc79db9a733d5c;p=quix0rs-gnu-social.git Stricter typing in Realtime plugin functions --- 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;