Skip to content

Commit edfc435

Browse files
committed
compatibility with nette/component-model
1 parent 1f1b97b commit edfc435

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Forms/Container.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,10 @@ public function getCurrentGroup(): ?ControlGroup
188188

189189
/**
190190
* Adds the specified component to the IContainer.
191-
* @param string|int $name
192-
* @param string|int $insertBefore
193191
* @return static
194192
* @throws Nette\InvalidStateException
195193
*/
196-
public function addComponent(Nette\ComponentModel\IComponent $component, $name, $insertBefore = null)
194+
public function addComponent(Nette\ComponentModel\IComponent $component, ?string $name, string $insertBefore = null)
197195
{
198196
parent::addComponent($component, $name, $insertBefore);
199197
if ($this->currentGroup !== null) {

0 commit comments

Comments
 (0)