1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

Dry's up PHP installation

Ref: https://github.com/laravel/valet/pull/261
This commit is contained in:
Kennedy Tedesco
2017-02-20 13:48:59 -03:00
parent 1b24d26e83
commit d8c137876f

View File

@@ -36,9 +36,7 @@ function __construct(Brew $brew, CommandLine $cli, Filesystem $files)
*/ */
function install() function install()
{ {
if (! $this->brew->installed('php71') && if (! $this->brew->hasInstalledPhp()) {
! $this->brew->installed('php70') &&
! $this->brew->installed('php56')) {
$this->brew->ensureInstalled('php71', [], $this->taps); $this->brew->ensureInstalled('php71', [], $this->taps);
} }