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

Breadcrumb

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

function StackTraceFormatter::writeNewline

2 calls to StackTraceFormatter::writeNewline()
StackTraceFormatter::format in vendor/open-telemetry/sdk/Common/Exception/StackTraceFormatter.php
Formats an exception in a java-like format.
StackTraceFormatter::writeFrames in vendor/open-telemetry/sdk/Common/Exception/StackTraceFormatter.php
@phan-suppress-next-line PhanTypeMismatchDeclaredParam @psalm-param Frames $frames @phan-suppress-next-line PhanTypeMismatchDeclaredParam @psalm-param Frames|null $enclosing

File

vendor/open-telemetry/sdk/Common/Exception/StackTraceFormatter.php, line 119

Class

StackTraceFormatter
@psalm-type Frame = array{ function: string, class: ?class-string, file: ?string, line: ?int, } @psalm-type Frames = non-empty-list<Frame>

Namespace

OpenTelemetry\SDK\Common\Exception

Code

private static function writeNewline(string &$s, int $indent = 0) : void {
    $s .= "\n";
    $s .= str_repeat("\t", $indent);
}

API Navigation

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