We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde0938 commit eeb4a55Copy full SHA for eeb4a55
PEAR/PackageFile/Generator/v1.php
@@ -738,8 +738,10 @@ function _convertDependencies2_0(&$release, $internal = false)
738
$php = $this->_processPhpDeps($deps['php']);
739
} else {
740
if (!isset($deps['php'][0])) {
741
- list($key, $blah) = each ($deps['php']); // stupid buggy versions
742
- $deps['php'] = array($blah[0]);
+ // Buggy versions
+ $key = key($deps['php']);
743
+ $info = current($deps['php']);
744
+ $deps['php'] = array($info[0]);
745
}
746
$php = $this->_processDep($deps['php'][0]);
747
if (!$php) {
0 commit comments