]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added type-hint for StartMakeEntryForm and renamed $out to $action
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 15:37:38 +0000 (16:37 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:21:34 +0000 (00:21 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
lib/microappplugin.php
plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php

index 8c0744806e9a0541faa0e0db264e11894588b03f..fdf0c2145fefd2d43b4b7b004aeb252dfa66aa70 100644 (file)
@@ -130,10 +130,10 @@ abstract class MicroAppPlugin extends ActivityHandlerPlugin
         return true;
     }
 
-    function onStartMakeEntryForm($tag, $out, &$form)
+    function onStartMakeEntryForm($tag, Action $action, Form &$form)
     {
         if ($tag == $this->tag()) {
-            $form = $this->entryForm($out);
+            $form = $this->entryForm($action);
             return false;
         }
 
index aa94c349d0054526e4249aaae87b3c8ed5521912..b5e1eed8785eda70581c63ab00c03ad041f12bf7 100644 (file)
@@ -240,7 +240,7 @@ class RequireValidatedEmailPlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onStartMakeEntryForm($tag, $action, &$form)
+    function onStartMakeEntryForm($tag, Action $action, Form &$form)
     {
         $user = common_current_user();
         if (!empty($user)) {