diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-05-31 17:16:47 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-05-31 17:16:47 +0200 |
commit | fa41a4cc21b90ea4b971d1b60d67d1807ab46b3f (patch) | |
tree | 8af9d1aba741575eb967b60b9f8e9ab010676927 /apps/dav | |
parent | 4fae9bedc9f6c89c7c20c80eed72c3e18850fdec (diff) | |
download | nextcloud-server-fa41a4cc21b90ea4b971d1b60d67d1807ab46b3f.tar.gz nextcloud-server-fa41a4cc21b90ea4b971d1b60d67d1807ab46b3f.zip |
Remove type hints for PHP 5.6
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Command/RemoveInvalidShares.php | 1 | ||||
-rw-r--r-- | apps/dav/lib/DAV/Sharing/Backend.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/Server.php | 2 | ||||
-rw-r--r-- | apps/dav/tests/unit/ServerTest.php | 2 |
4 files changed, 3 insertions, 4 deletions
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 @@ <?php -declare(strict_types=1); /** * @author Thomas Müller <thomas.mueller@tmit.eu> * 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); |