Skip to content

Commit 23de09b

Browse files
committed
Fix on ShortenedObjectType
1 parent 3d95c3d commit 23de09b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/StaticTypeMapper/ValueObject/Type/ShortenedObjectType.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,20 @@ public function getFullyQualifiedName(): string
4343
{
4444
return $this->fullyQualifiedName;
4545
}
46+
47+
#[Override]
48+
public function equals(Type $type): bool
49+
{
50+
$isEqual = parent::equals($type);
51+
52+
if ($isEqual) {
53+
return true;
54+
}
55+
56+
if ($type instanceof self || $type::class === ObjectType::class) {
57+
return $type->getClassName() === $this->fullyQualifiedName;
58+
}
59+
60+
return false;
61+
}
4662
}

0 commit comments

Comments
 (0)