From 83dc00555bea1d4c3f625a20ba573ea93878eac0 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 25 Jan 2016 16:33:36 +0100 Subject: [PATCH] Added type-hint for adaptNoticeListItem() method Signed-off-by: Roland Haeder --- lib/microappplugin.php | 2 +- plugins/QnA/QnAPlugin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5