public function isIndirect()
    {
        $erroringFile = $erroringPackage = null;
        foreach ($this->trace as $line) {
            if (\in_array($line['function'], ['require', 'require_once', 'include', 'include_once'], true)) {
                continue;
            }
            if (!isset($line['file'])) {
                continue;
            }
            $file = $line['file'];
            if ('-' === $file || 'Standard input code' === $file || !realpath($file)) {
                continue;
            }
            if (!$this->pathOriginatesFromVendor($file)) {
                return false;
            }
            if (null !== $erroringFile && null !== $erroringPackage) {
                $package = $this->getPackage($file);
                if ('composer' !== $package && $package !== $erroringPackage) {
                    return true;
                }
                continue;
            }
            $erroringFile = $file;
            $erroringPackage = $this->getPackage($file);
        }

        return false;
    }
public function isIndirect()
    {
        $erroringFile = $erroringPackage = null;
        foreach ($this->trace as $line) {
            if (\in_array($line['function'], ['require', 'require_once', 'include', 'include_once'], true)) {
                continue;
            }
            if (!isset($line['file'])) {
                continue;
            }
            $file = $line['file'];
            if ('-' === $file || 'Standard input code' === $file || !realpath($file)) {
                continue;
            }
            if (!$this->pathOriginatesFromVendor($file)) {
                return false;
            }
            if (null !== $erroringFile && null !== $erroringPackage) {
                $package = $this->getPackage($file);
                if ('composer' !== $package && $package !== $erroringPackage) {
                    return true;
                }
                continue;
            }
            $erroringFile = $file;
            $erroringPackage = $this->getPackage($file);
        }

        return false;
    }
public function isIndirect ( ) { $ erroringFile = $ erroringPackage = null ; foreach ( $ this -> trace as $ line ) { if ( \ in_array ( $ line [ 'function' ] , [ 'require' , 'require_once' , 'include' , 'include_once' ] , true ) ) { continue ; } if ( ! isset ( $ line [ 'file' ] ) ) { continue ; } $ file = $ line [ 'file' ] ; if ( '-' === $ file || 'Standard input code' === $ file || ! realpath ( $ file ) ) { continue ; } if ( ! $ this -> pathOriginatesFromVendor ( $ file ) ) { return false ; } if ( null !== $ erroringFile && null !== $ erroringPackage ) { $ package = $ this -> getPackage ( $ file ) ; if ( 'composer' !== $ package && $ package !== $ erroringPackage ) { return true ; } continue ; } $ erroringFile = $ file ; $ erroringPackage = $ this -> getPackage ( $ file ) ; } return false ; }
Tells whether both the calling package and the called package are vendor
packages.

@return bool
Tells whether both the calling package and the called package are vendor packages .