From ec633274722283fb0244450064834db8ab0e0985 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= <danxuliu@gmail.com>
Date: Thu, 12 Mar 2020 10:45:23 +0100
Subject: [PATCH] Force compatible EventDispatcher version in integration tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Nextcloud requires EventDispatcher from Symfony 4.4. Behat required
Symfony 4.x until Behat 3.5, but since Behat 3.6 it supports Symfony 5.x
too. However, as the EventDispatcher version was not restricted in the
"composer.json" file Composer installed the latest compatible version
with all the dependencies, which happened to be Symfony 5.x. To prevent
that now the EventDispatcher is explicitly limited to Symfony 4.4 only.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
---
 build/integration/composer.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build/integration/composer.json b/build/integration/composer.json
index 53346854304..954ea2829ae 100644
--- a/build/integration/composer.json
+++ b/build/integration/composer.json
@@ -4,6 +4,7 @@
     "behat/behat": "~3.6.1",
     "guzzlehttp/guzzle": "6.5.2",
     "jarnaiz/behat-junit-formatter": "^1.3",
-    "sabre/dav": "3.2.3"
+    "sabre/dav": "3.2.3",
+    "symfony/event-dispatcher": "~4.4"
   }
 }
-- 
GitLab