vim-phpqa icon indicating copy to clipboard operation
vim-phpqa copied to clipboard

PHP 7 Syntax Issue

Open sancel22 opened this issue 8 years ago • 1 comments

Hi I'm using php7 syntax like ?? for ternary operations but when I save the file it gave me this error.

Unexpected token: ??

What would be the solution for this??

Thank you

sancel22 avatar Sep 19 '16 07:09 sancel22

This vim plugin relies on phpmd/phpmd, which in turn relies on pdepend/pdepend.

Problem with those tools is that their release cycle is very slow (not ready for syntax valid in php 7.0 and later). You can try to install a development version of those libraries, although you most likely have to fork them so you can edit the composer.json.

okdewit avatar Nov 07 '16 14:11 okdewit