Added type-hints for EndNoticeWhoGets hooks
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:33:06 +0000 (15:33 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:33:06 +0000 (15:33 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/Poll/PollPlugin.php

index 78262fdabcbd8092284b3a770202afb0be1eab9d..a65152200e113503608c9d938fb2892b385af81c 100644 (file)
@@ -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);