fix(Storage): Use correct return types for getMetaData and getDirectoryContent

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2026-02-12 15:14:33 +01:00
parent 7ceddb3ffb
commit c953ad9bcd
No known key found for this signature in database
3 changed files with 7 additions and 0 deletions

View file

@ -17,6 +17,7 @@ return (require __DIR__ . '/rector-shared.php')
$nextcloudDir . '/lib/private/Settings/AuthorizedGroup.php',
$nextcloudDir . '/lib/private/Settings/AuthorizedGroupMapper.php',
$nextcloudDir . '/apps/settings/lib/Service/AuthorizedGroupService.php',
$nextcloudDir . '/lib/private/Files/Storage/Storage.php',
])
->withPreparedSets(
deadCode: true,

View file

@ -35,6 +35,9 @@ interface Storage extends IStorage, ILockingStorage {
public function getStorageCache(): \OC\Files\Cache\Storage;
/**
* @return ?array<string, mixed>
*/
public function getMetaData(string $path): ?array;
/**
@ -49,6 +52,8 @@ interface Storage extends IStorage, ILockingStorage {
* - etag
* - storage_mtime
* - permissions
*
* @return \Traversable<array<string, mixed>>
*/
public function getDirectoryContent(string $directory): \Traversable;
}

View file

@ -23,6 +23,7 @@
<file name="lib/private/Settings/AuthorizedGroup.php"/>
<file name="lib/private/Settings/AuthorizedGroupMapper.php"/>
<file name="apps/settings/lib/Service/AuthorizedGroupService.php"/>
<file name="lib/private/Files/Storage/Storage.php"/>
<ignoreFiles>
<directory name="apps/**/composer"/>
<directory name="apps/**/tests"/>