We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41fd3d3 commit b69b9ccCopy full SHA for b69b9cc
src/LaunchDarkly/SegmentRule.php
@@ -39,7 +39,7 @@ public function matchesUser($user, $segmentKey, $segmentSalt)
39
return true;
40
}
41
// All of the clauses are met. See if the user buckets in
42
- $bucketBy = ($this->_bucketBy === null) ? "key" : bucketBy;
+ $bucketBy = ($this->_bucketBy === null) ? "key" : $this->_bucketBy;
43
$bucket = VariationOrRollout::bucketUser($user, $segmentKey, $bucketBy, $segmentSalt);
44
$weight = $this->_weight / 100000.0;
45
return $bucket < $weight;
0 commit comments