Repository navigation
docs: Require 2.1 in the README install snippet and fix the multi-context examples - #36
Open
kinyoklion wants to merge 2 commits into
Open
kinyoklion wants to merge 2 commits into
kinyoklion wants to merge 2 commits into
Conversation
Co-Authored-By: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
…amples Co-Authored-By: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
kinyoklion
marked this pull request as ready for review
November 16, 2026 22:18
There was a problem hiding this comment.
Automated risk review (dry run): Low
This PR would be automatically approved.
Why: The only change is README.md: the Composer install snippet now requires launchdarkly/openfeature-server ^2.1, and the multi-context examples fix => key-value syntax, kind multi, and a parse error. No library, CI, or policy files changed.
If you disagree with this review, share this PR in #feedback-agent-approvals or submit a changes-requested review explaining why.
Sent by Cursor Approval Agent: Dry-Run PR Approver
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Requirements
Related issues
The same example bugs were fixed in the Python provider README in launchdarkly/openfeature-python-server#75.
Describe the solution you've provided
"launchdarkly/openfeature-server": "^1.0". It now asks for^2.1, the first release with the flag metadata the README describes.^2.0would still allow 2.0.0, which doesn't have it."targetingKey", "my-org-key","myCustomAttribute", "myAttributeValue"and"anonymous", trueused,where=>belongs. That's valid PHP, but it builds list entries instead of attributes. They now use=>."kind" => "organization"is now"kind" => "multi", and"anonymous" = > true(a parse error) is now"anonymous" => true.Verification
I ran
php -l(PHP 8.4,composer:2image) on everyphpblock in the README; all of them pass. I also ran both multi-context examples throughEvaluationContextConverter::toLdContext. Each builds a valid multi-context withorganizationanduserkinds, andmyCustomAttributeis private only onorganization.I checked the rest of the README for stale version text. The PHP 8.2 minimum matches
composer.json, and the note that flag metadata needs OpenFeature PHP SDK 2.4.0 matches theopen-feature/sdk^2.4requirement.Describe alternatives you've considered
None.
Additional context
None.
SDK-3583
Note
Overview
Updates README Getting started and multi-context examples so install and copy-paste snippets match the 2.1+ provider and valid OpenFeature multi-context encoding.
The Composer requisites now require
launchdarkly/openfeature-server^2.1 (was ^1.0), aligning the install line with the first release that documents flag metadata. Multi-context PHP examples are corrected: list-style,entries become=>key-value pairs, the private-attributes multi-context setskindtomulti(notorganization), and a brokenanonymousassignment is fixed to=>.Reviewed by Cursor Bugbot for commit c45caef. Bugbot is set up for automated code reviews on this repo. Configure here.