Exemple #1
0
    echo join(', ', $arguments);
    ?>
</span>)<br/>
                        <em>
                            In&nbsp;<?php 
    echo $trace['file'];
    ?>
&nbsp;at&nbsp;<strong>line <?php 
    echo $trace['line'];
    ?>
</strong>
                        </em>
                    </div>
                    <div class="lines">
                        <?php 
    echo \Spiral\Support\ExceptionSupport::highlightSource($trace['file'], $trace['line'], 10, new \Spiral\Tokenizer\Highlighter\InversedStyle());
    ?>
                    </div>
                </div>
                <?php 
}
?>
        </div>
        <div class="chain">
            <div class="calls">
                <?php 
foreach (array_reverse($stacktrace) as $index => $trace) {
    if (empty($trace['file']) && isset($stacktrace[$index - 1]['file'])) {
        $trace['file'] = $stacktrace[$index - 1]['file'];
        $trace['line'] = $stacktrace[$index - 1]['line'];
    }
Exemple #2
0
    echo join(', ', $arguments);
    ?>
</span>)<br/>
                        <em>
                            In&nbsp;<?php 
    echo $trace['file'];
    ?>
&nbsp;at&nbsp;<strong>line <?php 
    echo $trace['line'];
    ?>
</strong>
                        </em>
                    </div>
                    <div class="lines">
                        <?php 
    echo \Spiral\Support\ExceptionSupport::highlightSource($trace['file'], $trace['line']);
    ?>
                    </div>
                </div>
                <?php 
}
?>
        </div>
        <div class="chain">
            <div class="calls">
                <?php 
foreach (array_reverse($stacktrace) as $index => $trace) {
    if (empty($trace['file']) && isset($stacktrace[$index - 1]['file'])) {
        $trace['file'] = $stacktrace[$index - 1]['file'];
        $trace['line'] = $stacktrace[$index - 1]['line'];
    }