I want to create a Symfony CRUD application. These are the steps I did:
htdocs
with the CLI of Windows.composer create-project symfony/skeleton my_project
localhost/my_project/public/
Here I got the error message:
Fatal Error: composer.lock was created for PHP version 7.4 or higher but the current PHP version is 7.3.11.
When I check my php version in the CLI with php -v
I get the result that I use PHP 7.4.0 (cli).
When I check the php version by clicking the PHPInfo on the dashboard of XAMPP (localhost/dashboard/phpinfo.php), the page shows me the php version 7.3.11.
In the created symfony folder is a file called symfony.lock. There is an entry called
"php": { "version": "7.4" },
. Changing this entry did not solve my problem.
Any ideas how to solve this? And why I cannot install and test the newest symfony with XAMPP?
Thanks a lot guys!
Musa
composer. lock records the exact versions that are installed. So that you are in the same versions with your co-workers. composer install. Check for composer.lock file.
Scroll down to the Advanced settings tile and select PHP and database settings. Scroll down to Update PHP version. Select the PHP version you want to switch to and click Update.
Typing php -v now shows the PHP version installed on your Windows system.
You should run composer dump-autoload
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With