Symfony2 post-update-cmd gives “An error occurred when generating the bootstrap file”

后端 未结 11 1112
一向
一向 2020-12-15 05:13

I am currently on Symfony2 2.3.7. When I run the composer update command. In the post-update-cmd a script is run to update symfony2. But it fails:

Script Sen         


        
11条回答
  •  旧时难觅i
    2020-12-15 05:38

    I solved this by updating your composer.json to match the php version you have on your machine

    "config" : {
        "bin-dir" : "bin",
        "platform" : {
            "php" : "7.0.21" //Update this same as your $> php -v
        }
    },
    

提交回复
热议问题