Deprecated: Return type of FooCountable::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/UFieo on line 14
Type array:
count(): 3 bool(true)
Ignored: 3 bool(true)
Validated: 3 bool(true)
Casted: 3 bool(true)
------
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /in/UFieo:71
Stack trace:
#0 {main}
thrown in /in/UFieo on line 71
Process exited with code 255.
Output for 8.0.10 - 8.0.30
Type array:
count(): 3 bool(true)
Ignored: 3 bool(true)
Validated: 3 bool(true)
Casted: 3 bool(true)
------
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /in/UFieo:71
Stack trace:
#0 {main}
thrown in /in/UFieo on line 71
Process exited with code 255.
Output for 8.0.0 - 8.0.9
Type array:
count(): 3 bool(true)
Ignored: 3 bool(true)
Validated: 3 bool(true)
Casted: 3 bool(true)
------
Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, string given in /in/UFieo:71
Stack trace:
#0 {main}
thrown in /in/UFieo on line 71
Process exited with code 255.
Type array:
count(): 3 bool(true)
Ignored: 3 bool(true)
Validated: 3 bool(true)
Casted: 3 bool(true)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type string:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 1 bool(true)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type number:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 1 bool(true)
------
Type iterator:
count(): 3 bool(true)
Ignored: 3 bool(true)
Validated: 3 bool(true)
Casted: 3 bool(true)
------
Type countable:
count(): 3 bool(true)
Ignored: 3 bool(true)
Validated: 3 bool(true)
Casted: 1 bool(false)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type zero:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 1 bool(true)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type string_zero:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 1 bool(true)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type object:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 3 bool(false)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type stdClass:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 0 bool(false)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type null:
count(): 0 bool(true)
Ignored: 0 bool(true)
Validated: 0 bool(true)
Casted: 0 bool(true)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type empty:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 1 bool(true)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type boolt:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 1 bool(true)
------
Warning: count(): Parameter must be an array or an object that implements Countable in /in/UFieo on line 72
Type boolf:
count(): 1 bool(true)
Ignored: 1 bool(true)
Validated: 1 bool(true)
Casted: 1 bool(true)
------