Fatal Error: composer.lock was created for PHP version 7.4 or higher but the current PHP version is 7.3.11

后端 未结 14 2239
遇见更好的自我
遇见更好的自我 2020-12-18 20:31

I want to create a Symfony CRUD application. These are the steps I did:

  • Downloaded and installed XAMPP from here with PHP 7.3.11 https://www.apachefriends.org/
14条回答
  •  盖世英雄少女心
    2020-12-18 21:26

    I solved this by running

    $ symfony local:php:refresh

    from the project folder, because the output from running $ php --version gave me PHP 7.4.1 (cli) while $ symfony php --version gave me PHP 7.3.13-1+ubuntu16.04.1+deb.sury.org+1.

    After the refresh they showed the same versions.

    Edit: This required the use of the symfony-binary

提交回复
热议问题