Skip to content

Commit 61640e4

Browse files
committed
handle empty string case as false value
1 parent b4437c5 commit 61640e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solid/lib/BaseServerConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private function castToBool(string $mixedValue): bool
214214
$mixedValue = strtolower($mixedValue);
215215
if ($mixedValue === 'true' || $mixedValue === '1') {
216216
$value = true;
217-
} elseif ($mixedValue === 'false' || $mixedValue === '0') {
217+
} elseif ($mixedValue === 'false' || $mixedValue === '0' || $mixedValue === '') {
218218
$value = false;
219219
} else {
220220
$error = [

0 commit comments

Comments
 (0)