sebastianbergmann / phploc

A tool for quickly measuring the size of a PHP project.
BSD 3-Clause "New" or "Revised" License
2.34k stars 167 forks source link

expecting variable (T_VARIABLE) on Console/Output.php of symfony #194

Closed IgorDePaula closed 5 years ago

IgorDePaula commented 5 years ago
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.

kubawerlos commented 5 years ago

What is the version of PHP you are using and PHPLOC you have downloaded?

IgorDePaula commented 5 years ago

I downloaded the same version like readme of this repository recommends do....

kubawerlos commented 5 years ago

Do you have PHP version matching it?

IgorDePaula commented 5 years ago

PHP 7.0.33

kubawerlos commented 5 years ago

That's not supported version - PHPLOC requires at least PHP 7.2: https://github.com/sebastianbergmann/phploc/blob/5.0.0/composer.json#L17

IgorDePaula commented 5 years ago

Oh, Ok, sorry. Thank you.