From 069fb92f54c4d177a3c87cbb226589e3d1671b05 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 19 Jun 2024 15:12:07 +0100 Subject: [PATCH] [core] test for bool_escape(null) == false --- core/tests/PolyfillsTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/tests/PolyfillsTest.php b/core/tests/PolyfillsTest.php index 03f95fe6..06ea0212 100644 --- a/core/tests/PolyfillsTest.php +++ b/core/tests/PolyfillsTest.php @@ -46,6 +46,8 @@ class PolyfillsTest extends TestCase $this->assertTrue(bool_escape(true)); $this->assertFalse(bool_escape(false)); + $this->assertFalse(bool_escape(null)); + $this->assertTrue(bool_escape("true")); $this->assertFalse(bool_escape("false"));