benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
814 stars 126 forks source link

Fatal error: Arrays are not allowed in class constants in {custom sniff} on PHP7 system #160

Closed mlebrun closed 8 years ago

mlebrun commented 8 years ago

Hello, I have php7 installed as the only php version on the system and yet when phpcs runs, it tells me array constants aren't supported. Not entirely sure if it's something I did or what. I've even supplied "phpcs_php_path": "/usr/local/bin/php",.

mlebrun commented 8 years ago

I've also tried re-installing the plugin to sublime as well as re-installing php-code-sniffer from homebrew