Skip to content

Commit

Permalink
docs: Fix remote evaluation example in README file (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetechdabbler authored Dec 13, 2023
1 parent 7f1dc75 commit 5d991a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ $user = \AmplitudeExperiment\User::builder()
->userId('[email protected]')
->userProperties(['premium' => True])
->build();
$variants = experiment.fetch($user);

$variants = $client->fetch($user)->wait();

// (3) Access a flag's variant
$variant = $variants['FLAG_KEY'] ?? null;
Expand Down

0 comments on commit 5d991a8

Please sign in to comment.