Skip to content

Commit cbab518

Browse files
authored
Only displays source when there is source (#640)
1 parent 3df2434 commit cbab518

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Commands/Concerns/InteractsWithIO.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,11 @@ public function throwableInfo($throwable, $verbosity = null)
185185
$outputTrace = function ($trace, $number) {
186186
$number++;
187187

188-
['line' => $line, 'file' => $file] = $trace;
188+
if (isset($trace['line'])) {
189+
['line' => $line, 'file' => $file] = $trace;
189190

190-
$this->line(" <fg=yellow>$number</> $file:$line");
191+
$this->line(" <fg=yellow>$number</> $file:$line");
192+
}
191193
};
192194

193195
$outputTrace($throwable, -1);

0 commit comments

Comments
 (0)