1
0
Fork 0

Fix warning when no package to update is found

pull/336/head
Jordi Boggiano 2012-02-20 12:14:44 +01:00
parent eb35244230
commit 621388e3be
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}