Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
});

Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
});

Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/SharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions build/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
Expand Down
Loading