From 37a6bfa36adee6b4f9e83e08c5fe5387d93e6cd8 Mon Sep 17 00:00:00 2001 From: Dalibor Korpar Date: Fri, 24 Feb 2023 22:28:06 +0100 Subject: [PATCH] update to nette forms 3.1.10 --- composer.json | 2 +- tests/Inputs/RadioInputTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);