Fatal error: Default value for parameters with a class type hint can only be NULL in C:\xampp\htdocs\CodeIgniter4-develop\system\Config\DotEnv.php on line 121 What am I missing?
Are you using the current version of CI4? It shows line 121 as a comment.
Have you made any changes inside the system folder?
Hard to tell what is going on without more info.
Line 121 is the end of a comment in both the master & develop branches.
This sounds more like a PHP version mismatch, but I thought that index.php caught that.
Could there be a php.ini setting that would impact this?