diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 8aecea402..a61475f3c 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -569,7 +569,8 @@ class Installer if ('update' === $operation->getJobType() && $operation->getTargetPackage()->isDev() && $operation->getTargetPackage()->getVersion() === $operation->getInitialPackage()->getVersion() - && $operation->getTargetPackage()->getSourceReference() === $operation->getInitialPackage()->getSourceReference() + && (!$operation->getTargetPackage()->getSourceReference() || $operation->getTargetPackage()->getSourceReference() === $operation->getInitialPackage()->getSourceReference()) + && (!$operation->getTargetPackage()->getDistReference() || $operation->getTargetPackage()->getDistReference() === $operation->getInitialPackage()->getDistReference()) ) { if ($this->io->isDebug()) { $this->io->writeError(' - Skipping update of '. $operation->getTargetPackage()->getPrettyName().' to the same reference-locked version');