This Content is from Stack Overflow. Question asked by mohsine issam
when i put this in cmd : composer require server –dev
Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in C:UsersusermonprojetvendorsymfonyflexsrcCommandDumpEnvCommand.php on line 84
There’s no sufficient information in your question, yet as the issue is in your
vendor/ folder, which is usually not your code, I wonder is there any chance you are using older PHP version now comparing to what you you used to install the vendor packages? Or maybe you copied the whole project structure (incl.
vendor/) from elsewhere and you are simply now facing code that is too new for that version? I’d peek what’s in
\vendor\symfony\flex\src\Command\DumpEnvCommand.php on line 84 to confirm that. Alternatively just wipe whole
vendor/ folder and let composer reinstall the packages.
This Question was asked in StackOverflow by mohsine issam and Answered by Marcin Orlowski It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.