object(stdClass)#1 (2) {
["foo"]=>
string(3) "foo"
["bar"]=>
string(3) "bar"
}
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, stdClass given in /in/m919Y:8
Stack trace:
#0 {main}
thrown in /in/m919Y on line 8
Process exited with code 255.
Output for 8.0.0 - 8.0.9
object(stdClass)#1 (2) {
["foo"]=>
string(3) "foo"
["bar"]=>
string(3) "bar"
}
Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, stdClass given in /in/m919Y:8
Stack trace:
#0 {main}
thrown in /in/m919Y on line 8
Process exited with code 255.
object(stdClass)#1 (2) {
["foo"]=>
string(3) "foo"
["bar"]=>
string(3) "bar"
}
Warning: count(): Parameter must be an array or an object that implements Countable in /in/m919Y on line 8
int(1)
int(2)