Skip to content

Commit ae6e997

Browse files
committed
Update ObjectType.php
1 parent 8ac136a commit ae6e997

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Type/ObjectType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,6 @@ public function getClassReflection(): ?ClassReflection
17461746

17471747
$classReflection = $reflectionProvider->getClass($this->className);
17481748
if ($classReflection->isGeneric()) {
1749-
// withTypes() creates a new object, don't cache it in $this->classReflection
17501749
return $classReflection->withTypes(array_values($classReflection->getTemplateTypeMap()->map(static fn (): Type => new ErrorType())->getTypes()));
17511750
}
17521751

0 commit comments

Comments
 (0)