src/Logging/DetailedErrorFormatter.php
protected function findInTrace(array $trace, $file, $line)
    {
        foreach ($trace as $i => $call) {
            if (isset($call['file']) && isset($call['line']) && $call['file'] == $file && $call['line'] == $line) {
                return $i;
            }
        }
        return null;
    }
protected function findInTrace(array $trace, $file, $line)
    {
        foreach ($trace as $i => $call) {
            if (isset($call['file']) && isset($call['line']) && $call['file'] == $file && $call['line'] == $line) {
                return $i;
            }
        }
        return null;
    }
protected function findInTrace ( array $ trace , $ file , $ line ) { foreach ( $ trace as $ i => $ call ) { if ( isset ( $ call [ 'file' ] ) && isset ( $ call [ 'line' ] ) && $ call [ 'file' ] == $ file && $ call [ 'line' ] == $ line ) { return $ i ; } } return null ; }
Find a call on the given file & line in the trace
@param array $trace The result of debug_backtrace()
@param string $file The filename to look for
@param string $line The line number to look for
@return int|null The matching row number, if found, or null if not found
Find a call on the given file & line in the trace