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.
2 parents 999660a + b69b9cc commit f224cfcCopy full SHA for f224cfc
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