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 3ee3ad9 commit 5a9886cCopy full SHA for 5a9886c
src/Illuminate/Foundation/Exceptions/Renderer/Frame.php
@@ -106,6 +106,10 @@ 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
+
113
$maxLines = count(file($this->frame['file']) ?: []);
114
115
return $this->frame['line'] > $maxLines ? 1 : $this->frame['line'];
@@ -131,6 +135,10 @@ public function callable()
131
135
132
136
public function snippet()
133
137
138
139
+ return '';
140
141
134
142
$contents = file($this->frame['file']) ?: [];
143
144
$start = max($this->line() - 6, 0);
0 commit comments