diff options
Diffstat (limited to 'lib/private/Group')
-rw-r--r-- | lib/private/Group/Database.php | 2 | ||||
-rw-r--r-- | lib/private/Group/Group.php | 4 | ||||
-rw-r--r-- | lib/private/Group/Manager.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php index 13837eef552..c4915eefeae 100644 --- a/lib/private/Group/Database.php +++ b/lib/private/Group/Database.php @@ -73,7 +73,7 @@ class Database extends ABackend implements * * @param IDBConnection|null $dbConn */ - public function __construct(IDBConnection $dbConn = null) { + public function __construct(?IDBConnection $dbConn = null) { $this->dbConn = $dbConn; } diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php index 57289a4d3ac..d43a10b6a5c 100644 --- a/lib/private/Group/Group.php +++ b/lib/private/Group/Group.php @@ -76,7 +76,7 @@ class Group implements IGroup { /** @var PublicEmitter */ private $emitter; - public function __construct(string $gid, array $backends, IEventDispatcher $dispatcher, IUserManager $userManager, PublicEmitter $emitter = null, ?string $displayName = null) { + public function __construct(string $gid, array $backends, IEventDispatcher $dispatcher, IUserManager $userManager, ?PublicEmitter $emitter = null, ?string $displayName = null) { $this->gid = $gid; $this->backends = $backends; $this->dispatcher = $dispatcher; @@ -302,7 +302,7 @@ class Group implements IGroup { * @return IUser[] * @deprecated 27.0.0 Use searchUsers instead (same implementation) */ - public function searchDisplayName(string $search, int $limit = null, int $offset = null): array { + public function searchDisplayName(string $search, ?int $limit = null, ?int $offset = null): array { return $this->searchUsers($search, $limit, $offset); } diff --git a/lib/private/Group/Manager.php b/lib/private/Group/Manager.php index dafbe4295a4..2b6eb70502b 100644 --- a/lib/private/Group/Manager.php +++ b/lib/private/Group/Manager.php @@ -323,7 +323,7 @@ class Manager extends PublicEmitter implements IGroupManager { * @param IUser|null $user * @return \OC\Group\Group[] */ - public function getUserGroups(IUser $user = null) { + public function getUserGroups(?IUser $user = null) { if (!$user instanceof IUser) { return []; } |