1
0
Fork 0

Add hint how ambiguous class issues can be resolved, refs #6221 (#12179)

pull/12180/head^2
Jordi Boggiano 2024-10-28 21:37:23 +01:00 committed by GitHub
parent 5c3f6e070d
commit 1f0d012845
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,7 @@ use Composer\Script\ScriptEvents;
use Composer\Util\PackageSorter;
use Composer\Json\JsonFile;
use Composer\Package\Locker;
use Symfony\Component\Console\Formatter\OutputFormatter;
/**
* @author Igor Wiedler <igor@wiedler.ch>
@ -380,6 +381,9 @@ EOF;
);
}
}
if (\count($ambiguousClasses) > 0) {
$this->io->writeError('<info>To resolve ambiguity in classes not under your control you can ignore them by path using <href='.OutputFormatter::escape('https://getcomposer.org/doc/04-schema.md#exclude-files-from-classmaps').'>exclude-files-from-classmap</>');
}
// output PSR violations which are not coming from the vendor dir
$classMap->clearPsrViolationsByPath($vendorPath);