mirror of
https://github.com/filp/whoops.git
synced 2026-09-04 22:48:11 +00:00
Merge pull request #48 from kula-shakerz/master
Fixes issue where the wrong line gets highlighted
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
|
||||
// the $line is 1-indexed, we nab -1 where needed to account for this
|
||||
$range = $frame->getFileLines($line - 8, 10);
|
||||
$range = array_map(function($line){ return empty($line) ? ' ' : $line;}, $range);
|
||||
$start = key($range) + 1;
|
||||
$code = join("\n", $range);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user