fix: operator precedence bug

This commit is contained in:
Dag 2025-03-25 23:50:00 +01:00
parent 1c45eff505
commit 4c482563c4

View File

@ -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'];