I want to create a Symfony CRUD application. These are the steps I did:
this can easily happen if you have two different versions of php on your local machine. To get around this find the version of php in console that matches what your local server is running.
rm composer.lock
/usr/bin/php /usr/local/bin/composer install
Composer will then recreate the lock file with the proper version of php.