From 9d6aa5ee38d5b2bd933e5f8d9504c39ea5f71bec Mon Sep 17 00:00:00 2001 From: Dag Date: Tue, 25 Mar 2025 23:52:47 +0100 Subject: [PATCH] fix: operator precedence bug (#4494) --- lib/BridgeAbstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php index b814097a..f08d201f 100644 --- a/lib/BridgeAbstract.php +++ b/lib/BridgeAbstract.php @@ -240,7 +240,7 @@ abstract class BridgeAbstract if (isset($input[$name])) { $value = $input[$name]; } else { - if ($properties['type'] ?? null === 'checkbox') { + if (($properties['type'] ?? null) === 'checkbox') { $value = false; } elseif (isset($properties['defaultValue'])) { $value = $properties['defaultValue'];