Skip to content

Commit 40d402e

Browse files
committed
Fix old php bug
1 parent c555a92 commit 40d402e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Understand/UnderstandLaravel5/ExceptionEncoder.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ public function getCode($relativePath, $line, $linesAround = 6)
204204

205205
$file->seek($from);
206206

207+
// avoids this bug: https://bugs.php.net/bug.php?id=62004
208+
$file->current();
209+
207210
while ($file->key() < $to && ! $file->eof())
208211
{
209212
$file->next();
@@ -317,7 +320,7 @@ protected function stackTraceArgsToArray(array $trace)
317320
}
318321
else if ($arg instanceof \__PHP_Incomplete_Class)
319322
{
320-
$params[] = 'object(__PHP_Incomplete_Class)';
323+
$params[] = 'object(__PHP_Incomplete_Class)';
321324
}
322325
else
323326
{

0 commit comments

Comments
 (0)