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 0d9c061 commit bcb1ca9Copy full SHA for bcb1ca9
src/Type/PropertyOfType.php
@@ -54,11 +54,8 @@ public function isResolvable(): bool
54
protected function getResult(): Type
55
{
56
57
- $classReflection = null;
58
-
59
- if ($this->type instanceof TypeWithClassName) {
60
- $classReflection = $this->type->getClassReflection();
61
- }
+ $classReflections = $this->type->getObjectClassReflections();
+ $classReflection = $classReflections[0] ?? null;
62
63
if ($classReflection !== null) {
64
0 commit comments