debug/Inspector.php
public function getTrace() : Trace
    {
        // No need for further magic if we've already instantiated a Trace Sequence.
        if ($this->trace !== null) {
            return $this->trace;
        }

        // Instantiate a new Trace Sequence and cache it locally.
        return $this->trace = new Trace($this->getFrames());
    }
public function getTrace() : Trace
    {
        // No need for further magic if we've already instantiated a Trace Sequence.
        if ($this->trace !== null) {
            return $this->trace;
        }

        // Instantiate a new Trace Sequence and cache it locally.
        return $this->trace = new Trace($this->getFrames());
    }
public function getTrace ( ) : Trace { // No need for further magic if we've already instantiated a Trace Sequence. if ( $ this -> trace !== null ) { return $ this -> trace ; } // Instantiate a new Trace Sequence and cache it locally. return $ this -> trace = new Trace ( $ this -> getFrames ( ) ) ; }
Returns a Trace instance representing the stack trace of the inspected Throwable.

If the trace contains a handlers\Error entry (indicating the Throwable is the result of an internal
error -> exception conversion), that frame will be removed. If it does not, a frame for the actual Throwable
will be prepended to the frame stack instead, to make it easier to iterate over the causality chain.

@return  Trace
Returns a Trace instance representing the stack trace of the inspected Throwable .