NetworkCipher: fix some missing typehints

This commit is contained in:
Dylan K. Taylor 2018-12-28 17:35:37 +00:00
parent 3ebd7e8ba6
commit e6381297c7

View File

@ -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");
}