]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added type-hint for adaptNoticeListItem() method
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 15:33:36 +0000 (16:33 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:21:33 +0000 (00:21 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
lib/microappplugin.php
plugins/QnA/QnAPlugin.php

index 53fe5e9995eab4d7bf467c7015d769c8122dbd04..71d1e84fc0d8eba5e007cdeba07465f0d22ffdb1 100644 (file)
@@ -117,7 +117,7 @@ abstract class MicroAppPlugin extends ActivityHandlerPlugin
      *
      * @return NoticeListItemAdapter adapter or null
      */
-    function adaptNoticeListItem($nli)
+    function adaptNoticeListItem(NoticeListItem $nli)
     {
       return null;
     }
index d9dfc9a02bf4616b2d9dffa886b98fddf3593c42..b1ea04721f65b5cbfe26b2129907374af1478a1b 100644 (file)
@@ -370,7 +370,7 @@ class QnAPlugin extends MicroAppPlugin
         return false;
     }
 
-    function adaptNoticeListItem($nli) {
+    function adaptNoticeListItem(NoticeListItem $nli) {
         return new QnAListItem($nli);
     }