This document contains instructions for re-configuring PHP_CodeSniffer in the brewStack local development environment after running brew upgrade
in Homebrew upgrades PHP.
-
Update Pear and use it to re-download the PHP_CodeSniffer package:
$ sudo pear update-channels $ sudo pear install PHP_CodeSniffer
-
Create a new symlink from the newly-upgraded version of PHP to wherever you downloaded Drupal Coder.
$ ln -sv /path/to/coder/coder_sniffer/Drupal $(pear config-get php_dir)/PHP/CodeSniffer/Standards/Drupal
-
You should now be able to run the following from a shell prompt:
$ phpcs --standard=Drupal /path/to/code/you/want/to/sniff