sebastianbergmann / phpcov

TextUI frontend for php-code-coverage
BSD 3-Clause "New" or "Revised" License
223 stars 58 forks source link

Syntax error when running phpcov.phar #110

Closed lenrsmith closed 3 years ago

lenrsmith commented 3 years ago

Just downloaded the phar per the Readme and hit the following error on my first attempt at running it:

php phpcov.phar
phpcov 8.2.0 by Sebastian Bergmann.
PHP Parse error:  syntax error, unexpected ')' in phar:///Users/leonard/vagrant/waterfluence-vagrant/commercial/phpcov.phar/src/cli/ArgumentsBuilder.php on line 245

Parse error: syntax error, unexpected ')' in phar:///Users/leonard/vagrant/waterfluence-vagrant/commercial/phpcov.phar/src/cli/ArgumentsBuilder.php on line 245

Looks like an extra comma in the argument list is the issue. See https://github.com/sebastianbergmann/phpcov/blob/master/src/cli/ArgumentsBuilder.php#L244

sebastianbergmann commented 3 years ago

Your PHP is too old.

lenrsmith commented 3 years ago

Ok. Thanks for pointing that out. The project I was hoping to to use this with is fixed at 7.2 for now. I'll work out another solution.