We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9cb78 commit 3d8bf20Copy full SHA for 3d8bf20
src/Illuminate/Foundation/Exceptions/Renderer/Frame.php
@@ -106,6 +106,9 @@ public function file()
106
*/
107
public function line()
108
{
109
+ if (!\is_file($this->frame['file']) && !is_readable($this->frame['file'])) {
110
+ return 0;
111
+ }
112
$maxLines = count(file($this->frame['file']) ?: []);
113
114
return $this->frame['line'] > $maxLines ? 1 : $this->frame['line'];
@@ -131,6 +134,9 @@ public function callable()
131
134
132
135
public function snippet()
133
136
137
138
+ return "";
139
140
$contents = file($this->frame['file']) ?: [];
141
142
$start = max($this->line() - 6, 0);
0 commit comments