Skip to content

Commit e849d6e

Browse files
committed
compare string values for IN
1 parent 1d0f384 commit e849d6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Engine/Engine.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ private static function _contextMatchesCondition(
288288
$inValues = explode(',', $condition->value);
289289
}
290290
}
291-
$inValues = array_map($cast, $inValues);
291+
$contextValue = strval($contextValue);
292+
$inValues = array_map('strval', $inValues);
292293
return in_array($contextValue, $inValues, strict: true);
293294

294295
case SegmentConditionOperator::PERCENTAGE_SPLIT:

0 commit comments

Comments
 (0)