Skip to content

Commit 56a5350

Browse files
committed
chore: Remove syntax incompatible with PHP 8.0
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 97800c5 commit 56a5350

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/lib/Share20/ManagerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ private function createManagerMock() {
214214
]);
215215
}
216216

217-
private function createFolderMock(string $folderPath): MockObject&Folder {
217+
/**
218+
* @return MockObject&Folder
219+
*/
220+
private function createFolderMock(string $folderPath) {
218221
$folder = $this->createMock(Folder::class);
219222
$folder->method('getPath')->willReturn($folderPath);
220223
$folder->method('getRelativePath')->willReturnCallback(
@@ -4784,7 +4787,7 @@ public function testCurrentUserCanEnumerateTargetUser(bool $currentUserIsGuest,
47844787
'limitEnumerationToPhone',
47854788
'limitEnumerationToGroups',
47864789
])
4787-
->getMock();
4790+
->getMock();
47884791

47894792
$manager->method('allowEnumerationFullMatch')
47904793
->willReturn($allowEnumerationFullMatch);

0 commit comments

Comments
 (0)