Valet: Valet install failed after upgrading to PHP 7.4

Created on 30 Nov 2019  路  3Comments  路  Source: laravel/valet

I upgraded my php to latest version (7.4) and while trying to install valet i got the following error:

valet install 

Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration...

In Brew.php line 251:

  Unable to determine linked PHP when parsing '7.4'


install

Most helpful comment

Here's a temporary fix :

  1. nano ~/.composer/vendor/laravel/valet/cli/Valet/Brew.php
  2. Add '[email protected]' into SUPPORTED_PHP_VERSIONS.
  3. Try again valet install

All 3 comments

Here's a temporary fix :

  1. nano ~/.composer/vendor/laravel/valet/cli/Valet/Brew.php
  2. Add '[email protected]' into SUPPORTED_PHP_VERSIONS.
  3. Try again valet install

@LeRoyJulian thanks. It did work. Someone needs to send PR updating the file Brew.php

Can this be reopened? I'm getting this error even though the line was already added in the Brew.php file.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webartistse picture webartistse  路  4Comments

VinceG picture VinceG  路  3Comments

EHLOVader picture EHLOVader  路  4Comments

hsleewis picture hsleewis  路  5Comments

dustinleblanc picture dustinleblanc  路  4Comments