Skip to content

Commit c07c0ee

Browse files
NathanNathan
Nathan
authored and
Nathan
committed
Preload error handler class
1 parent f7bb0c5 commit c07c0ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

public/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
// --------------------------------------------------------------
4848
error_reporting((System\Config::get('error.detail')) ? E_ALL | E_STRICT : 0);
4949

50+
// --------------------------------------------------------------
51+
// Ensure Error class loads before any errors fire.
52+
// --------------------------------------------------------------
53+
class_exists('System\Error');
54+
5055
// --------------------------------------------------------------
5156
// Register the error handlers.
5257
// --------------------------------------------------------------

0 commit comments

Comments
 (0)