Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Created December 5, 2019 17:04
Show Gist options
  • Save tommcfarlin/757d2eee5c7e21cd0bab8f604d0a95d6 to your computer and use it in GitHub Desktop.
Save tommcfarlin/757d2eee5c7e21cd0bab8f604d0a95d6 to your computer and use it in GitHub Desktop.
[PHP] Fix the Referenced PHPCompatibility Sniff Error
ERROR: Referenced sniff "PHPCompatibility" does not exist
The installed coding standards are PEAR, PSR1, Zend, Squiz, PSR12, PSR2, MySource and PHPCompatibility.
"require-dev": {
"phpcompatibility/php-compatibility": "*"
},
"prefer-stable" : true,
"scripts": {
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility",
"post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment