Skip to content

Commit 3b61c0f

Browse files
Merge pull request #113 from statsig-io/fix-boolean-custom-fields
Fix Boolean Custom Fields
2 parents 4901ed1 + b0164dd commit 3b61c0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/EvaluationUtils.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ public static function getValueAsString($value): ?string
169169
if (is_array($value)) {
170170
return implode(", ", $value);
171171
}
172+
if (is_bool($value)) {
173+
return $value ? "true" : "false";
174+
}
172175
return $value === null ? null : strval($value);
173176
}
174177

0 commit comments

Comments
 (0)