From: Roland Haeder Date: Mon, 25 Jan 2016 14:40:13 +0000 (+0100) Subject: Added type-hint for StartNoticeSourceLink hooks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c4ef83b946a330edf0cd0e5067267c9078b45cc3;p=quix0rs-gnu-social.git Added type-hint for StartNoticeSourceLink hooks. Signed-off-by: Roland Haeder --- diff --git a/plugins/Linkback/LinkbackPlugin.php b/plugins/Linkback/LinkbackPlugin.php index 3a7de0d045..1b5d3e53ba 100644 --- a/plugins/Linkback/LinkbackPlugin.php +++ b/plugins/Linkback/LinkbackPlugin.php @@ -362,7 +362,7 @@ class LinkbackPlugin extends Plugin return true; } - function onStartNoticeSourceLink($notice, &$name, &$url, &$title) + function onStartNoticeSourceLink(Notice $notice, &$name, &$url, &$title) { // If we don't handle this, keep the event handler going if (!in_array($notice->source, array('linkback'))) { diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index a984f86de1..c7dfa99d81 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -488,7 +488,7 @@ class OStatusPlugin extends Plugin * @param string out &$title * @return mixed hook return code */ - function onStartNoticeSourceLink($notice, &$name, &$url, &$title) + function onStartNoticeSourceLink(Notice $notice, &$name, &$url, &$title) { // If we don't handle this, keep the event handler going if (!in_array($notice->source, array('ostatus', 'share'))) {