Skip to content

Commit

Permalink
docs: Fix PHP syntax in Readme file (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesChou authored Mar 15, 2024
1 parent f047d21 commit 0312152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ If the flag management system you're using supports targeting, you can provide t

```php
// add a value to the global context
$api = OpenFeatureAPI.getInstance();
$api = OpenFeatureAPI::getInstance();
$api->setEvaluationContext(new EvaluationContext('targetingKey', ['myGlobalKey' => 'myGlobalValue']));

// add a value to the client context
Expand All @@ -195,7 +195,7 @@ Once you've added a hook as a dependency, it can be registered at the global, cl

```php
// add a hook globally, to run on all evaluations
$api = OpenFeatureAPI.getInstance();
$api = OpenFeatureAPI::getInstance();
$api->addHook(new ExampleGlobalHook());

// add a hook on this client, to run on all evaluations made by this client
Expand Down

0 comments on commit 0312152

Please sign in to comment.