Add proper types to RoomCache

This commit is contained in:
Tim Düsterhus 2022-03-04 19:12:37 +01:00
parent edb52df83d
commit 06f15e0306
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF
1 changed files with 1 additions and 4 deletions

View File

@ -47,11 +47,8 @@ class RoomCache extends SingletonFactory
/**
* Returns a specific room.
*
* @param integer $roomID
* @return Room
*/
public function getRoom($roomID)
public function getRoom(int $roomID): ?Room
{
if (isset($this->rooms[$roomID])) {
return $this->rooms[$roomID];