resolve() other class definitions to a NonCheckedClassType
Before:
return [
(new ClassDefinitionBuilder(Item::class))
->build(),
(new ClassDefinitionBuilder(Collection::class))
->field('items', listOf(classType(Item::class))) // ←
->build(),
];
After:
return [
// ↓
$item = (new ClassDefinitionBuilder(Item::class))
->build(),
(new ClassDefinitionBuilder(Collection::class))
->field('items', listOf($item)) // ←
->build(),
];