]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added type-hint for EndShowNoticeOptionItems hooks.
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:45:49 +0000 (15:45 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:21:32 +0000 (00:21 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/ActivitySpam/ActivitySpamPlugin.php
plugins/Share/SharePlugin.php

index b0ea898d66c1b43faa2b3063dcfc2a7a84c552c2..5e5adf972cc3cf527673db30275c7d40f523846e 100644 (file)
@@ -144,7 +144,7 @@ class ActivitySpamPlugin extends Plugin
         return false;
     }
 
-    function onEndShowNoticeOptionItems($nli)
+    function onEndShowNoticeOptionItems(NoticeListItem $nli)
     {
         $profile = Profile::current();
 
index 31bc55038f7165351d287af060e089f359e27791..84ba42a7b99cab6d8effec3507128078b31875f1 100644 (file)
@@ -228,7 +228,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.