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