From f57de1d7373c766bb40618d28d4223dc69683af4 Mon Sep 17 00:00:00 2001 From: kotr7 <82367931+kotr7@users.noreply.github.com> Date: Mon, 12 Apr 2021 12:42:32 +0200 Subject: [PATCH] Form::addGroup() loose type (#269) Allow more types of $caption --- src/Forms/Form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 366f872f5..b6621a2f1 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -234,8 +234,9 @@ public function addProtection(string $errorMessage = null): Controls\CsrfProtect /** * Adds fieldset group to the form. + * @param string|object $caption */ - public function addGroup(string $caption = null, bool $setAsCurrent = true): ControlGroup + public function addGroup($caption = null, bool $setAsCurrent = true): ControlGroup { $group = new ControlGroup; $group->setOption('label', $caption);