mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
Increase PHPStan levels and update code to resolve issues found
This commit is contained in:
@@ -40,13 +40,13 @@ class RandomLibAdapter implements RandomGeneratorInterface
|
||||
*/
|
||||
public function __construct(Generator $generator = null)
|
||||
{
|
||||
$this->generator = $generator;
|
||||
|
||||
if ($this->generator === null) {
|
||||
if ($generator === null) {
|
||||
$factory = new Factory();
|
||||
|
||||
$this->generator = $factory->getHighStrengthGenerator();
|
||||
$generator = $factory->getHighStrengthGenerator();
|
||||
}
|
||||
|
||||
$this->generator = $generator;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user