Skip to content

Commit e6b3f13

Browse files
committed
Basically copying a section about upgrading other libraries down into the minor version section
1 parent 8195a66 commit e6b3f13

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

cookbook/upgrading.rst

+14-6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ safely by running:
3535
3636
$ composer update
3737
38-
But beware. If you have some bad version constraints in your ``composer.json``,
38+
But beware. If you have some bad `version constraints`_ in your ``composer.json``,
3939
(e.g. ``dev-master``), then this could upgrade some non-Symfony libraries
4040
to new versions that contain backwards-compatibility breaking changes.
4141

@@ -83,11 +83,17 @@ Next, use Composer to download new versions of the libraries:
8383
8484
$ composer update symfony/symfony
8585
86-
Updating a minor version like this should *not* cause any dependency issues,
87-
though it's always possible that an outside library or bundle you're using
88-
didn't support this new version of Symfony at the version you have of that
89-
library. In that case, consult the library: you may need to modify its version
90-
in ``composer.json`` and run a full ``composer update``.
86+
You may also want to upgrade the rest of your libraries. If you've done a
87+
good job with your version constraints in ``composer.json``, you can do this
88+
safely by running:
89+
90+
.. code-block:: bash
91+
92+
$ composer update
93+
94+
But beware. If you have some bad `version constraints`_ in your ``composer.json``,
95+
(e.g. ``dev-master``), then this could upgrade some non-Symfony libraries
96+
to new versions that contain backwards-compatibility breaking changes.
9197

9298
.. _`upgrade-minor-symfony-code`:
9399

@@ -130,3 +136,5 @@ that you might need to make in your project.
130136
.. _`UPGRADE-2.5`: https://github.com/symfony/symfony/blob/2.5/UPGRADE-2.5.md
131137
.. _`UPGRADE-2.6`: https://github.com/symfony/symfony/blob/2.6/UPGRADE-2.6.md
132138
.. _`Symfony Repository`: https://github.com/symfony/symfony
139+
.. _`Composer Package Versions`: https://getcomposer.org/doc/01-basic-usage.md#package-versions
140+
.. _`version constraints`: https://getcomposer.org/doc/01-basic-usage.md#package-versions

0 commit comments

Comments
 (0)