0

I am using Symfony 4.0. I am also using MAMP with PHP 7.2. After installing Symfony, I could not run the application. I stumbled into a PHP Parse error in the bin/console file. The parse error is at line 26 which reads:

$env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev');

Any idea why that line produces a parse error?

1
  • 2
    Because you PHP version is 5.x, not 7.2. Check your MAMP settings. Especially php-cli version. An exact copy paste of the error message always helps Commented Jan 7, 2018 at 12:25

1 Answer 1

2

Maybe MAMP use your default PHP 7.2 version configured into it. But your console use the PHP version configured into your system path.

php -v in your console will give you the version used by your system. :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.