Skip to content
Snippets Groups Projects
Commit 2bd1d2c7 authored by Michael Grosse's avatar Michael Grosse
Browse files

fix: Make this Form method chainable as it should be

parent 068abb2b
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ class DropdownElement extends InputElement {
* * the value being an array of options as defined in @see OptGroup::options()
*
* @param null|array $optGroups
* @return array
* @return OptGroup[]|DropdownElement
*/
public function optGroups($optGroups = null) {
if($optGroups === null) {
......@@ -65,6 +65,7 @@ class DropdownElement extends InputElement {
foreach ($optGroups as $label => $options) {
$this->addOptGroup($label, $options);
}
return $this;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment