Skip to content

Commit

Permalink
Merge pull request #870 from Cheppers/extension-version-in-config-yaml
Browse files Browse the repository at this point in the history
Fix #869 - "ext install" command ignores the version number in config…
  • Loading branch information
jhdxr committed May 7, 2017
2 parents d34ab04 + 0f6b10c commit 77bb69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpBrew/Command/ExtensionCommand/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function execute($extName, $version = 'stable')

// not every project has stable branch, using master as default version
$args = array_slice(func_get_args(), 1);
if (!isset($args[0]) || $args[0] != $extConfig->version) {
if (empty($extConfig->version)) {
$extConfig->version = $provider->getDefaultVersion();
}

Expand Down

0 comments on commit 77bb69e

Please sign in to comment.