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

Client::loadFlags() triggers type error when request in localFlags() doesn't return data #50

Closed
mdio opened this issue Jun 8, 2023 · 1 comment

Comments

@mdio
Copy link

mdio commented Jun 8, 2023

If the API request in localFlags() returns null, loadFlags() causes this type error in PHP 8.0:

array_key_exists(): Argument #2 ($array) must be of type array, null given
@joelwmale
Copy link
Contributor

Yep, happens when the server times out, or there is no internet connection, happening on 8.1 as well.

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

No branches or pull requests

3 participants