Stricter typing in Realtime plugin functions

This commit is contained in:
Mikael Nordfeldth 2016-03-24 01:41:58 +01:00
parent 6b4c331060
commit f522c08438
1 changed files with 2 additions and 2 deletions

View File

@ -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;