Skip to content
This repository was archived by the owner on May 1, 2018. It is now read-only.

fix warning when using group on form-horizontal#5

Open
donnykurnia wants to merge 1 commit intoJasonKaz:3.xfrom
donnykurnia:patch-2
Open

fix warning when using group on form-horizontal#5
donnykurnia wants to merge 1 commit intoJasonKaz:3.xfrom
donnykurnia:patch-2

Conversation

@donnykurnia
Copy link

get_class should only check the $Args[1].

Found the bug in the example, using form-horizontal for the file field will generate warning because $Args[$i] when $i === $ArgCount - 1 is a string ("Help Text"):

$Form->group($Form->label('File'), new \JasonKaz\FormBuild\File(), "Help Text");

`get_class` should only check the `$Args[1]`.

Found the bug in the example, using form-horizontal for the file field will generate warning because `$Args[$i]` when `$i === $ArgCount - 1` is a string (`"Help Text"`):

    $Form->group($Form->label('File'), new \JasonKaz\FormBuild\File(), "Help Text");
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant