sebastianbergmann / phploc

A tool for quickly measuring the size of a PHP project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

IgorDePaula opened this issue · comments

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.

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

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

Do you have PHP version matching it?

PHP 7.0.33

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

Oh, Ok, sorry. Thank you.