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 committed Apr 12, 2021
1 parent 9f1063a commit f57de1d
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 @@ -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);
Expand Down

0 comments on commit f57de1d

Please sign in to comment.