summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/BasicStructure.php
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-12-29 19:48:38 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-12-30 06:01:38 +0100
commit28f2d0ec7a51fdeab1d7294346ad8c3bc92cb6c6 (patch)
tree2647f722cf7188907437dc4ac3ae559c8927f284 /build/integration/features/bootstrap/BasicStructure.php
parent4c01f0da8f76635e5642eb46e4eb0f0fcaa322ca (diff)
downloadnextcloud-server-28f2d0ec7a51fdeab1d7294346ad8c3bc92cb6c6.tar.gz
nextcloud-server-28f2d0ec7a51fdeab1d7294346ad8c3bc92cb6c6.zip
Make integration tests work with both PHP 7.3 and 7.4
The "Trashbin" and "WebDav" traits were using each other in a circular dependency ("WebDav" -> "Sharing" -> "Provisioning" -> "BasicStructure" -> "Trashbin" -> "WebDav"). In PHP 7.3 this worked fine, but in PHP 7.4 the fatal error "Trait 'WebDav' not found in .../Trashbin.php" was thrown. To solve this now the "TrashBin" trait no longer explicitly uses "WebDav". However, due to this change, the class using "TrashBin" is now expected to also use "WebDav". As the "Trashbin" trait was not needed by most contexts using the "BasicStructure" trait "Trashbin" was removed from it and added only to those contexts that actually need it. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build/integration/features/bootstrap/BasicStructure.php')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index c8c40d2a98b..fcccddc318f 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -47,7 +47,6 @@ trait BasicStructure {
use Avatar;
use Download;
use Mail;
- use Trashbin;
/** @var string */
private $currentUser = '';