joonty / vim-phpqa

PHP QA tools for Vim
http://www.joncairns.com
MIT License
290 stars 32 forks source link

PHP 7 Syntax Issue #45

Open sancel22 opened 8 years ago

sancel22 commented 8 years ago

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

okdewit commented 8 years ago

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.