From 7e23ed7342bb9dc9e17227e888d90f765a5f18d1 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 25 Jan 2016 16:37:38 +0100 Subject: [PATCH] Added type-hint for StartMakeEntryForm and renamed $out to $action Signed-off-by: Roland Haeder --- lib/microappplugin.php | 4 ++-- plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/microappplugin.php b/lib/microappplugin.php index 8c0744806e..fdf0c2145f 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -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; } diff --git a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php index aa94c349d0..b5e1eed878 100644 --- a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php +++ b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php @@ -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)) { -- 2.39.5