diff --git a/apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php b/apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php index d866f264ce485..6fe00aae72284 100644 --- a/apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php +++ b/apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php @@ -238,14 +238,14 @@ public function testExport(): void { $exportedData = null; $exportDestination->method('addFileContents') - ->willReturnCallback(function (string $path, string $content) use (&$exportedCalendarsJson) { + ->willReturnCallback(function (string $path, string $content) use (&$exportedCalendarsJson): void { if ($path === 'dav/calendars/calendars.json') { $exportedCalendarsJson = json_decode($content, true); } }); $exportDestination->method('addFileAsStream') - ->willReturnCallback(function (string $path, $stream) use (&$exportedData) { + ->willReturnCallback(function (string $path, $stream) use (&$exportedData): void { if (str_ends_with($path, '.data')) { $exportedData = stream_get_contents($stream); } @@ -296,11 +296,11 @@ public function testExportImportRoundTrip(): void { $exportDestination = $this->createMock(IExportDestination::class); $exportDestination->method('addFileContents') - ->willReturnCallback(function (string $path, string $content) use (&$exportedFiles) { + ->willReturnCallback(function (string $path, string $content) use (&$exportedFiles): void { $exportedFiles[$path] = $content; }); $exportDestination->method('addFileAsStream') - ->willReturnCallback(function (string $path, $stream) use (&$exportedFiles) { + ->willReturnCallback(function (string $path, $stream) use (&$exportedFiles): void { $exportedFiles[$path] = stream_get_contents($stream); }); @@ -469,7 +469,7 @@ public function testExportSubscriptions(): void { $exportedSubscriptionsJson = null; $exportDestination->method('addFileContents') - ->willReturnCallback(function (string $path, string $content) use (&$exportedSubscriptionsJson) { + ->willReturnCallback(function (string $path, string $content) use (&$exportedSubscriptionsJson): void { if ($path === 'dav/calendars/subscriptions.json') { $exportedSubscriptionsJson = json_decode($content, true); } @@ -578,7 +578,7 @@ public function testExportImportSubscriptionsRoundTrip(): void { $exportDestination = $this->createMock(IExportDestination::class); $exportDestination->method('addFileContents') - ->willReturnCallback(function (string $path, string $content) use (&$exportedFiles) { + ->willReturnCallback(function (string $path, string $content) use (&$exportedFiles): void { $exportedFiles[$path] = $content; }); diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index be8cb48487cf4..9d6ca56a11d3e 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -468,7 +468,7 @@ public function getWatcher(string $path = '', ?IStorage $storage = null): IWatch */ public function unshareStorage(): bool { foreach ($this->groupedShares as $share) { - Server::get(\OCP\Share\IManager::class)->deleteFromSelf($share, $this->user); + Server::get(IShareManager::class)->deleteFromSelf($share, $this->user); } return true; } diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php index 3430a9ac5714a..c8ef1143574b6 100644 --- a/build/integration/features/bootstrap/FeatureContext.php +++ b/build/integration/features/bootstrap/FeatureContext.php @@ -1,5 +1,7 @@