Skip to content

Commit

Permalink
fix pecl version error
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofaul committed Feb 24, 2020
1 parent 6cc0d4b commit c933930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/Valet/Pecl.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function __construct(CommandLine $cli, Filesystem $files, PeclCustom $pec
/**
* @inheritdoc
*/
public function installExtensions($onlyDefaults = true): void
public function installExtensions(bool $onlyDefaults = true): void
{
info("[PECL] Installing extensions");
foreach (self::EXTENSIONS as $extension => $versions) {
Expand Down
4 changes: 4 additions & 0 deletions cli/Valet/PeclCustom.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ public function installExtension(string $extension): bool
return false;
}

if(!$version) {
return false;
}

$this->install($extension, $version);

return true;
Expand Down

0 comments on commit c933930

Please sign in to comment.