A few days ago, I upgraded from php7.1 to php7.2. I found the core a problem.
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /InstallPath/includes/api/ApiQueryBase.php on line 269
In PHP 7.2, count() function does not accept non-countable types.
My wiki info are: