1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

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

View File

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