Update lib/GroupManager.php

Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>

Co-authored-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Jonathan Treffler 2021-09-29 12:52:07 +02:00 committed by Jonathan Treffler
parent eca9e26e39
commit 65e632a9dd

View file

@ -150,7 +150,7 @@ class GroupManager
$group->addUser($user);
}
protected function createGroupInBackend($gid, $originalGid = null) {
protected function createGroupInBackend(string $gid, ?string $originalGid = null): ?IGroup {
if($this->groupManager instanceof PublicEmitter) {
$this->groupManager->emit('\OC\Group', 'preCreate', array($gid));
}