diff --git a/HttpServer/Events/OnPacket.php b/HttpServer/Events/OnPacket.php index d17362a9..e6c1e90d 100644 --- a/HttpServer/Events/OnPacket.php +++ b/HttpServer/Events/OnPacket.php @@ -57,15 +57,14 @@ class OnPacket extends Callback } - /** * @param Server $server * @param $data * @param $clientInfo * @return mixed - * @throws + * @throws Exception */ - public function onHandler($server, $data, $clientInfo) + public function onHandler(Server $server,string $data,array $clientInfo) { try { $client = [$clientInfo['address'], $clientInfo['port']];