Add type declaration to reply_user
This commit is contained in:
@@ -18,12 +18,13 @@ $handlers = array(
|
||||
new TestHandler()
|
||||
);
|
||||
|
||||
function reply_user($room_id, $msgid, $message, $room_lang)
|
||||
function reply_user(int $room_id, int $msgid, string $message, $room_lang): bool
|
||||
{
|
||||
global $handlers;
|
||||
foreach ($handlers as $handler) {
|
||||
if($handler->TryHandle($room_id, $msgid, $message, $room_lang)) {
|
||||
break;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user