- Defined sets() as chainable

This commit is contained in:
Dave Mc Nicoll committed 2026-02-25 19:15:21 +00:00
1 parent ca2d71e3ed
commit 3d412d6a46
1 file changed
+3 -1
+3 -1
View File
@@ -147,11 +147,13 @@ class FormContext implements FormContextInterface
return $this->formContextValues[$key] = $value; return $this->formContextValues[$key] = $value;
} }
public function sets(array $values) : void public function sets(array $values) : static
{ {
foreach($values as $key =>$value) { foreach($values as $key =>$value) {
$this->set($key, $value); $this->set($key, $value);
} }
return $this;
} }