We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454243e commit de37a74Copy full SHA for de37a74
1 file changed
src/Entity/EntityId.php
@@ -110,9 +110,8 @@ public function __toString() {
110
* @return boolean
111
*/
112
public function equals( $target ) {
113
- return $target instanceof EntityId
114
- && $target->getSerialization() === $this->serialization
115
- && $target->getEntityType() === $this->entityType;
+ return $target instanceof self
+ && $target->serialization === $this->serialization;
116
}
117
118
/**
0 commit comments