Test a Symfony BETA minor version

Published on 2019-05-11 • Modified on 2020-05-05

Symfony 5.1 beta1 is out as of the 2020-05-05, you can test it by modifying your composer.json file. The following JSON snippet shows you the parts that you must change in your file. You also have to change the "^5.0" requirement to "^5.1" like below with the symfony/http-kernel dependency. Then run composer update.
Note that this upgrade should be avoided for a production project, but as the main purpose of this blog is to do tests with Symfony, I will take the risk! 😜 Don't forget to report issues you may find on Github. (I migrated from Symfony 5.0, it was, therefore the easiest possible migration path)

[2020-05-05] Update for Symfony 5.1 beta1.


{
    "minimum-stability": "beta",
    "require": {
        "symfony/http-kernel": "^5.1",
    },
    "extra": {
        "symfony": {
            "require": "5.1.*",
        }
    }
}

 More on Stackoverflow   Read the doc  Random snippet