src/Whoops/Exception/Inspector.php
public function getPreviousExceptions()
    {
        if ($this->previousExceptions === null) {
            $this->previousExceptions = [];

            $prev = $this->exception->getPrevious();
            while ($prev !== null) {
                $this->previousExceptions[] = $prev;
                $prev = $prev->getPrevious();
            }
        }

        return $this->previousExceptions;
    }
public function getPreviousExceptions()
    {
        if ($this->previousExceptions === null) {
            $this->previousExceptions = [];

            $prev = $this->exception->getPrevious();
            while ($prev !== null) {
                $this->previousExceptions[] = $prev;
                $prev = $prev->getPrevious();
            }
        }

        return $this->previousExceptions;
    }
public function getPreviousExceptions ( ) { if ( $ this -> previousExceptions === null ) { $ this -> previousExceptions = [ ] ; $ prev = $ this -> exception -> getPrevious ( ) ; while ( $ prev !== null ) { $ this -> previousExceptions [ ] = $ prev ; $ prev = $ prev -> getPrevious ( ) ; } } return $ this -> previousExceptions ; }
Returns an array of all previous exceptions for this inspector's exception
@return \Throwable[]
Returns an array of all previous exceptions for this inspector s exception