mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-25 12:54:03 +00:00
NetworkCipher: fix some missing typehints
This commit is contained in:
parent
3ebd7e8ba6
commit
e6381297c7
@ -59,7 +59,7 @@ class NetworkCipher{
|
||||
$this->encryptCipher->encryptInit($this->key, $iv);
|
||||
}
|
||||
|
||||
public function decrypt($encrypted){
|
||||
public function decrypt(string $encrypted) : string{
|
||||
if(strlen($encrypted) < 9){
|
||||
throw new \InvalidArgumentException("Payload is too short");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user