We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ac136a commit ae6e997Copy full SHA for ae6e997
src/Type/ObjectType.php
@@ -1746,7 +1746,6 @@ public function getClassReflection(): ?ClassReflection
1746
1747
$classReflection = $reflectionProvider->getClass($this->className);
1748
if ($classReflection->isGeneric()) {
1749
- // withTypes() creates a new object, don't cache it in $this->classReflection
1750
return $classReflection->withTypes(array_values($classReflection->getTemplateTypeMap()->map(static fn (): Type => new ErrorType())->getTypes()));
1751
}
1752
0 commit comments