Skip to content

Commit b69b9cc

Browse files
m6w6eli-darkly
authored andcommitted
Fix typo (#121)
1 parent 41fd3d3 commit b69b9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaunchDarkly/SegmentRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function matchesUser($user, $segmentKey, $segmentSalt)
3939
return true;
4040
}
4141
// All of the clauses are met. See if the user buckets in
42-
$bucketBy = ($this->_bucketBy === null) ? "key" : bucketBy;
42+
$bucketBy = ($this->_bucketBy === null) ? "key" : $this->_bucketBy;
4343
$bucket = VariationOrRollout::bucketUser($user, $segmentKey, $bucketBy, $segmentSalt);
4444
$weight = $this->_weight / 100000.0;
4545
return $bucket < $weight;

0 commit comments

Comments
 (0)