Skip to content

Commit 45f9ffb

Browse files
committed
bug #11635 #11627 Minor/Patch version fix (JoppeDC)
This PR was submitted for the master branch but it was merged into the 4.2 branch instead (closes #11635). Discussion ---------- #11627 Minor/Patch version fix According to the docs the composer.json file is setup for automatic minor version upgrades. This is not the case, its setup for patch version upgrades. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- fc94efc 11627 Minor/Patch version fix
2 parents fc996f7 + fc94efc commit 45f9ffb

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

setup/upgrade_minor.rst

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ There are two steps to upgrading a minor version:
2121
1) Update the Symfony Library via Composer
2222
------------------------------------------
2323

24-
Your ``composer.json`` file should already be configured to allow your Symfony
25-
packages to be upgraded to minor versions. But, if a package was not upgraded,
26-
check that the version constrains of your Symfony dependencies are like this:
24+
The ``composer.json`` file is configured to allow Symfony packages to be
25+
upgraded to patch versions. But, if you would like the packages to be upgraded
26+
to minor versions, check that the version constrains of the Symfony dependencies
27+
are like this:
2728

2829
.. code-block:: json
2930
@@ -42,6 +43,18 @@ check that the version constrains of your Symfony dependencies are like this:
4243
"...": "...",
4344
}
4445
46+
At the bottom of your ``composer.json`` file, in the `extra`` block you can
47+
find a data setting for the symfony version. Make sure to also upgrade
48+
this one.
49+
50+
.. code-block:: json
51+
"extra": {
52+
"symfony": {
53+
"allow-contrib": false,
54+
"require": "4.3.*"
55+
}
56+
}
57+
4558
Next, use Composer to download new versions of the libraries:
4659

4760
.. code-block:: terminal

0 commit comments

Comments
 (0)