Skip to content

Commit

Permalink
chore: Remove syntax incompatible with PHP 8.0
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc authored and backportbot[bot] committed Dec 20, 2024
1 parent 3f695c6 commit 4c10a79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/lib/Share20/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ private function createManagerMock() {
]);
}

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(
Expand Down Expand Up @@ -4772,7 +4775,7 @@ public function testCurrentUserCanEnumerateTargetUser(bool $currentUserIsGuest,
'limitEnumerationToPhone',
'limitEnumerationToGroups',
])
->getMock();
->getMock();

$manager->method('allowEnumerationFullMatch')
->willReturn($allowEnumerationFullMatch);
Expand Down

0 comments on commit 4c10a79

Please sign in to comment.