Skip to content

Commit 7c2f0a9

Browse files
author
FlorianLB
committed
comparison by reference in ObjectIsEqual
1 parent 3343038 commit 7c2f0a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CleverAge/Ruler/Rule/ObjectIsEqual.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function doIsSatisfied()
4242
$class = is_object($this->object1) ? get_class($this->object1) : false;
4343

4444
return $class
45-
&& (($this->object1 == $this->object2)
45+
&& (($this->object1 === $this->object2)
4646
|| (($this->object2 instanceof $class)
4747
&& ($this->object1->{$this->identifierMethod}()
4848
== $this->object2->{$this->identifierMethod}())

0 commit comments

Comments
 (0)