$cloner =
new VarCloner();
$cloner->
addCasters([FlattenException::
class => function DFlattenException
$flattenException, array
$a, Stub
$stub): array
{ $stub->class =
$flattenException->
getClass();
return [ Caster::PREFIX_VIRTUAL.'message' =>
$flattenException->
getMessage(),
Caster::PREFIX_VIRTUAL.'code' =>
$flattenException->
getCode(),
Caster::PREFIX_VIRTUAL.'file' =>
$flattenException->
getFile(),
Caster::PREFIX_VIRTUAL.'line' =>
$flattenException->
getLine(),
Caster::PREFIX_VIRTUAL.'trace' =>
new TraceStub($flattenException->
getTrace()),
];
}]);
return $cloner;
} protected function printWarningAvailableFailureTransports(SymfonyStyle
$io, ?string
$failureTransportName): void
{ $failureTransports =
array_keys($this->failureTransports->
getProvidedServices());
$failureTransportsCount = \
count($failureTransports);
if ($failureTransportsCount > 1
) {