diff --git a/composer.json b/composer.json index 3702eab..bfa211b 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ } }, "require": { - "nette/di" : "^2.4|^2.3", - "nette/forms" : "^2.4|^2.3" + "nette/di" : "^3.0", + "nette/forms" : "^3.0" }, "require-dev": { "nette/tester" : "~1.6.1", diff --git a/src/Controls/NotTranslatableRadioList.php b/src/Controls/NotTranslatableRadioList.php index e17446e..4a92508 100644 --- a/src/Controls/NotTranslatableRadioList.php +++ b/src/Controls/NotTranslatableRadioList.php @@ -29,7 +29,7 @@ class NotTranslatableRadioList extends Nette\Forms\Controls\RadioList * Just remove translations from each option * @return Nette\Forms\Helpers */ - public function getControl() + public function getControl(): Nette\Utils\Html { $input = ChoiceControl::getControl(); $items = $this->getItems(); diff --git a/src/Controls/NotTranslatableSelectBox.php b/src/Controls/NotTranslatableSelectBox.php index dd2dc94..88dd34c 100644 --- a/src/Controls/NotTranslatableSelectBox.php +++ b/src/Controls/NotTranslatableSelectBox.php @@ -25,7 +25,7 @@ class NotTranslatableSelectBox extends Nette\Forms\Controls\SelectBox * @param array $items [description] * @param boolean $useKeys [description] */ - public function setItems(array $items, $useKeys = TRUE) + public function setItems(array $items, bool $useKeys = TRUE) { if (!$useKeys) { $res = array(); @@ -50,7 +50,7 @@ public function setItems(array $items, $useKeys = TRUE) * Just remove translations from each option * @return Nette\Forms\Helpers */ - public function getControl() + public function getControl(): Nette\Utils\Html { $items = $this->getPrompt() === FALSE ? array() : array('' => $this->translate($this->getPrompt())); foreach ($this->options as $key => $value) {