Rename source_ref to source-ref
parent
c12dccd3d4
commit
646d01658a
|
@ -232,8 +232,8 @@ EOT
|
||||||
}
|
}
|
||||||
if ($package && $package->isDev()) {
|
if ($package && $package->isDev()) {
|
||||||
foreach ($composer->getLocker()->getLockedPackages() as $lockedPackage) {
|
foreach ($composer->getLocker()->getLockedPackages() as $lockedPackage) {
|
||||||
if (!empty($lockedPackage['source_reference']) && strtolower($lockedPackage['package']) === $package->getName()) {
|
if (!empty($lockedPackage['source-reference']) && strtolower($lockedPackage['package']) === $package->getName()) {
|
||||||
$package->setSourceReference($lockedPackage['source_reference']);
|
$package->setSourceReference($lockedPackage['source-reference']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,7 +119,7 @@ class Locker
|
||||||
$spec = array('package' => $name, 'version' => $version);
|
$spec = array('package' => $name, 'version' => $version);
|
||||||
|
|
||||||
if ($package->isDev()) {
|
if ($package->isDev()) {
|
||||||
$spec['source_reference'] = $package->getSourceReference();
|
$spec['source-reference'] = $package->getSourceReference();
|
||||||
}
|
}
|
||||||
|
|
||||||
$lock['packages'][] = $spec;
|
$lock['packages'][] = $spec;
|
||||||
|
|
Loading…
Reference in New Issue