expecting variable (T_VARIABLE) on Console/Output.php of symfony
IgorDePaula opened this issue · comments
Igor C. de Paula commented
sylvio_cardoso@ws-ti08-l:~$ chmod +x phploc.phar
sylvio_cardoso@ws-ti08-l:~$ sudo mv phploc.phar /usr/local/bin/phploc
[sudo] password for sylvio_cardoso:
sylvio_cardoso@ws-ti08-l:~$ phploc -h
PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in phar:///usr/local/bin/phploc/symfony/console/Output/Output.php on line 40
sylvio_cardoso@ws-ti08-l:~$ phploc
PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in phar:///usr/local/bin/phploc/symfony/console/Output/Output.php on line 40
Update, please.
Kuba Werłos commented
What is the version of PHP you are using and PHPLOC you have downloaded?
Igor C. de Paula commented
I downloaded the same version like readme of this repository recommends do....
Kuba Werłos commented
Do you have PHP version matching it?
Igor C. de Paula commented
PHP 7.0.33
Kuba Werłos commented
That's not supported version - PHPLOC requires at least PHP 7.2: https://github.com/sebastianbergmann/phploc/blob/5.0.0/composer.json#L17
Igor C. de Paula commented
Oh, Ok, sorry. Thank you.