mirror of
https://github.com/filp/whoops.git
synced 2026-09-02 05:27:07 +00:00
Merge pull request #624 from zsilbi/file-contents-fix
File contents fix
This commit is contained in:
@@ -119,7 +119,11 @@ class Frame implements Serializable
|
||||
return null;
|
||||
}
|
||||
|
||||
$this->fileContentsCache = file_get_contents($filePath);
|
||||
try {
|
||||
$this->fileContentsCache = file_get_contents($filePath);
|
||||
} catch (ErrorException $exception) {
|
||||
// Internal file paths of PHP extensions cannot be opened
|
||||
}
|
||||
}
|
||||
|
||||
return $this->fileContentsCache;
|
||||
|
||||
Reference in New Issue
Block a user