summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/Trashbin.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/Trashbin.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/Trashbin.php')
-rw-r--r--build/integration/features/bootstrap/Trashbin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/Trashbin.php b/build/integration/features/bootstrap/Trashbin.php
index 3eb6ce812ec..536ed6a9015 100644
--- a/build/integration/features/bootstrap/Trashbin.php
+++ b/build/integration/features/bootstrap/Trashbin.php
@@ -30,7 +30,8 @@ require __DIR__ . '/../../vendor/autoload.php';
* Trashbin functions
*/
trait Trashbin {
- use WebDav;
+
+ // WebDav trait is expected to be used in the class that uses this trait.
/**
* @When User :user empties trashbin