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 f334db5 commit bb0e566Copy full SHA for bb0e566
README.md
@@ -24,7 +24,7 @@ Your first feature flag
24
2. In your application code, use the feature's key to check whether the flag is on for each user:
25
26
$user = new LaunchDarkly\LDUser("[email protected]");
27
- if ($client->getFlag("your.flag.key", $user)) {
+ if ($client->toggle("your.flag.key", $user)) {
28
# application code to show the feature
29
} else {
30
# the code to run if the feature is off
0 commit comments