1
0
Fork 0

Clarify variable variable usage

pull/1015/head
Jordi Boggiano 2012-08-22 15:38:46 +02:00
parent 2d4076e9b2
commit 25142c5351
1 changed files with 2 additions and 2 deletions

View File

@ -349,8 +349,8 @@ class Pool
$candidateName = $candidate['name'];
$candidateVersion = $candidate['version'];
foreach (array('provides', 'replaces') as $linkType) {
$$linkType = isset($candidate[rtrim($linkType, 's')]) ? $candidate[rtrim($linkType, 's')] : array();
foreach ($$linkType as $target => $constraintDef) {
${$linkType} = isset($candidate[rtrim($linkType, 's')]) ? $candidate[rtrim($linkType, 's')] : array();
foreach (${$linkType} as $target => $constraintDef) {
if ('self.version' === $constraintDef) {
$parsedConstraint = $this->versionParser->parseConstraints($candidateVersion);
} else {