Skip to content

Commit b6a4c4a

Browse files
Merge pull request #592 from mogic-le/parenttype-setoption-returnself
Make ParentType::setOption(s) return $this
2 parents 3223154 + cc04ab7 commit b6a4c4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Kris/LaravelFormBuilder/Fields/ParentType.php

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public function setOption($name, $value)
106106
$this->children[$key]->setOption($name, $value);
107107
}
108108
}
109+
110+
return $this;
109111
}
110112

111113
/**
@@ -120,6 +122,8 @@ public function setOptions($options)
120122
$this->children[$key]->setOptions($options);
121123
}
122124
}
125+
126+
return $this;
123127
}
124128

125129
/**

0 commit comments

Comments
 (0)