Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Multiplier.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ public function getContainers(): iterable
}

/**
* @param mixed[]|object $values
* @internal
*/
public function setValues(array|object $values, bool $erase = false, bool $onlyDisabled = false): static
Expand Down Expand Up @@ -389,7 +390,9 @@ protected function isFormSubmitted(): bool
protected function loadHttpData(): void
{
if ($this->isFormSubmitted()) {
$httpData = Arrays::get($this->form->getHttpData(), $this->getHtmlName(), []);
/** @var array<mixed> The other types from the union can only be returned when the htmlName argument is passed. https://github.com/nette/forms/pull/333 */
$httpData = $this->getForm()->getHttpData();
$httpData = Arrays::get($httpData, $this->getHtmlName(), []);
$this->resolver = new ComponentResolver($httpData ?? [], $this->maxCopies, $this->minCopies);
}
}
Expand Down