From d3a0127daf00ecb0963bba280f6ebebbe99cbaa9 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 25 Apr 2019 11:58:09 +0200 Subject: [PATCH] Fix typo --- src/LaunchDarkly/SegmentRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaunchDarkly/SegmentRule.php b/src/LaunchDarkly/SegmentRule.php index 91e14cc29..3289d2814 100644 --- a/src/LaunchDarkly/SegmentRule.php +++ b/src/LaunchDarkly/SegmentRule.php @@ -39,7 +39,7 @@ public function matchesUser($user, $segmentKey, $segmentSalt) return true; } // All of the clauses are met. See if the user buckets in - $bucketBy = ($this->_bucketBy === null) ? "key" : bucketBy; + $bucketBy = ($this->_bucketBy === null) ? "key" : $this->_bucketBy; $bucket = VariationOrRollout::bucketUser($user, $segmentKey, $bucketBy, $segmentSalt); $weight = $this->_weight / 100000.0; return $bucket < $weight;