Added type-hint for EndShowNoticeOptionItems hooks.
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:45:49 +0000 (15:45 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:45:49 +0000 (15:45 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/ActivitySpam/ActivitySpamPlugin.php
plugins/Share/SharePlugin.php

index 28aae82cb080cd7ceec3c24271c993411fb3a08d..627668402345a21ec9b5584e4b01880749713f70 100644 (file)
@@ -142,7 +142,7 @@ class ActivitySpamPlugin extends Plugin
         return false;
     }
 
-    function onEndShowNoticeOptionItems($nli)
+    function onEndShowNoticeOptionItems(NoticeListItem $nli)
     {
         $profile = Profile::current();
 
index d34bcc779e2b2253efcd5d907270af17e16d0af4..492898090684abb4665de6952627163182b7206a 100644 (file)
@@ -227,7 +227,7 @@ class SharePlugin extends ActivityVerbHandlerPlugin
      *
      * @return void
      */
-    public function onEndShowNoticeOptionItems($nli)
+    public function onEndShowNoticeOptionItems(NoticeListItem $nli)
     {
         // FIXME: Use bitmasks (but be aware that PUBLIC_SCOPE is 0!)
         // Also: AHHH, $scope and $scoped are scarily similar looking.