diff --git a/src/Multiplier.php b/src/Multiplier.php index c24f3fe..5f9577b 100644 --- a/src/Multiplier.php +++ b/src/Multiplier.php @@ -11,6 +11,7 @@ use Nette\Forms\Controls\BaseControl; use Nette\Forms\Controls\SubmitButton; use Nette\Forms\Form; +use Nette\InvalidStateException; use Nette\Utils\ArrayHash; use Nette\Utils\Arrays; use Traversable; @@ -399,10 +400,11 @@ protected function fillContainer(Container $container): void /** * @return string[] + * @throws InvalidStateException when not attached. */ protected function getHtmlName(): array { - return explode('-', $this->lookupPath(Form::class) ?? ''); + return explode('-', $this->lookupPath(Form::class)); } protected function createContainer(): Container