public static function unsetClosureFileInfo(\Closure
$c, array
$a) { unset($a[Caster::PREFIX_VIRTUAL.'file'
],
$a[Caster::PREFIX_VIRTUAL.'line'
]);
return $a;
} public static function castGenerator(\Generator
$c, array
$a, Stub
$stub, bool
$isNested): array
{ // Cannot create ReflectionGenerator based on a terminated Generator
try { $reflectionGenerator =
new \
ReflectionGenerator($c);
} catch (\Exception
) { $a[Caster::PREFIX_VIRTUAL.'closed'
] = true;
return $a;
} return self::
castReflectionGenerator($reflectionGenerator,
$a,
$stub,
$isNested);
} /**
* @return array
*/