From: Roland Haeder <roland@mxchange.org>
Date: Mon, 25 Jan 2016 15:33:36 +0000 (+0100)
Subject: Added type-hint for adaptNoticeListItem() method
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83dc00555bea1d4c3f625a20ba573ea93878eac0;p=quix0rs-gnu-social.git

Added type-hint for adaptNoticeListItem() method

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

diff --git a/lib/microappplugin.php b/lib/microappplugin.php
index 53fe5e9995..71d1e84fc0 100644
--- a/lib/microappplugin.php
+++ b/lib/microappplugin.php
@@ -117,7 +117,7 @@ abstract class MicroAppPlugin extends ActivityHandlerPlugin
      *
      * @return NoticeListItemAdapter adapter or null
      */
-    function adaptNoticeListItem($nli)
+    function adaptNoticeListItem(NoticeListItem $nli)
     {
       return null;
     }
diff --git a/plugins/QnA/QnAPlugin.php b/plugins/QnA/QnAPlugin.php
index d9dfc9a02b..b1ea04721f 100644
--- a/plugins/QnA/QnAPlugin.php
+++ b/plugins/QnA/QnAPlugin.php
@@ -370,7 +370,7 @@ class QnAPlugin extends MicroAppPlugin
         return false;
     }
 
-    function adaptNoticeListItem($nli) {
+    function adaptNoticeListItem(NoticeListItem $nli) {
         return new QnAListItem($nli);
     }