CodeIgniter Forums

Full Version: Codeigniter 4 Error on XAMPP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am testing Codeigniter 4 on my windows 7 PC. I have downloaded the codeigniter 4 from github and copied all the files to my htdocs folder of my XAMPP installation on Windows 7. 

But I am getting an error


Quote: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


Is there something I am missing?
what php version?
(07-22-2016, 07:26 AM)Avenirer Wrote: [ -> ]what php version?

Its PHP Version 5.5.9
Definitely sounds like you're not running PHP7 here. Try running under PHP7 and that should go away.
(07-22-2016, 07:28 AM)kilishan Wrote: [ -> ]Definitely sounds like you're not running PHP7 here. Try running under PHP7 and that should go away.

Thank you so much? Can I get the link to Codeigniter 4 documentation.
XAMPP just released a version 7.0.8 for windows, but php.net has a newer security fix for php 7.0.9