Skip to content

Commit f57de1d

Browse files
authored
Form::addGroup() loose type (#269)
Allow more types of $caption
1 parent 9f1063a commit f57de1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Forms/Form.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ public function addProtection(string $errorMessage = null): Controls\CsrfProtect
234234

235235
/**
236236
* Adds fieldset group to the form.
237+
* @param string|object $caption
237238
*/
238-
public function addGroup(string $caption = null, bool $setAsCurrent = true): ControlGroup
239+
public function addGroup($caption = null, bool $setAsCurrent = true): ControlGroup
239240
{
240241
$group = new ControlGroup;
241242
$group->setOption('label', $caption);

0 commit comments

Comments
 (0)