public functionscope() : ?ContextStorageScopeInterface {
$head = $this->heads[Fiber::getCurrent() ?? $this] ?? null;
if (!$head?->node && Fiber::getCurrent()) {
self::triggerNotInitializedFiberContextWarning();
returnnull;
}
// Starts with empty head instead of cloned parent -> no need to check for head mismatchreturn$head->node;
}