add typehints and return types

This commit is contained in:
Massimiliano Arione
2019-09-12 15:47:49 +02:00
committed by Ben Ramsey
parent 3a42c259a7
commit 5459113b81
34 changed files with 185 additions and 175 deletions
+3 -3
View File
@@ -52,10 +52,10 @@ class RandomLibAdapter implements RandomGeneratorInterface
/**
* Generates a string of random binary data of the specified length
*
* @param integer $length The number of bytes of random binary data to generate
* @return string A binary string
* @param int $length The number of bytes of random binary data to generate
* @return string|null A binary string
*/
public function generate($length)
public function generate(int $length): ?string
{
return $this->generator->generate($length);
}