Remove type hints for PHP 5.6

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-05-31 17:16:47 +02:00
parent 4fae9bedc9
commit fa41a4cc21
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
4 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
/**
* @author Thomas Müller <thomas.mueller@tmit.eu>
*

View File

@ -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 !== '') {

View File

@ -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) {

View File

@ -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);