I just updated my Codeigniter 4 site from 4.1 to 4.2 using composer and am now getting the following server error in the Apache error log:
PHP Fatal error: Uncaught Error: Call to a member function run() on int in /var/www/vhosts/site/public/index.php
I'm thinking a file has been changed or CI 4.2 requires a missing PHP lib, but I've looked at the .env, /public/index.php and /app/config/App.php file and they haven't changed.
Any help would be much appreciated!