Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Example composer dependencies:
{
"require": {
"php": ">=8.2",
"launchdarkly/openfeature-server": "^1.0"
"launchdarkly/openfeature-server": "^2.1"
}
}
```
Expand Down Expand Up @@ -115,12 +115,12 @@ $attributes = [
"kind" => "multi",
"organization" => [
"name" => "the-org-name",
"targetingKey", "my-org-key",
"myCustomAttribute", "myAttributeValue"
"targetingKey" => "my-org-key",
"myCustomAttribute" => "myAttributeValue",
],
"user" => [
"key" => "my-user-key",
"anonymous", true
"anonymous" => true,
]
];
$context = new EvaluationContext(null, new Attributes($attributes));
Expand All @@ -142,7 +142,7 @@ $context = new EvaluationContext("org-key", new Attributes($attributes));

```php
$attributes = [
"kind" => "organization",
"kind" => "multi",
"organization" => [
"name" => "the-org-name",
"targetingKey" => "my-org-key",
Expand All @@ -153,7 +153,7 @@ $attributes = [
],
"user" => [
"key" => "my-user-key",
"anonymous" = > true,
"anonymous" => true,
// This attribute will not be private.
"myCustomAttribute" => "myAttributeValue",
]
Expand Down
Loading