Skip to content

Commit

Permalink
Form::addGroup() loose type (#269)
Browse files Browse the repository at this point in the history
Allow more types of $caption
  • Loading branch information
kotr7 authored and dg committed Apr 12, 2021
1 parent ac5a0f8 commit 2749fd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,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);
Expand Down

0 comments on commit 2749fd0

Please sign in to comment.