Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flags): Safe access flags in decide v2 #55

Merged
merged 4 commits into from
Sep 25, 2023
Merged

Conversation

neilkakkar
Copy link
Contributor

Since decide v2 doesn't return all flags, but just true flags, this leads to an error when you're checking for a false flag:

Unable to get feature variants:Undefined array key "flag-key"

This PR defends against this.

@neilkakkar
Copy link
Contributor Author

looking again, it seems like there was a test for this already, it just wasn't failing because it goes to the error log, instead of raising an exception 👀 - fixing

@neilkakkar neilkakkar merged commit 70229c5 into master Sep 25, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants