Skip to content

Commit bba2500

Browse files
authored
Container::addHidden Allow any type so it works same as setDefaultValue (#245)
1 parent fdedfc2 commit bba2500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function addMultiUpload(string $name, $label = null): Controls\UploadCont
329329
/**
330330
* Adds hidden form control used to store a non-displayed value.
331331
*/
332-
public function addHidden(string $name, string $default = null): Controls\HiddenField
332+
public function addHidden(string $name, $default = null): Controls\HiddenField
333333
{
334334
return $this[$name] = (new Controls\HiddenField)
335335
->setDefaultValue($default);

0 commit comments

Comments
 (0)