Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DebugScope.php

function DebugScope::__destruct

File

vendor/open-telemetry/context/DebugScope.php, line 69

Class

DebugScope
@internal

Namespace

OpenTelemetry\Context

Code

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)));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal