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\CasterCode
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,
]);
}