refactor(dav): Add Storage parameter strong types

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/48494/head
provokateurin 2024-10-01 16:14:48 +07:00
parent 3a9aadc6a9
commit 2489608a72
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

@ -25,7 +25,7 @@ class PublicOwnerWrapper extends Wrapper {
$this->owner = $arguments['owner'];
}
public function getOwner($path): string|false {
public function getOwner(string $path): string|false {
$owner = parent::getOwner($path);
if ($owner !== false) {
return $owner;

@ -314,6 +314,10 @@ class DirectoryTest extends \Test\TestCase {
->method('getRelativePath')
->willReturn('/foo');
$this->info->expects($this->once())
->method('getInternalPath')
->willReturn('/foo');
$mountPoint->method('getMountPoint')
->willReturn('/user/files/mymountpoint');
@ -358,6 +362,10 @@ class DirectoryTest extends \Test\TestCase {
->method('getMountPoint')
->willReturn($mountPoint);
$this->info->expects($this->once())
->method('getInternalPath')
->willReturn('/foo');
$mountPoint->method('getMountPoint')
->willReturn('/user/files/mymountpoint');