Force composer to require PHP Version between Version X and Version Y

前端 未结 6 641
孤街浪徒
孤街浪徒 2020-12-23 13:14

we have a mix of different PHP versions running on your servers (max 5.3.5) and development machines (max 5.5.9).

Now we ran into the problem that we did a \"compose

6条回答
  •  情深已故
    2020-12-23 13:45

    Remove your composer.lock and vendor directory.

    Now place platform option to composer.json

    "config": {
    
        "platform": {
            "php": "7.0"
        }
    
    },
    

    and finally, run command composer install

提交回复
热议问题