We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1b97b commit edfc435Copy full SHA for edfc435
src/Forms/Container.php
@@ -188,12 +188,10 @@ public function getCurrentGroup(): ?ControlGroup
188
189
/**
190
* Adds the specified component to the IContainer.
191
- * @param string|int $name
192
- * @param string|int $insertBefore
193
* @return static
194
* @throws Nette\InvalidStateException
195
*/
196
- public function addComponent(Nette\ComponentModel\IComponent $component, $name, $insertBefore = null)
+ public function addComponent(Nette\ComponentModel\IComponent $component, ?string $name, string $insertBefore = null)
197
{
198
parent::addComponent($component, $name, $insertBefore);
199
if ($this->currentGroup !== null) {
0 commit comments