1
0
Fork 0

Simplify php version fetching

pull/4541/merge
Jordi Boggiano 2015-10-27 16:40:52 +00:00
parent 125dc62fab
commit 8cd6598d8d
1 changed files with 1 additions and 4 deletions

View File

@ -103,10 +103,7 @@ EOT
$repos
));
$phpPackages = $this->repos->findPackages('php');
$phpPackage = reset($phpPackages);
$phpVersion = $phpPackage->getVersion();
unset($phpPackage, $phpPackages);
$phpVersion = $this->repos->findPackage('php', '*')->getVersion();
$requirements = $this->determineRequirements($input, $output, $input->getArgument('packages'), $phpVersion);
$requireKey = $input->getOption('dev') ? 'require-dev' : 'require';