Correction of variable overwrite used during an iteration and now the versions of PHP extensions are parsed like packages.
parent
4e6a9806b6
commit
dd2174885b
|
@ -155,13 +155,13 @@ class PearRepository extends ArrayRepository
|
||||||
$data[$name] = $this->parseVersion($options);
|
$data[$name] = $this->parseVersion($options);
|
||||||
} elseif ('package' == $name) {
|
} elseif ('package' == $name) {
|
||||||
foreach ($options as $key => $value) {
|
foreach ($options as $key => $value) {
|
||||||
$key = $value['name'];
|
$dataKey = $value['name'];
|
||||||
$data[$key] = $this->parseVersion($value);
|
$data[$dataKey] = $this->parseVersion($value);
|
||||||
}
|
}
|
||||||
} elseif ('extension' == $name) {
|
} elseif ('extension' == $name) {
|
||||||
foreach ($options as $key => $value) {
|
foreach ($options as $key => $value) {
|
||||||
$key = 'ext-' . $value['name'];
|
$dataKey = 'ext-' . $value['name'];
|
||||||
$data[$key] = '*';
|
$data[$dataKey] = $this->parseVersion($value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue