Skip to content

Commit bb0e566

Browse files
committed
Rename getFlag to toggle
1 parent f334db5 commit bb0e566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Your first feature flag
2424
2. In your application code, use the feature's key to check whether the flag is on for each user:
2525

2626
$user = new LaunchDarkly\LDUser("[email protected]");
27-
if ($client->getFlag("your.flag.key", $user)) {
27+
if ($client->toggle("your.flag.key", $user)) {
2828
# application code to show the feature
2929
} else {
3030
# the code to run if the feature is off

0 commit comments

Comments
 (0)