From c356f1b775445ad28095a9046c9bbb0434bc59a3 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sat, 7 Nov 2026 09:37:52 +0000 Subject: [PATCH 1/2] docs: Update README install snippet to require version 2.0 Co-Authored-By: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fe772fa..83cb812 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Example composer dependencies: { "require": { "php": ">=8.2", - "launchdarkly/openfeature-server": "^1.0" + "launchdarkly/openfeature-server": "^2.0" } } ``` From c45caefdadc86e273ba266f2f8697d40e77bfe47 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 09:39:01 +0000 Subject: [PATCH 2/2] docs: Require 2.1 in the install snippet and fix the multi-context examples Co-Authored-By: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com> --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 83cb812..6b8afab 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Example composer dependencies: { "require": { "php": ">=8.2", - "launchdarkly/openfeature-server": "^2.0" + "launchdarkly/openfeature-server": "^2.1" } } ``` @@ -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)); @@ -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", @@ -153,7 +153,7 @@ $attributes = [ ], "user" => [ "key" => "my-user-key", - "anonymous" = > true, + "anonymous" => true, // This attribute will not be private. "myCustomAttribute" => "myAttributeValue", ]