Optimize outdated --ignore to avoid fetching the latest package info for ignored packages, fixes #11863
parent
133447cf51
commit
c42bb68aff
|
@ -478,7 +478,7 @@ EOT
|
|||
|
||||
if ($showLatest && $showVersion) {
|
||||
foreach ($packages[$type] as $package) {
|
||||
if (is_object($package)) {
|
||||
if (is_object($package) && !Preg::isMatch($ignoredPackagesRegex, $package->getPrettyName())) {
|
||||
$latestPackage = $this->findLatestPackage($package, $composer, $platformRepo, $showMajorOnly, $showMinorOnly, $showPatchOnly, $platformReqFilter);
|
||||
if ($latestPackage === null) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue