Closed mayppong closed 8 years ago
Hi,
Do you have Syntastic installed as well? The php.vim plug-in does not provide any linting by default.
I do. I was under the impression that Syntastic uses this plugin for the underlying linting.
Syntastic will defer to the php
executable for linting and phpcs
/ phpmd
for further analysis when configured. This plug-in does syntax highlighting only and does not provide linting.
You may be able to resolve your issue by upgrading the PHP version installed on your computer (be careful when doing so as it may break other things). Arrays in class constants are supported in PHP 5.6+.
In PHP 7, you can now use expressions as class constants. However, the syntax checker is still complaining.
I would love to see the the plugin support this.