diff --git a/composer.json b/composer.json index 6c3ca06..66cacef 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ ], "require": { "php": ">=7.2", - "nette/forms": "3.1.9", + "nette/forms": "3.1.10", "nette/application": "^3.0" }, "require-dev": { diff --git a/tests/Inputs/RadioInputTest.php b/tests/Inputs/RadioInputTest.php index db47497..d017b61 100644 --- a/tests/Inputs/RadioInputTest.php +++ b/tests/Inputs/RadioInputTest.php @@ -12,7 +12,7 @@ class RadioInputTest extends BaseTest public function testRadioInput(): void { $form = new BootstrapForm(); - $input = $form->addRadioList('txt', 'lbl', [1 => 1, 2 => 2]); + $input = $form->addRadioList('txt', 'lbl', [1 => '1', 2 => '2']); $this->assertEquals('
', (string) $input->getControl()); } @@ -21,7 +21,7 @@ public function testRadioInputV5(): void BootstrapForm::switchBootstrapVersion(BootstrapVersion::V5); $form = new BootstrapForm(); - $input = $form->addRadioList('txt', 'lbl', [1 => 1, 2 => 2]); + $input = $form->addRadioList('txt', 'lbl', [1 => '1', 2 => '2']); $this->assertEquals('
', (string) $input->getControl()); BootstrapForm::switchBootstrapVersion(BootstrapVersion::V4);