Increase PHPStan levels and update code to resolve issues found

This commit is contained in:
SignpostMarv
2018-01-27 19:45:35 +00:00
committed by Ben Ramsey
parent a2ba41740c
commit 0030399564
26 changed files with 82 additions and 84 deletions
+4 -4
View File
@@ -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;
}
/**