From 4cb2500c9dc34b9149bd9b3583ad8acab9a10abb Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 3 Sep 2024 16:35:54 +0200 Subject: [PATCH] removed dead code --- tests/dibi/Result.normalize.phpt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/dibi/Result.normalize.phpt b/tests/dibi/Result.normalize.phpt index 7a08ce9a..6ecea60a 100644 --- a/tests/dibi/Result.normalize.phpt +++ b/tests/dibi/Result.normalize.phpt @@ -222,14 +222,10 @@ test('', function () { Assert::same(['col' => 1], $result->test(['col' => true])); Assert::same(['col' => 0], $result->test(['col' => false])); - if (PHP_VERSION_ID < 80000) { - Assert::same(['col' => 0], @$result->test(['col' => ''])); // triggers warning since PHP 7.1 - } else { - Assert::exception( - fn() => Assert::same(['col' => 0], $result->test(['col' => ''])), - TypeError::class, - ); - } + Assert::exception( + fn() => Assert::same(['col' => 0], $result->test(['col' => ''])), + TypeError::class, + ); Assert::same(['col' => 0], $result->test(['col' => '0'])); Assert::same(['col' => 1], $result->test(['col' => '1']));