chore(dav): Remove short function closure syntax not supported in PHP 7.3

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44326/head
Côme Chilliet 2 months ago
parent b4a166e1cc
commit a4473ce8c0
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A

@ -87,7 +87,9 @@ class SystemTagsRelationsCollection extends SimpleCollection {
$userSession,
$groupManager,
$entityExistsFunction,
fn ($name) => true,
function ($name) {
return true;
},
);
}

@ -62,7 +62,9 @@ class SystemTagMappingNodeTest extends \Test\TestCase {
$this->user,
$this->tagManager,
$this->tagMapper,
fn ($id): bool => in_array($id, $writableNodeIds),
function ($id) use ($writableNodeIds): bool {
return in_array($id, $writableNodeIds);
},
);
}

@ -58,7 +58,9 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
$this->user,
$this->tagManager,
$this->tagMapper,
fn ($id): bool => in_array($id, $writableNodeIds),
function ($id) use ($writableNodeIds): bool {
return in_array($id, $writableNodeIds);
},
);
}

Loading…
Cancel
Save