function DebugScope::__destruct
File
-
vendor/
open-telemetry/ context/ DebugScope.php, line 69
Class
- DebugScope
- @internal
Namespace
OpenTelemetry\ContextCode
public function __destruct() {
if (!$this->detachedAt) {
// Handle destructors invoked during final shutdown
// DebugScope::__destruct() might be called before fiber finally blocks run
if (self::$finalShutdownPhase && $this->fiberId !== self::currentFiberId()) {
return;
}
trigger_error(sprintf('Scope: missing call to Scope::detach() for scope #%d, created %s', spl_object_id($this->scope), self::formatBacktrace($this->createdAt)));
}
}