Skip to content

Commit 9b47232

Browse files
committed
Toggle should default to false when value isn't configured
1 parent a31ecb0 commit 9b47232

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Transformers/ToggleTransformer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function transform(string $value): bool
1919
return match (true) {
2020
in_array($value, explode('|', $this->config('values.true'))) => true,
2121
in_array($value, explode('|', $this->config('values.false'))) => false,
22+
default => false,
2223
};
2324
}
2425
}

0 commit comments

Comments
 (0)