private function createLazyGhost(string
$class, \Closure|array
$initializer, array
$skippedProperties = null
): object
{ $r =
new \
ReflectionClass($class);
if (str_contains($class, "\0"
)) { $class = __CLASS__.'\\'.
debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS, 2
)[1
]['function'
].'_L'.
$r->
getStartLine();
class_alias($r->name,
$class);
} $proxy =
str_replace($r->name,
$class, ProxyHelper::
generateLazyGhost($r));
$class =
str_replace('\\', '_',
$class).'_'.
md5($proxy);
if (!
class_exists($class, false
)) { eval((\PHP_VERSION_ID >= 80200 &&
$r->
isReadOnly() ? 'readonly ' : ''
).'class '.
$class.' '.
$proxy);
} return $class::
createLazyGhost($initializer,
$skippedProperties);
}}