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

Breadcrumb

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

function ExceptionCaster::traceUnshift

2 calls to ExceptionCaster::traceUnshift()
ExceptionCaster::castThrowingCasterException in vendor/symfony/var-dumper/Caster/ExceptionCaster.php
ExceptionCaster::filterExceptionArray in vendor/symfony/var-dumper/Caster/ExceptionCaster.php

File

vendor/symfony/var-dumper/Caster/ExceptionCaster.php, line 312

Class

ExceptionCaster
Casts common Exception classes to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

private static function traceUnshift(array &$trace, ?string $class, string $file, int $line) : void {
    if (isset($trace[0]['file'], $trace[0]['line']) && $trace[0]['file'] === $file && $trace[0]['line'] === $line) {
        return;
    }
    array_unshift($trace, [
        'function' => $class ? 'new ' . $class : null,
        'file' => $file,
        'line' => $line,
    ]);
}

API Navigation

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