chore: Remove syntax incompatible with PHP 8.0

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/49931/head
Côme Chilliet 2024-12-19 15:50:23 +07:00 committed by backportbot[bot]
parent 3f695c6209
commit 4c10a793d9
1 changed files with 5 additions and 2 deletions

@ -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);