Clarify variable variable usage
parent
2d4076e9b2
commit
25142c5351
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue