mirror of
https://github.com/filp/whoops.git
synced 2026-09-04 14:37:28 +00:00
Merge branch 'SlikNL-autoload-strict'
This commit is contained in:
@@ -102,6 +102,13 @@ class Run
|
||||
public function register()
|
||||
{
|
||||
if(!$this->isRegistered) {
|
||||
// Workaround PHP bug 42098
|
||||
// https://bugs.php.net/bug.php?id=42098
|
||||
class_exists('\\Whoops\\Exception\\ErrorException');
|
||||
class_exists('\\Whoops\\Exception\\FrameCollection');
|
||||
class_exists('\\Whoops\\Exception\\Frame');
|
||||
class_exists('\\Whoops\\Exception\\Inspector');
|
||||
|
||||
set_error_handler(array($this, self::ERROR_HANDLER));
|
||||
set_exception_handler(array($this, self::EXCEPTION_HANDLER));
|
||||
register_shutdown_function(array($this, self::SHUTDOWN_HANDLER));
|
||||
|
||||
Reference in New Issue
Block a user