return $a;
} /**
* @return array
*/
public static function castReflectionGenerator(\ReflectionGenerator
$c, array
$a, Stub
$stub, bool
$isNested) { $prefix = Caster::PREFIX_VIRTUAL;
if ($c->
getThis()) { $a[$prefix.'this'
] =
new CutStub($c->
getThis());
} $function =
$c->
getFunction();
$frame =
[ 'class' =>
$function->class ?? null,
'type' =>
isset($function->class
) ?
($function->
isStatic() ? '::' : '->'
) : null,
'function' =>
$function->name,
'file' =>
$c->
getExecutingFile(),
'line' =>
$c->
getExecutingLine(),
];
if ($trace =
$c->
getTrace(\DEBUG_BACKTRACE_IGNORE_ARGS
)) {