mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(Storage): Use correct return types for getMetaData and getDirectoryContent
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
7ceddb3ffb
commit
c953ad9bcd
3 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue