From: Roland Haeder 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=aa41afc28b9933d2c1da34504ad1c1ef4f020639;p=quix0rs-gnu-social.git Added type-hint for adaptNoticeListItem() method Signed-off-by: Roland Haeder --- 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 2c28bf6055..ce4b8e9f76 100644 --- a/plugins/QnA/QnAPlugin.php +++ b/plugins/QnA/QnAPlugin.php @@ -376,7 +376,7 @@ class QnAPlugin extends MicroAppPlugin return false; } - function adaptNoticeListItem($nli) { + function adaptNoticeListItem(NoticeListItem $nli) { return new QnAListItem($nli); }