1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-22 02:00:40 +00:00

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

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);