From: Roland Haeder <roland@mxchange.org>
Date: Mon, 25 Jan 2016 14:33:06 +0000 (+0100)
Subject: Added type-hints for EndNoticeWhoGets hooks
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c7e296bc959106beb60d39e2dd3d7b2b5d27e199;p=quix0rs-gnu-social.git

Added type-hints for EndNoticeWhoGets hooks

Signed-off-by: Roland Haeder <roland@mxchange.org>
---

diff --git a/plugins/Poll/PollPlugin.php b/plugins/Poll/PollPlugin.php
index 78262fdabc..a65152200e 100644
--- a/plugins/Poll/PollPlugin.php
+++ b/plugins/Poll/PollPlugin.php
@@ -404,7 +404,7 @@ class PollPlugin extends MicroAppPlugin
 
     // Hide poll responses for @chuck
 
-    function onEndNoticeWhoGets($notice, &$ni) {
+    function onEndNoticeWhoGets(Notice $notice, array &$ni) {
         if ($notice->object_type == self::POLL_RESPONSE_OBJECT) {
             foreach ($ni as $id => $source) {
                 $user = User::getKV('id', $id);