mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-20 16:57:36 +03:00
add typehints and return types
This commit is contained in:
committed by
Ben Ramsey
parent
3a42c259a7
commit
5459113b81
@@ -27,11 +27,11 @@ interface 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
|
||||
* @throws UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present
|
||||
* @throws InvalidArgumentException
|
||||
* @throws Exception if it was not possible to gather sufficient entropy
|
||||
*/
|
||||
public function generate($length);
|
||||
public function generate(int $length): ?string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user