mirror of
https://github.com/filp/whoops.git
synced 2026-09-18 05:36:21 +00:00
Merge pull request #4 from killgt/master
Wrong code shown when exceptions are thrown in the first 8 lines
This commit is contained in:
@@ -161,6 +161,9 @@ class Frame
|
||||
{
|
||||
$start = (int) $start;
|
||||
$length = (int) $length;
|
||||
if ($start < 0) {
|
||||
$start = 0;
|
||||
}
|
||||
|
||||
if($length <= 0) {
|
||||
throw new InvalidArgumentException(
|
||||
|
||||
Reference in New Issue
Block a user