Simplify php version fetching
parent
125dc62fab
commit
8cd6598d8d
|
@ -103,10 +103,7 @@ EOT
|
||||||
$repos
|
$repos
|
||||||
));
|
));
|
||||||
|
|
||||||
$phpPackages = $this->repos->findPackages('php');
|
$phpVersion = $this->repos->findPackage('php', '*')->getVersion();
|
||||||
$phpPackage = reset($phpPackages);
|
|
||||||
$phpVersion = $phpPackage->getVersion();
|
|
||||||
unset($phpPackage, $phpPackages);
|
|
||||||
$requirements = $this->determineRequirements($input, $output, $input->getArgument('packages'), $phpVersion);
|
$requirements = $this->determineRequirements($input, $output, $input->getArgument('packages'), $phpVersion);
|
||||||
|
|
||||||
$requireKey = $input->getOption('dev') ? 'require-dev' : 'require';
|
$requireKey = $input->getOption('dev') ? 'require-dev' : 'require';
|
||||||
|
|
Loading…
Reference in New Issue