We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0228643 commit d5c599cCopy full SHA for d5c599c
src/Type/ObjectType.php
@@ -456,12 +456,12 @@ private function checkSubclassAcceptability(string $thatClass): AcceptsResult
456
457
if ($thisReflection->isInterface() && $thatReflection->isInterface()) {
458
return AcceptsResult::createFromBoolean(
459
- $thatReflection->implementsInterface($this->className),
+ $thatReflection->implementsInterface($thisReflection->getName()),
460
);
461
}
462
463
464
- $thatReflection->isSubclassOf($this->className),
+ $thatReflection->isSubclassOf($thisReflection->getName()),
465
466
467
0 commit comments