]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added type-hint for StartNoticeSourceLink hooks.
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:40:13 +0000 (15:40 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 14:40:13 +0000 (15:40 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/Linkback/LinkbackPlugin.php
plugins/OStatus/OStatusPlugin.php

index 3a7de0d04558336f4166bc99211918d403e362a0..1b5d3e53bac2394c173381b3463bf0ec73d4e90d 100644 (file)
@@ -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'))) {
index a984f86de11775893b671d4733fa17acd6a02239..c7dfa99d815f725b85730375ba44f701a617d7bf 100644 (file)
@@ -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'))) {