Valet: Installation Error: friendsofphp/php-cs-fixer v2.1.2 requires php ^5.3.6 || >=7.0 <7.2 ->

Created on 2 Jun 2018  路  3Comments  路  Source: laravel/valet

Hello,

Please i got this error while installing Valet following the official installation guide.

Problem 1
    - friendsofphp/php-cs-fixer v2.1.2 requires php ^5.3.6 || >=7.0 <7.2 -> your PHP version (7.2.6) does not satisfy that requirement.
    - friendsofphp/php-cs-fixer v2.1.2 requires php ^5.3.6 || >=7.0 <7.2 -> your PHP version (7.2.6) does not satisfy that requirement.
    - friendsofphp/php-cs-fixer v2.1.2 requires php ^5.3.6 || >=7.0 <7.2 -> your PHP version (7.2.6) does not satisfy that requirement.
    - Installation request for friendsofphp/php-cs-fixer (locked at v2.1.2, required as ^2.1) -> satisfiable by friendsofphp/php-cs-fixer[v2.1.2].

Most helpful comment

Remove php-cs-fixer from your global composer config. Evidently you're not using it since it's incompatible with your current PHP version.

composer global remove friendsofphp/php-cs-fixer

All 3 comments

Remove php-cs-fixer from your global composer config. Evidently you're not using it since it's incompatible with your current PHP version.

composer global remove friendsofphp/php-cs-fixer

Thanks so much for this information.

composer remove fabpot/php-cs-fixer
composer require --dev friendsofphp/php-cs-fixer

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pmochine picture pmochine  路  5Comments

Flimm picture Flimm  路  5Comments

crydotsnake picture crydotsnake  路  5Comments

Alshie picture Alshie  路  4Comments

eberkund picture eberkund  路  4Comments