when i put this in cmd : composer require server --dev
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in C:\Users\user\monprojet\vendor\symfony\flex\src\Command\DumpEnvCommand.php on line 84
when i put this in cmd : composer require server --dev
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in C:\Users\user\monprojet\vendor\symfony\flex\src\Command\DumpEnvCommand.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.