mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
More typehints, documentation fixes and static analysis cleanup
This commit is contained in:
@ -32,7 +32,7 @@ interface AdvancedSourceInterface extends SourceInterface{
|
||||
* @param string $address
|
||||
* @param int $timeout Seconds
|
||||
*/
|
||||
public function blockAddress($address, $timeout = 300);
|
||||
public function blockAddress(string $address, int $timeout = 300);
|
||||
|
||||
/**
|
||||
* @param Network $network
|
||||
@ -44,6 +44,6 @@ interface AdvancedSourceInterface extends SourceInterface{
|
||||
* @param int $port
|
||||
* @param string $payload
|
||||
*/
|
||||
public function sendRawPacket($address, $port, $payload);
|
||||
public function sendRawPacket(string $address, int $port, string $payload);
|
||||
|
||||
}
|
Reference in New Issue
Block a user