Skip to content

Commit 43c4765

Browse files
Merge pull request #98 from statsig-io/php-array-string-ops
Stringify Arrays for String Operators
2 parents 0c2fafa + 2a07f2d commit 43c4765

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
@@ -166,6 +166,9 @@ public static function getFromEnvironment($user, $field)
166166

167167
public static function getValueAsString($value): ?string
168168
{
169+
if (is_array($value)) {
170+
return implode(", ", $value);
171+
}
169172
return $value === null ? null : strval($value);
170173
}
171174

0 commit comments

Comments
 (0)