1
0
Fork 0

Fix calls to non existing method, fixes #1154

pull/1085/head
Jordi Boggiano 2012-09-29 03:26:08 +02:00
parent ba2d7081bc
commit ce31449b2d
1 changed files with 3 additions and 1 deletions

View File

@ -165,8 +165,10 @@ class Locker
}
if (!empty($info['source-reference'])) {
$package->setSourceReference($info['source-reference']);
if (is_callable($package, 'setDistReference')) {
$package->setDistReference($info['source-reference']);
}
}
$packages->addPackage($package);
}