CodeIgniter Forums
I am testing CodeIgniter 4, but I am getting this error: - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: I am testing CodeIgniter 4, but I am getting this error: (/thread-73250.html)



I am testing CodeIgniter 4, but I am getting this error: - messi4710 - 04-05-2019

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?


RE: I am testing CodeIgniter 4, but I am getting this error: - ciadmin - 04-05-2019

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.


RE: I am testing CodeIgniter 4, but I am getting this error: - kilishan - 04-05-2019

Off the top of my head, without any additional information, it sounds like either:

1) Your not on the required version of PHP (7.2)
2) you've pulled down the master branch instead of the develop branch?


RE: I am testing CodeIgniter 4, but I am getting this error: - ciadmin - 04-05-2019

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?