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