Skip to content

Commit 0312152

Browse files
authored
docs: Fix PHP syntax in Readme file (#120)
1 parent f047d21 commit 0312152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ If the flag management system you're using supports targeting, you can provide t
172172

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

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

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

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

0 commit comments

Comments
 (0)