Remove type hints for PHP 5.6
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
4fae9bedc9
commit
fa41a4cc21
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
||||
*
|
||||
|
|
|
@ -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 !== '') {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue