From: Roland Haeder Date: Mon, 25 Jan 2016 15:31:46 +0000 (+0100) Subject: Added type-hint for constructor of NoticeTreeItem class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=40454c54622a3c929081eebea04729456d085242;p=quix0rs-gnu-social.git Added type-hint for constructor of NoticeTreeItem class Signed-off-by: Roland Haeder --- 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() {