Fix warning when no package to update is found
parent
eb35244230
commit
621388e3be
|
@ -208,7 +208,7 @@ EOT
|
|||
|
||||
// force update
|
||||
$newPackage = $composer->getRepositoryManager()->findPackage($package->getName(), $package->getVersion());
|
||||
if ($newPackage->getSourceReference() !== $package->getSourceReference()) {
|
||||
if ($newPackage && $newPackage->getSourceReference() !== $package->getSourceReference()) {
|
||||
$operations[] = new UpdateOperation($package, $newPackage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue