From 264a6ceca36e192f6cab1519fc98ab037fa8afe4 Mon Sep 17 00:00:00 2001 From: Emir Beganovic Date: Wed, 7 Oct 2015 02:28:06 +0200 Subject: [PATCH] Boolean should be compared strictly --- src/Generator/RandomLibAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/RandomLibAdapter.php b/src/Generator/RandomLibAdapter.php index 63fbf06..25b54a8 100644 --- a/src/Generator/RandomLibAdapter.php +++ b/src/Generator/RandomLibAdapter.php @@ -42,7 +42,7 @@ class RandomLibAdapter implements RandomGeneratorInterface { $this->generator = $generator; - if ($this->generator == null) { + if ($this->generator === null) { $factory = new Factory(); $this->generator = $factory->getMediumStrengthGenerator();