aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-12-19 15:50:23 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-12-20 06:15:32 +0000
commit4c10a793d95810761a87a94e240a38e3a9871b4b (patch)
treeb96d5e76538ee790daf6b474ee7ad2ec986913d9
parent3f695c6209a718ee989809120c689fd7a7ec3475 (diff)
downloadnextcloud-server-4c10a793d95810761a87a94e240a38e3a9871b4b.tar.gz
nextcloud-server-4c10a793d95810761a87a94e240a38e3a9871b4b.zip
chore: Remove syntax incompatible with PHP 8.0backport/49927/stable28
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--tests/lib/Share20/ManagerTest.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php
index f18816eec6a..4f4cd221858 100644
--- a/tests/lib/Share20/ManagerTest.php
+++ b/tests/lib/Share20/ManagerTest.php
@@ -214,7 +214,10 @@ class ManagerTest extends \Test\TestCase {
]);
}
- private function createFolderMock(string $folderPath): MockObject&Folder {
+ /**
+ * @return MockObject&Folder
+ */
+ private function createFolderMock(string $folderPath) {
$folder = $this->createMock(Folder::class);
$folder->method('getPath')->willReturn($folderPath);
$folder->method('getRelativePath')->willReturnCallback(
@@ -4772,7 +4775,7 @@ class ManagerTest extends \Test\TestCase {
'limitEnumerationToPhone',
'limitEnumerationToGroups',
])
- ->getMock();
+ ->getMock();
$manager->method('allowEnumerationFullMatch')
->willReturn($allowEnumerationFullMatch);