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

Array offset on a boolean #21

Closed
georgestephanis opened this issue Aug 5, 2020 · 3 comments
Closed

Array offset on a boolean #21

georgestephanis opened this issue Aug 5, 2020 · 3 comments

Comments

@georgestephanis
Copy link

Notice: Trying to access array offset on value of type bool in /srv/users/userb1718256/apps/userb1718256/public/wp-content/plugins/wordpress-beta-tester/src/WPBT/WPBT_Bootstrap.php on line 128

It seems to happen sporadically, but something testing to make sure $value is an array before treating it as one here would probably remedy this:

if ( 0 === strpos( $value['stream'], 'beta-rc' )

@afragen
Copy link
Owner

afragen commented Aug 5, 2020

Hey George! Interesting that I've never seen this error but it's certainly easy enough to mitigate as suggested.

Thanks for the report.

@georgestephanis
Copy link
Author

I'd tried to get a backtrace summary on it, but couldn't duplicate it properly so shrug

It is just a notice and not a warning, so I'm not surprised it doesn't crop up often.

@afragen
Copy link
Owner

afragen commented Aug 5, 2020

I don't think I've ever seen it.

@afragen afragen closed this as completed in 89ac520 Aug 5, 2020
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

2 participants