Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given in /in/fXAdW:11
Stack trace:
#0 /in/fXAdW(44): Average->add(1)
#1 {main}
thrown in /in/fXAdW on line 11
Process exited with code 255.
Output for 8.0.0 - 8.0.9
Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in /in/fXAdW:11
Stack trace:
#0 /in/fXAdW(44): Average->add(1)
#1 {main}
thrown in /in/fXAdW on line 11
Process exited with code 255.
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Average has a deprecated constructor in /in/fXAdW on line 2
5.5