Clarify variable variable usage
parent
2d4076e9b2
commit
25142c5351
|
@ -349,8 +349,8 @@ class Pool
|
||||||
$candidateName = $candidate['name'];
|
$candidateName = $candidate['name'];
|
||||||
$candidateVersion = $candidate['version'];
|
$candidateVersion = $candidate['version'];
|
||||||
foreach (array('provides', 'replaces') as $linkType) {
|
foreach (array('provides', 'replaces') as $linkType) {
|
||||||
$$linkType = isset($candidate[rtrim($linkType, 's')]) ? $candidate[rtrim($linkType, 's')] : array();
|
${$linkType} = isset($candidate[rtrim($linkType, 's')]) ? $candidate[rtrim($linkType, 's')] : array();
|
||||||
foreach ($$linkType as $target => $constraintDef) {
|
foreach (${$linkType} as $target => $constraintDef) {
|
||||||
if ('self.version' === $constraintDef) {
|
if ('self.version' === $constraintDef) {
|
||||||
$parsedConstraint = $this->versionParser->parseConstraints($candidateVersion);
|
$parsedConstraint = $this->versionParser->parseConstraints($candidateVersion);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue