mirror of
https://github.com/filp/whoops.git
synced 2026-09-14 11:46:19 +00:00
Fix file_get_contents to handle internal PHP extension errors correctly.
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) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->fileContentsCache;
|
||||
|
||||
Reference in New Issue
Block a user