Skip to content

Commit

Permalink
Merge pull request #592 from mogic-le/parenttype-setoption-returnself
Browse files Browse the repository at this point in the history
Make ParentType::setOption(s) return $this
  • Loading branch information
kristijanhusak authored Mar 6, 2020
2 parents 3223154 + cc04ab7 commit b6a4c4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Kris/LaravelFormBuilder/Fields/ParentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public function setOption($name, $value)
$this->children[$key]->setOption($name, $value);
}
}

return $this;
}

/**
Expand All @@ -120,6 +122,8 @@ public function setOptions($options)
$this->children[$key]->setOptions($options);
}
}

return $this;
}

/**
Expand Down

0 comments on commit b6a4c4a

Please sign in to comment.