From 0e21ee15fc8755710064e800b19bef3098d7cd16 Mon Sep 17 00:00:00 2001 From: Mathieu Lechat Date: Tue, 19 Apr 2022 15:58:55 +0200 Subject: [PATCH] Tell about COMPOSER_ROOT_VERSION when not working on the default branch --- contributing/code/tests.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contributing/code/tests.rst b/contributing/code/tests.rst index 3ba250a50bb..376792f879f 100644 --- a/contributing/code/tests.rst +++ b/contributing/code/tests.rst @@ -24,6 +24,16 @@ tests, such as Doctrine, Twig and Monolog. To do so, $ composer update +.. tip:: + + Dependencies might fail to update and in this case Composer might need you to + tell it what Symfony version you are working on. + To do so set ``COMPOSER_ROOT_VERSION`` variable, e.g.: + + .. code-block:: terminal + + $ COMPOSER_ROOT_VERSION=4.4.x-dev composer update + .. _running: Running the Tests