- Defined sets() as chainable

This commit is contained in:
Dave Mc Nicoll 2026-02-25 19:15:11 +00:00
parent ca2d71e3ed
commit 3d412d6a46

View File

@ -147,11 +147,13 @@ class FormContext implements FormContextInterface
return $this->formContextValues[$key] = $value;
}
public function sets(array $values) : void
public function sets(array $values) : static
{
foreach($values as $key =>$value) {
$this->set($key, $value);
}
return $this;
}