From 40454c54622a3c929081eebea04729456d085242 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 25 Jan 2016 16:31:46 +0100 Subject: [PATCH] Added type-hint for constructor of NoticeTreeItem class Signed-off-by: Roland Haeder --- plugins/GNUsocialProfileExtensions/lib/noticetree.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GNUsocialProfileExtensions/lib/noticetree.php b/plugins/GNUsocialProfileExtensions/lib/noticetree.php index 95df528388..7f28fc6f25 100644 --- a/plugins/GNUsocialProfileExtensions/lib/noticetree.php +++ b/plugins/GNUsocialProfileExtensions/lib/noticetree.php @@ -111,7 +111,7 @@ class NoticeTree extends NoticeList class NoticeTreeItem extends NoticeListItem { - function __construct($notice, $out=null) + function __construct(Notice $notice, Action $out=null) { parent::__construct($notice, $out); //TODO: Rewrite this @@ -124,7 +124,7 @@ class NoticeTreeItem extends NoticeListItem $cnt++; } $this->faves = $cnt; - } + } function showStart() { -- 2.39.5