Added type-hint for adaptNoticeListItem() method
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 15:33:36 +0000 (16:33 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 15:33:36 +0000 (16:33 +0100)
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 2c28bf6055483bef7e6468ba4e85e7ef3469b83a..ce4b8e9f765b585188aeaea23f6770701d02162a 100644 (file)
@@ -376,7 +376,7 @@ class QnAPlugin extends MicroAppPlugin
         return false;
     }
 
-    function adaptNoticeListItem($nli) {
+    function adaptNoticeListItem(NoticeListItem $nli) {
         return new QnAListItem($nli);
     }