foreach (["\0Exception\0previous", "\0Exception\0trace"
] as $k) { if (isset($a[$k])) { unset($a[$k]);
++
$s->cut;
} } return $a;
},
FormInterface::
class => static fn (FormInterface
$f, array
$a) =>
[ Caster::PREFIX_VIRTUAL.'name' =>
$f->
getName(),
Caster::PREFIX_VIRTUAL.'type_class' =>
new ClassStub($f->
getConfig()->
getType()->
getInnerType()::
class),
],
FormView::
class => StubCaster::
cutInternals(...
),
ConstraintViolationInterface::
class => static fn (ConstraintViolationInterface
$v, array
$a) =>
[ Caster::PREFIX_VIRTUAL.'root' =>
$v->
getRoot(),
Caster::PREFIX_VIRTUAL.'path' =>
$v->
getPropertyPath(),
Caster::PREFIX_VIRTUAL.'value' =>
$v->
getInvalidValue(),
],
];
} private function D
recursiveBuildPreliminaryFormTree(FormInterface
$form, array &
$outputByHash): array
{