You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I type wp stream query on the CLI, I get an PHP error.
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, stdClass given in /wp-content/plugins/stream/classes/class-cli.php:137
Possible Fix
A record is an Object, not an Array, so we should use property_exists() instead array_key_exists.
Bug Report
If I type
wp stream query
on the CLI, I get an PHP error.Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, stdClass given in /wp-content/plugins/stream/classes/class-cli.php:137
Possible Fix
A record is an Object, not an Array, so we should use
property_exists()
insteadarray_key_exists
.Before
After
System Information
The text was updated successfully, but these errors were encountered: