diff --git a/apps/dav/lib/Command/RemoveInvalidShares.php b/apps/dav/lib/Command/RemoveInvalidShares.php index 12a5ee43d47..a42396cf5b5 100644 --- a/apps/dav/lib/Command/RemoveInvalidShares.php +++ b/apps/dav/lib/Command/RemoveInvalidShares.php @@ -1,5 +1,4 @@ * diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php index 8412ccc6010..030a3de3443 100644 --- a/apps/dav/lib/DAV/Sharing/Backend.php +++ b/apps/dav/lib/DAV/Sharing/Backend.php @@ -67,7 +67,7 @@ class Backend { * @param string[] $add * @param string[] $remove */ - public function updateShares(IShareable $shareable, array $add, array $remove) { + public function updateShares(IShareable $shareable, $add, $remove) { foreach($add as $element) { $principal = $this->principalBackend->findByUri($element['href'], ''); if ($principal !== '') { diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index ef8949485e0..150b3dd78c1 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -287,7 +287,7 @@ class Server { $this->server->exec(); } - private function requestIsForSubtree(array $subTrees): bool { + private function requestIsForSubtree($subTrees) { foreach ($subTrees as $subTree) { $subTree = trim($subTree, ' /'); if (strpos($this->server->getRequestUri(), $subTree.'/') === 0) { diff --git a/apps/dav/tests/unit/ServerTest.php b/apps/dav/tests/unit/ServerTest.php index 986899a2107..74939d43a14 100644 --- a/apps/dav/tests/unit/ServerTest.php +++ b/apps/dav/tests/unit/ServerTest.php @@ -41,7 +41,7 @@ class ServerTest extends \Test\TestCase { /** * @dataProvider providesUris */ - public function test($uri, array $plugins) { + public function test($uri, $plugins) { /** @var IRequest | \PHPUnit_Framework_MockObject_MockObject $r */ $r = $this->createMock(IRequest::class); $r->expects($this->any())->method('getRequestUri')->willReturn($uri);