Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ERROR: Referenced sniff "PHPCompatibility.FunctionUse.RemovedFunctions" does not exist
diff --git a/vendor/squizlabs/php_codesniffer/src/Util/Standards.php b/vendor/squizlabs/php_codesniffer/src/Util/Standards.php
--- a/vendor/squizlabs/php_codesniffer/src/Util/Standards.php
+++ b/vendor/squizlabs/php_codesniffer/src/Util/Standards.php
@@ -33,6 +33,8 @@
}
$resolvedInstalledPaths = [];
+ $vendorDir = dirname(dirname(dirname(dirname(__DIR__))));
+ $phpCompatibilityDir = $vendorDir . '/phpcompatibility/php-compatibility/PHPCompatibility';
+ if (is_dir($phpCompatibilityDir)) {
+ $resolvedInstalledPaths[] = $phpCompatibilityDir;
+ }
+
foreach ($installedPaths as $installedPath) {
if (substr($installedPath, 0, 1) === '.') {
$installedPath = Common::realPath(__DIR__.$ds.'..'.$ds.'..'.$ds.$installedPath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment