src/Assertion/Exception/AssertionException.php
public static function tracePhonyCall(array $trace): array
    {
        $prefix = 'Eloquent\Phony\\';

        for ($i = count($trace) - 1; $i >= 0; --$i) {
            $entry = $trace[$i];

            if (isset($entry['class'])) {
                if (0 === strpos($entry['class'], $prefix)) {
                    return $entry;
                }
            } elseif (0 === strpos($entry['function'], $prefix)) {
                return $entry;
            }
        }

        return [];
    }
public static function tracePhonyCall(array $trace): array
    {
        $prefix = 'Eloquent\Phony\\';

        for ($i = count($trace) - 1; $i >= 0; --$i) {
            $entry = $trace[$i];

            if (isset($entry['class'])) {
                if (0 === strpos($entry['class'], $prefix)) {
                    return $entry;
                }
            } elseif (0 === strpos($entry['function'], $prefix)) {
                return $entry;
            }
        }

        return [];
    }
public static function tracePhonyCall ( array $ trace ) : array { $ prefix = 'Eloquent\Phony\\' ; for ( $ i = count ( $ trace ) - 1 ; $ i >= 0 ; -- $ i ) { $ entry = $ trace [ $ i ] ; if ( isset ( $ entry [ 'class' ] ) ) { if ( 0 === strpos ( $ entry [ 'class' ] , $ prefix ) ) { return $ entry ; } } elseif ( 0 === strpos ( $ entry [ 'function' ] , $ prefix ) ) { return $ entry ; } } return [ ] ; }
Find the Phony entry point call in a stack trace.

@param array $trace The stack trace.

@return array The call, or an empty array if unable to determine the entry point.
Find the Phony entry point call in a stack trace .