From fa41a4cc21b90ea4b971d1b60d67d1807ab46b3f Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 31 May 2018 17:16:47 +0200 Subject: Remove type hints for PHP 5.6 Signed-off-by: Morris Jobke --- apps/dav/lib/Command/RemoveInvalidShares.php | 1 - apps/dav/lib/DAV/Sharing/Backend.php | 2 +- apps/dav/lib/Server.php | 2 +- apps/dav/tests/unit/ServerTest.php | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/dav') 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); -- cgit v1.2.3