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:
parent
edb52df83d
commit
06f15e0306
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user