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?