We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e322ea + de37a74 commit 3dc0f07Copy full SHA for 3dc0f07
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