Skip to content

Commit dc0ace9

Browse files
committed
Merge branch 'eb/sc-172160/events' into 5.0
2 parents ffcbdcc + c053007 commit dc0ace9

File tree

5 files changed

+7
-672
lines changed

5 files changed

+7
-672
lines changed

src/LaunchDarkly/EvaluationDetail.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,21 @@ public function __construct(mixed $value, ?int $variationIndex, EvaluationReason
2929
}
3030

3131
/**
32-
* Returns the value of the flag variation for the user.
32+
* Returns the result of the flag evaluation. This will be either one of the flag's variations or the default
33+
* value that was passed to the {@see \LaunchDarkly\LDClient::variationDetail()} method.
3334
*
34-
* @return mixed
35+
* @return mixed the flag value
3536
*/
3637
public function getValue(): mixed
3738
{
3839
return $this->_value;
3940
}
4041

4142
/**
42-
* Returns the index of the flag variation for the user, e.g. 0 for the first variation -
43-
* or null if it was the default value.
43+
* The index of the returned value within the flag's list of variations, e.g. 0 for the first variation--
44+
* or null if it was the default value (evaluation failed).
4445
*
45-
* @return int | null
46+
* @return ?int the variation index if applicable
4647
*/
4748
public function getVariationIndex(): ?int
4849
{

src/LaunchDarkly/LDClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class LDClient
7676
* Defaults to false.
7777
* - `private_attribute_names`: An optional array of user attribute names to be marked private. Any users sent to LaunchDarkly
7878
* with this configuration active will have attributes with these names removed. You can also set private attributes on a
79-
* per-user basis in LDUserBuilder.
79+
* per-user basis in the LDContext builder.
8080
* - Other options may be available depending on any features you are using from the `LaunchDarkly\Integrations` namespace.
8181
*
8282
* @return LDClient

src/LaunchDarkly/LDUser.php

Lines changed: 0 additions & 183 deletions
This file was deleted.

0 commit comments

Comments
 (0)