Seldaek / monolog

Sends your logs to files, sockets, inboxes, databases and various web services
https://seldaek.github.io/monolog/
MIT License
21.05k stars 1.9k forks source link

Parse error: syntax error, unexpected ')', expecting '|' or variable (T_VARIABLE) in /usr/share/php/Symfony/Component/Console/Application.php on line 238 #1910

Closed emergingcoders16 closed 2 weeks ago

emergingcoders16 commented 2 months ago

I am using multiple versions of php and now I want to composer install in my project but I am getting this error. how to solve this?

stof commented 2 months ago

which version of composer and PHP are you using when getting this error ?

stof commented 2 months ago

Btw, the location of the error /usr/share/php/Symfony/Component/Console/Application.php does not appear to be part of a composer phar.

emergingcoders16 commented 2 months ago

I ran command composer -V but it did not show the composer version and got the same error.

stof commented 2 months ago

how did you install composer ?

stof commented 2 months ago

oh, and how is this related to the Monolog project ?