Skip to content

Commit 01fd3c6

Browse files
committed
Fixed infinite recursion
1 parent 3a164f7 commit 01fd3c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Type/ObjectType.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,13 @@ public function describe(VerbosityLevel $level): string
259259
{
260260
return $level->handle(
261261
function (): string {
262-
$classReflection = $this->getClassReflection();
263-
if ($classReflection === null) {
262+
$broker = Broker::getInstance();
263+
if (!$broker->hasClass($this->className)) {
264264
return $this->className;
265265
}
266266

267+
$classReflection = $broker->getClass($this->className);
268+
267269
return $classReflection->getDisplayName(false);
268270
},
269271
function (): string {

0 commit comments

Comments
 (0)