Skip to content

Commit b80992e

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

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"require": {
1818
"php": ">=7.1",
19-
"nette/component-model": "^3.0",
19+
"nette/component-model": "^3.0.0-beta2",
2020
"nette/http": "^2.3.8 || ~3.0.0",
2121
"nette/utils": "^3.0-beta2"
2222
},

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)