Add proper types to User

This commit is contained in:
Tim Düsterhus 2022-03-04 19:14:52 +01:00
parent 56faf3fab1
commit d44003b3ef
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF
1 changed files with 1 additions and 3 deletions

View File

@ -75,10 +75,8 @@ class User extends DatabaseObjectDecorator implements \JsonSerializable
/**
* Returns whether the user is in the given room.
*
* @return boolean
*/
public function isInRoom(Room $room, $skipCache = false)
public function isInRoom(Room $room, $skipCache = false): bool
{
$assoc = $this->getRoomAssociations($skipCache);