From b80992e61723eae2280a0a358a8f056f4082e855 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 18 Mar 2018 19:16:26 +0100 Subject: [PATCH] compatibility with nette/component-model --- composer.json | 2 +- src/Forms/Container.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 9ca75d8d6..7069947e4 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ ], "require": { "php": ">=7.1", - "nette/component-model": "^3.0", + "nette/component-model": "^3.0.0-beta2", "nette/http": "^2.3.8 || ~3.0.0", "nette/utils": "^3.0-beta2" }, diff --git a/src/Forms/Container.php b/src/Forms/Container.php index 8287eac6f..9cd4d4915 100644 --- a/src/Forms/Container.php +++ b/src/Forms/Container.php @@ -188,12 +188,10 @@ public function getCurrentGroup(): ?ControlGroup /** * Adds the specified component to the IContainer. - * @param string|int $name - * @param string|int $insertBefore * @return static * @throws Nette\InvalidStateException */ - public function addComponent(Nette\ComponentModel\IComponent $component, $name, $insertBefore = null) + public function addComponent(Nette\ComponentModel\IComponent $component, ?string $name, string $insertBefore = null) { parent::addComponent($component, $name, $insertBefore); if ($this->currentGroup !== null) {