• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am testing CodeIgniter 4, but I am getting this error:

#1
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?
Reply

#2
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.
Reply

#3
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?
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply

#4
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?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.